Documentation ¶
Index ¶
Constants ¶
View Source
const (
JMXAlarmType = "JMXFETCH_ALARM"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cfg ¶
type Cfg struct {
// contains filtered or unexported fields
}
func NewCfg ¶
func NewCfg(filters []*FilterInner) *Cfg
type FilterInner ¶
type FilterInner struct { Domain string `yaml:"domain,omitempty"` BeanRegex string `yaml:"bean_regex,omitempty"` Type string `yaml:"type,omitempty"` Name string `yaml:"name,omitempty"` Attribute interface{} `yaml:"attribute,omitempty"` }
func NewFilterInner ¶
func NewFilterInner(filter *Filter) *FilterInner
type InstanceInner ¶
type InstanceInner struct { Port int32 `yaml:"port,omitempty"` Host string `yaml:"host,omitempty"` User string `yaml:"user,omitempty"` Password string `yaml:"password,omitempty"` Tags []string `yaml:"tags,omitempty"` Name string `yaml:"name"` DefaultJvmMetrics bool `yaml:"collect_default_jvm_metrics"` }
func NewInstanceInner ¶
func (*InstanceInner) Hash ¶
func (i *InstanceInner) Hash() string
type Jmx ¶
type Jmx struct { // dynamic discovery DiscoveryMode bool // support container discovery DiscoveryUser string DiscoveryPassword string Cluster string 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 // static instances StaticInstances []*Instance // common config JDKPath string Filters []*Filter NewGcMetrics bool DefaultJvmMetrics bool Tags map[string]string // contains filtered or unexported fields }
func (*Jmx) Description ¶
func (*Jmx) UpdateContainerCfg ¶
func (m *Jmx) UpdateContainerCfg()
type LogCollector ¶
type LogCollector struct {
// contains filtered or unexported fields
}
func NewLogCollector ¶
func NewLogCollector(agentDirPath string) *LogCollector
NewLogCollector create a log collector to read jmxfetch log.
func (*LogCollector) JmxfetchStart ¶
func (l *LogCollector) JmxfetchStart()
func (*LogCollector) JmxfetchStop ¶
func (l *LogCollector) JmxfetchStop()
func (*LogCollector) Run ¶
func (l *LogCollector) Run()
type Manager ¶
func GetJmxFetchManager ¶
func (*Manager) ConfigJavaHome ¶
ConfigJavaHome would select the random jdk path if configured many diff paths.
func (*Manager) Register ¶
func (m *Manager) Register(key string, configs map[string]*InstanceInner, newGcMetrics bool)
func (*Manager) RegisterCollector ¶
func (*Manager) UnregisterCollector ¶
Click to show internal directories.
Click to hide internal directories.