Documentation ¶
Index ¶
- type MetricWithExpiration
- type PrometheusClient
- func (p *PrometheusClient) Close() error
- func (p *PrometheusClient) Collect(ch chan<- prometheus.Metric)
- func (p *PrometheusClient) Connect() error
- func (p *PrometheusClient) Describe(ch chan<- *prometheus.Desc)
- func (p *PrometheusClient) Description() string
- func (p *PrometheusClient) SampleConfig() string
- func (p *PrometheusClient) Start() error
- func (p *PrometheusClient) Stop()
- 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 MetricWithExpiration ¶ added in v1.2.0
type MetricWithExpiration struct { Metric prometheus.Metric Expiration time.Time }
type PrometheusClient ¶
type PrometheusClient struct { Listen string ExpirationInterval internal.Duration `toml:"expiration_interval"` sync.Mutex // contains filtered or unexported fields }
func (*PrometheusClient) Close ¶
func (p *PrometheusClient) Close() error
func (*PrometheusClient) Collect ¶ added in v1.2.0
func (p *PrometheusClient) Collect(ch chan<- prometheus.Metric)
Implements prometheus.Collector
func (*PrometheusClient) Connect ¶
func (p *PrometheusClient) Connect() error
func (*PrometheusClient) Describe ¶ added in v1.2.0
func (p *PrometheusClient) Describe(ch chan<- *prometheus.Desc)
Implements prometheus.Collector
func (*PrometheusClient) Description ¶
func (p *PrometheusClient) Description() string
func (*PrometheusClient) SampleConfig ¶
func (p *PrometheusClient) SampleConfig() string
func (*PrometheusClient) Start ¶
func (p *PrometheusClient) Start() error
func (*PrometheusClient) Stop ¶
func (p *PrometheusClient) Stop()
Click to show internal directories.
Click to hide internal directories.