Documentation ¶
Index ¶
- type Collector
- type PrometheusClient
- func (p *PrometheusClient) Close() error
- func (p *PrometheusClient) Connect() error
- func (p *PrometheusClient) Description() string
- func (p *PrometheusClient) Init() error
- func (p *PrometheusClient) SampleConfig() string
- func (p *PrometheusClient) URL() string
- func (p *PrometheusClient) Write(metrics []telegraf.Metric) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶ added in v1.14.0
type Collector interface { Describe(ch chan<- *prometheus.Desc) Collect(ch chan<- prometheus.Metric) Add(metrics []telegraf.Metric) error }
type PrometheusClient ¶
type PrometheusClient struct { Listen string `toml:"listen"` MetricVersion int `toml:"metric_version"` BasicUsername string `toml:"basic_username"` BasicPassword string `toml:"basic_password"` IPRange []string `toml:"ip_range"` ExpirationInterval internal.Duration `toml:"expiration_interval"` Path string `toml:"path"` CollectorsExclude []string `toml:"collectors_exclude"` StringAsLabel bool `toml:"string_as_label"` ExportTimestamp bool `toml:"export_timestamp"` tlsint.ServerConfig Log telegraf.Logger `toml:"-"` // contains filtered or unexported fields }
func (*PrometheusClient) Close ¶
func (p *PrometheusClient) Close() error
func (*PrometheusClient) Connect ¶
func (p *PrometheusClient) Connect() error
func (*PrometheusClient) Description ¶
func (p *PrometheusClient) Description() string
func (*PrometheusClient) Init ¶ added in v1.14.0
func (p *PrometheusClient) Init() error
func (*PrometheusClient) SampleConfig ¶
func (p *PrometheusClient) SampleConfig() string
func (*PrometheusClient) URL ¶ added in v1.14.0
func (p *PrometheusClient) URL() string
Address returns the address the plugin is listening on. If not listening an empty string is returned.
Click to show internal directories.
Click to hide internal directories.