Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WatchJobsFile ¶
Types ¶
type Collector ¶
type Collector struct {
// contains filtered or unexported fields
}
func NewCollector ¶
func NewCollector() *Collector
func (*Collector) ServeHTTP ¶
func (c *Collector) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP writes promtheues styled metrics about the last executed `mtr` run, see https://prometheus.io/docs/instrumenting/exposition_formats/#line-format
NOTE: at the moment, no use of github.com/prometheus/client_golang/prometheus because overhead in size and complexity. once mtr-exporter requires features like push-gateway-export or graphite export or the like, we switch.
func (*Collector) SetRenderDeprecatedMetrics ¶
Click to show internal directories.
Click to hide internal directories.