Documentation ¶
Index ¶
Constants ¶
const ( //AckAuthor is the string "ack_author" AckAuthor = "ack_author" //Reason is the string "reason" Reason = "reason" )
const ( //HostName is the string "host_name" HostName = "host_name" //ServiceDescription is the string "service_description" ServiceDescription = "service_description" //CommandName is the string "command_name" CommandName = "command_name" //Type is the string "type" Type = "type" )
const (
//ContactName is the string "contact_name"
ContactName = "contact_name"
)
const (
//Label is the string label
Label = "label"
)
Variables ¶
var CheckCurrentAttempt = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Namespace: namespaceCore, Subsystem: subsystemChecks, Name: "current_attempt", Help: "CurrentAttempt of a check", }, checkLabelNames, )
CheckCurrentAttempt is a Prometheus gauge vector
var CheckExecutionTime = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Namespace: namespaceCore, Subsystem: subsystemChecks, Name: "execution_time_seconds", Help: "ExecutionTime of a check in seconds", }, checkLabelNames, )
CheckExecutionTime is a Prometheus gauge vector
var CheckLatency = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Namespace: namespaceCore, Subsystem: subsystemChecks, Name: "latency_seconds", Help: "Latency of a check in seconds", }, checkLabelNames, )
CheckLatency is a Prometheus gauge vector
var CheckMaxAttempts = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Namespace: namespaceCore, Subsystem: subsystemChecks, Name: "max_attempts", Help: "MaxAttempts of a check", }, checkLabelNames, )
CheckMaxAttempts is a Prometheus gauge vector
var CheckPerfBytes = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Namespace: namespaceCore, Subsystem: subsystemChecks, Name: "performance_data_bytes", Help: "Performance data with bytes as unit", }, performanceDataLabelNames, )
CheckPerfBytes is a Prometheus gauge vector
var CheckPerfGauge = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Namespace: namespaceCore, Subsystem: subsystemChecks, Name: "performance_data", Help: "Performance data with unknown unit", }, performanceDataLabelNames, )
CheckPerfGauge is a Prometheus gauge vector
var CheckPerfPercent = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Namespace: namespaceCore, Subsystem: subsystemChecks, Name: "performance_data_percent", Help: "Performance data with percent as unit", }, performanceDataLabelNames, )
CheckPerfPercent is a Prometheus gauge vector
var CheckPerfSeconds = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Namespace: namespaceCore, Subsystem: subsystemChecks, Name: "performance_data_seconds", Help: "Performance data with seconds as unit", }, performanceDataLabelNames, )
CheckPerfSeconds is a Prometheus gauge vector
var CheckResults = prometheus.NewCounter( prometheus.CounterOpts{ Namespace: namespaceCore, Subsystem: subsystemChecks, Name: "results_total", Help: "Amount of check results received", })
CheckResults is a Prometheus counter
var CheckReturnCode = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Namespace: namespaceCore, Subsystem: subsystemChecks, Name: "returncode", Help: "returncode of a check", }, checkLabelNames, )
CheckReturnCode is a Prometheus gauge vector
var CheckState = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Namespace: namespaceCore, Subsystem: subsystemChecks, Name: "state", Help: "State of a check", }, checkLabelNames, )
CheckState is a Prometheus gauge vector
var CheckStateType = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Namespace: namespaceCore, Subsystem: subsystemChecks, Name: "state_type", Help: "StateType of a check", }, checkLabelNames, )
CheckStateType is a Prometheus gauge vector
var ChecksActive = prometheus.NewCounter( prometheus.CounterOpts{ Namespace: namespaceCore, Subsystem: subsystemChecks, Name: "active_total", Help: "Amount of active checks executed", })
ChecksActive is a Prometheus counter
var ContactNotificationEnd = prometheus.NewCounterVec( prometheus.CounterOpts{ Namespace: namespaceCore, Subsystem: subsystemContactNotification, Name: "end_total", Help: "Notification ended", }, contactNotificationLabelNames, )
ContactNotificationEnd is a Prometheus counter vector
var ContactNotificationStart = prometheus.NewCounterVec( prometheus.CounterOpts{ Namespace: namespaceCore, Subsystem: subsystemContactNotification, Name: "start_total", Help: "Notification started", }, contactNotificationLabelNames, )
ContactNotificationStart is a Prometheus counter vector
var CoreType = prometheus.NewGauge( prometheus.GaugeOpts{ Namespace: namespaceCore, Subsystem: subsystemNebModule, Name: "core_type", Help: fmt.Sprintf("The core this module is compiled for. Nagios3: %d, Nagios4: %d, Naemon: %d.", neb.CoreNagios3, neb.CoreNagios4, neb.CoreNaemon), }, )
CoreType is a Prometheus Gauge
var ModuleCallbacks = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Namespace: namespaceCore, Subsystem: subsystemNebModule, Name: "callbacks_total", Help: "Amount of registered callbacks per type", }, []string{"type"}, )
ModuleCallbacks is a Prometheus Gauge vector
var ModuleDuration = prometheus.NewHistogramVec( prometheus.HistogramOpts{ Namespace: namespaceCore, Subsystem: subsystemNebModule, Name: "callback_durations_seconds", Help: "Time in seconds for by each callback type", Buckets: []float64{ .00001, .00005, .0001, .0005, .001, .005, .01, .05, .1, .5, 1, 1.5, 2}, }, []string{"type"}, )
ModuleDuration is a Prometheus Histogram vector
var NotificationContactsNotified = prometheus.NewCounterVec( prometheus.CounterOpts{ Namespace: namespaceCore, Subsystem: subsystemNotification, Name: "contacts_notified_total", Help: "Contacts notified", }, notificationLabelNames, )
NotificationContactsNotified is a Prometheus counter vector
var NotificationEnd = prometheus.NewCounterVec( prometheus.CounterOpts{ Namespace: namespaceCore, Subsystem: subsystemNotification, Name: "end_total", Help: "Notification ended", }, notificationLabelNames, )
NotificationEnd is a Prometheus counter vector
var NotificationStart = prometheus.NewCounterVec( prometheus.CounterOpts{ Namespace: namespaceCore, Subsystem: subsystemNotification, Name: "start_total", Help: "Notification started", }, notificationLabelNames, )
NotificationStart is a Prometheus counter vector
var StatsHostsAmount = prometheus.NewGauge( prometheus.GaugeOpts{ Namespace: namespaceCore, Subsystem: subsystemStatisticsHosts, Name: "total", Help: "Amount of Hosts total", }, )
StatsHostsAmount is a Prometheus gauge
var StatsHostsCheckType = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Namespace: namespaceCore, Subsystem: subsystemStatisticsHosts, Name: "check_type", Help: "Amount of Hosts with certain checktypes", }, statsTypeLabelNames, )
StatsHostsCheckType is a Prometheus gauge
var StatsHostsChecksEnabled = prometheus.NewGauge( prometheus.GaugeOpts{ Namespace: namespaceCore, Subsystem: subsystemStatisticsHosts, Name: "checks_enabled", Help: "Amount of Hosts with enabled hockschecks", }, )
StatsHostsChecksEnabled is a Prometheus gauge
var StatsHostsDowntime = prometheus.NewGauge( prometheus.GaugeOpts{ Namespace: namespaceCore, Subsystem: subsystemStatisticsHosts, Name: "downtime", Help: "Amount of Hosts currently with a downtime", }, )
StatsHostsDowntime is a Prometheus gauge
var StatsHostsFlapping = prometheus.NewGauge( prometheus.GaugeOpts{ Namespace: namespaceCore, Subsystem: subsystemStatisticsHosts, Name: "flapping", Help: "Amount of Hosts currently flapping", }, )
StatsHostsFlapping is a Prometheus gauge
var StatsHostsFlexDowntime = prometheus.NewGauge( prometheus.GaugeOpts{ Namespace: namespaceCore, Subsystem: subsystemStatisticsHosts, Name: "downtime_flex", Help: "Amount of Hosts currently with a flex downtime", }, )
StatsHostsFlexDowntime is a Prometheus gauge
var StatsHostsStateType = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Namespace: namespaceCore, Subsystem: subsystemStatisticsHosts, Name: "state_type", Help: "Amount of Hosts with certain state", }, statsTypeLabelNames, )
StatsHostsStateType is a Prometheus gauge
var StatsServicesAmount = prometheus.NewGauge( prometheus.GaugeOpts{ Namespace: namespaceCore, Subsystem: subsystemStatisticsServices, Name: "total", Help: "Amount of Services total", }, )
StatsServicesAmount is a Prometheus gauge
var StatsServicesCheckType = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Namespace: namespaceCore, Subsystem: subsystemStatisticsServices, Name: "check_type", Help: "Amount of Services with certain checktype", }, statsTypeLabelNames, )
StatsServicesCheckType is a Prometheus gauge
var StatsServicesChecksEnabled = prometheus.NewGauge( prometheus.GaugeOpts{ Namespace: namespaceCore, Subsystem: subsystemStatisticsServices, Name: "checks_enabled", Help: "Amount of Services with enabled hockschecks", }, )
StatsServicesChecksEnabled is a Prometheus gauge
var StatsServicesDowntime = prometheus.NewGauge( prometheus.GaugeOpts{ Namespace: namespaceCore, Subsystem: subsystemStatisticsServices, Name: "downtime", Help: "Amount of Services currently with a downtime", }, )
StatsServicesDowntime is a Prometheus gauge
var StatsServicesFlapping = prometheus.NewGauge( prometheus.GaugeOpts{ Namespace: namespaceCore, Subsystem: subsystemStatisticsServices, Name: "flapping", Help: "Amount of Services currently flapping", }, )
StatsServicesFlapping is a Prometheus gauge
var StatsServicesFlexDowntime = prometheus.NewGauge( prometheus.GaugeOpts{ Namespace: namespaceCore, Subsystem: subsystemStatisticsServices, Name: "downtime_flex", Help: "Amount of Services currently with a flex downtime", }, )
StatsServicesFlexDowntime is a Prometheus gauge
var StatsServicesStateType = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Namespace: namespaceCore, Subsystem: subsystemStatisticsServices, Name: "state_type", Help: "Amount of Services with certain state", }, statsTypeLabelNames, )
StatsServicesStateType is a Prometheus gauge
Functions ¶
Types ¶
This section is empty.