Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoProfile ¶
type GoProfile struct {
Mode Mode
Interval int32 // unit second
Timeout int32 // unit second
BodyLimitSize int32 // unit KB
EnabledProfiles []string
Labels map[string]string
Config map[string]interface{}
// contains filtered or unexported fields
}
func (*GoProfile) Description ¶
type KubernetesConfig ¶
type KubernetesConfig struct {
IncludeEnv map[string]string
ExcludeEnv map[string]string
IncludeContainerLabel map[string]string
ExcludeContainerLabel map[string]string
IncludeK8sLabel map[string]string
ExcludeK8sLabel map[string]string
ExternalEnvTag map[string]string
ExternalK8sLabelTag map[string]string
K8sNamespaceRegex string
K8sPodRegex string
K8sContainerRegex string
// contains filtered or unexported fields
}
func (*KubernetesConfig) InitDiscoverer ¶
func (k *KubernetesConfig) InitDiscoverer()
func (*KubernetesConfig) Name ¶
func (k *KubernetesConfig) Name() string
func (*KubernetesConfig) NewDiscoverer ¶
func (k *KubernetesConfig) NewDiscoverer(options discovery.DiscovererOptions) (discovery.Discoverer, error)
func (*KubernetesConfig) Run ¶
func (k *KubernetesConfig) Run(ctx context.Context, up chan<- []*targetgroup.Group)
type Register ¶
type Register struct {
}
func (*Register) MustRegister ¶
func (r *Register) MustRegister(collector ...prometheus.Collector)
func (*Register) Unregister ¶
func (r *Register) Unregister(collector prometheus.Collector) bool
type StaticConfig ¶
type StaticConfig struct {
Addresses []Address
// contains filtered or unexported fields
}
func (*StaticConfig) Name ¶
func (k *StaticConfig) Name() string
func (*StaticConfig) NewDiscoverer ¶
func (k *StaticConfig) NewDiscoverer(options discovery.DiscovererOptions) (discovery.Discoverer, error)
Click to show internal directories.
Click to hide internal directories.