Documentation ¶
Index ¶
Constants ¶
View Source
const ( LabelEnvironment = "environment" LabelNode = "node" LabelLevel = "level" LabelType = "type" LabelEndpoint = "endpoint" LabelCode = "code" )
Variables ¶
View Source
var ( NodeCount = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Namespace: "puppet", Subsystem: "report_exporter", Name: "node_count", Help: "Number of nodes per environment", }, []string{ LabelEnvironment, }, ) NodeStatus = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Namespace: "puppet", Subsystem: "report_exporter", Name: "node_status", Help: "Report status of nodes; 0 = undefined, 1 = changed, 2 = failed, 3 = unchanged", }, []string{ LabelEnvironment, LabelNode, }, ) NodeLogEntries = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Namespace: "puppet", Subsystem: "report_exporter", Name: "node_log_entries", Help: "status of nodes", }, []string{ LabelEnvironment, LabelLevel, LabelNode, }, ) PuppetDBReportCacheEntries = prometheus.NewGauge( prometheus.GaugeOpts{ Namespace: "puppet", Subsystem: "report_exporter", Name: "puppetdb_report_cache_entries", Help: "Number of entries in the report log cache", }, ) PuppetDBReportCacheAccess = prometheus.NewCounterVec( prometheus.CounterOpts{ Namespace: "puppet", Subsystem: "report_exporter", Name: "puppetdb_report_cache_access", Help: "Number of accesses in the report log cache", }, []string{ LabelType, }, ) PuppetDBQueries = prometheus.NewCounterVec( prometheus.CounterOpts{ Namespace: "puppet", Subsystem: "report_exporter", Name: "puppetdb_queries", Help: "Number of queries to the PuppetDB API", }, []string{ LabelEndpoint, }, ) RequestResponseStatus = prometheus.NewCounterVec(prometheus.CounterOpts{ Namespace: "puppet", Subsystem: "report_exporter", Name: "response_status", Help: "Number of report queries to the report exporter", }, []string{ LabelCode, }, ) RequestDuration = prometheus.NewHistogram(prometheus.HistogramOpts{ Namespace: "puppet", Subsystem: "report_exporter", Name: "request_duration", Help: "Duration of report requests to the report exporter", Buckets: prometheus.ExponentialBuckets(0.005, 2, 15), }) )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.