Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientConfig ¶
type ClientConfig struct { ResponseTimeout time.Duration Username string Password string ProxyConfig *ProxyConfig tls.ClientConfig }
type Gatherer ¶
type Gatherer struct {
// contains filtered or unexported fields
}
func NewGatherer ¶
type Metric ¶
type Metric struct { Name string Mbean string Paths []string FieldName string FieldPrefix string FieldSeparator string TagPrefix string TagKeys []string // contains filtered or unexported fields }
A Metric represents a specification for a Jolokia read request, and the transformations to apply to points generated from the responses.
func NewMetric ¶
func NewMetric(config MetricConfig, defaultFieldPrefix, defaultFieldSeparator, defaultTagPrefix string) Metric
func (Metric) MatchAttributeAndPath ¶
func (Metric) MatchObjectName ¶
type MetricConfig ¶
type MetricConfig struct { Name string `toml:"name"` Mbean string `toml:"mbean"` Paths []string `toml:"paths"` FieldName *string `toml:"field_name"` FieldPrefix *string `toml:"field_prefix"` FieldSeparator *string `toml:"field_separator"` TagPrefix *string `toml:"tag_prefix"` TagKeys []string `toml:"tag_keys"` }
A MetricConfig represents a TOML form of a Metric with some optional fields.
type ProxyConfig ¶
type ProxyConfig struct { DefaultTargetUsername string DefaultTargetPassword string Targets []ProxyTargetConfig }
type ProxyTargetConfig ¶
type ReadRequest ¶
Click to show internal directories.
Click to hide internal directories.