Documentation ¶
Overview ¶
Package exporter provides the interface for getting metrics out of mtail, into your monitoring system of choice.
Index ¶
- type Exporter
- func (e *Exporter) HandleJSON(w http.ResponseWriter, r *http.Request)
- func (e *Exporter) HandlePrometheusMetrics(w http.ResponseWriter, r *http.Request)
- func (e *Exporter) HandleVarz(w http.ResponseWriter, r *http.Request)
- func (e *Exporter) PushMetrics()
- func (e *Exporter) RegisterPushExport(p pushOptions)
- func (e *Exporter) StartMetricPush()
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Exporter ¶
type Exporter struct {
// contains filtered or unexported fields
}
Exporter manages the export of metrics to passive and active collectors.
func (*Exporter) HandleJSON ¶
func (e *Exporter) HandleJSON(w http.ResponseWriter, r *http.Request)
HandleJSON exports the metrics in JSON format via HTTP.
func (*Exporter) HandlePrometheusMetrics ¶
func (e *Exporter) HandlePrometheusMetrics(w http.ResponseWriter, r *http.Request)
HandlePrometheusMetrics exports the metrics in a format readable by Prometheus via HTTP.
func (*Exporter) HandleVarz ¶
func (e *Exporter) HandleVarz(w http.ResponseWriter, r *http.Request)
HandleVarz exports the metrics in Varz format via HTTP.
func (*Exporter) PushMetrics ¶
func (e *Exporter) PushMetrics()
PushMetrics sends metrics to each of the configured services.
type Options ¶
type Options struct { Store *metrics.Store Hostname string // Not required, uses os.Hostname if zero. OmitProgLabel bool // If true, don't emit the prog label that identifies the source program in variable exports. }
Options contains the required and optional parameters for constructing an Exporter.
Click to show internal directories.
Click to hide internal directories.