Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MetricError = prometheus.NewGauge(prometheus.GaugeOpts{ Namespace: metricsNamespace, Name: "error", Help: "Indicates an error was encountered", }) MetricDuration = prometheus.NewGauge(prometheus.GaugeOpts{ Namespace: metricsNamespace, Name: "run_duration_seconds", Help: "Last runtime duration in seconds", }) MetricLastRun = prometheus.NewGauge(prometheus.GaugeOpts{ Namespace: metricsNamespace, Name: "last_run_timestamp_seconds", Help: "Last timestamp of execution", }) MetricSubIDTotal = prometheus.NewGauge(prometheus.GaugeOpts{ Namespace: metricsNamespace, Name: "subid_total", Help: "Total number of subid entries", }) MetricSubIDAdded = prometheus.NewGauge(prometheus.GaugeOpts{ Namespace: metricsNamespace, Name: "subid_added", Help: "Number of subid entries added", }) MetricSubIDRemoved = prometheus.NewGauge(prometheus.GaugeOpts{ Namespace: metricsNamespace, Name: "subid_removed", Help: "Number of subid entries removed", }) )
Functions ¶
func MetricGathers ¶
func MetricGathers(processMetrics bool) prometheus.Gatherers
func MetricsServer ¶
func MetricsWrite ¶
func MetricsWrite(path string, gatherers prometheus.Gatherers, logger log.Logger)
func ResetMetrics ¶
func ResetMetrics()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.