Documentation ¶
Index ¶
- Variables
- type Exporter
- func (e *Exporter) Render() string
- func (e *Exporter) SetCounter(name string, value float64, help string, labels map[string]string)
- func (e *Exporter) SetGauge(name string, value float64, help string, labels map[string]string)
- func (e *Exporter) SetHistogram(name string, value float64, help string, labels map[string]string)
- func (e *Exporter) SetSummary(name string, value float64, help string, labels map[string]string)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Exporter ¶
type Exporter struct {
// contains filtered or unexported fields
}
Exporter is an abstraction for exporter it does not actually implement any of HTTP functions, but it does group the metrics, handles their expiration and renders them into a text. Should be instantiated using NewExporter() method.
func (*Exporter) Render ¶
Render renders all active metrics into a text output that can be then plugged into HTTP handler.
func (*Exporter) SetCounter ¶
SetCounter creates new or updates existing counter metric, the timestamp is considered that when the metric is being set using this method
func (*Exporter) SetGauge ¶
SetGauge creates new or updates existing gauge metric, the timestamp is considered that when the metric is being set using this method
func (*Exporter) SetHistogram ¶
SetHistogram creates new or updates existing histogram metric, the timestamp is considered that when the metric is being set using this method