Documentation ¶
Overview ¶
Package prometheus implements a result exporter for prometheus.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = Config{ Path: "/metrics", Gauges: true, Summaries: true, Labels: []string{"transaction", "application", "environment", "component"}, SummaryObjectives: map[float64]float64{0.5: 0.05, 0.9: 0.01, 0.99: 0.001}, }
DefaultConfig for prometheus config
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Path string `json:"path" yaml:"path"` Labels []string `json:"labels" yaml:"labels"` Gauges bool `json:"gauges" yaml:"gauges"` Summaries bool `json:"summaries" yaml:"summaries"` SummaryObjectives map[float64]float64 `json:"summary_objectives" yaml:"summary_objectives"` }
Config options
Click to show internal directories.
Click to hide internal directories.