pyroscope

package
v0.0.0-...-237b7d6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 19, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

pyroscope @author LanguageY++2013 2023/5/18 09:25 @company soulgame

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Provider        string            //配置提供来源 viper-本地配置文件(默认)、etcd-远端etcd服务
	Key             string            //viper配置Key 或者 etcd监听Key
	ApplicationName string            //应用名,透传给pyroscope.Config
	LocalTags       map[string]string //本地标签,用于进行标签匹配,仅完全匹配的实例才进行指标上报
}

type Option

type Option func(w *PyroscopeWrapper)

func WithEtcdClient

func WithEtcdClient(client *clientv3.Client) Option

func WithHostname

func WithHostname() Option

type PyroscopeWrapper

type PyroscopeWrapper struct {
	Config
	// contains filtered or unexported fields
}

func NewPyroscopeWrapper

func NewPyroscopeWrapper(cfg Config, opts ...Option) *PyroscopeWrapper

func (*PyroscopeWrapper) Start

func (w *PyroscopeWrapper) Start()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL