prom

package
v0.0.0-...-60afc60 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 10, 2017 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (

	//AckAuthor is the string "ack_author"
	AckAuthor = "ack_author"
	//Reason is the string "reason"
	Reason = "reason"
)
View Source
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"
)
View Source
const (

	//ContactName is the string "contact_name"
	ContactName = "contact_name"
)
View Source
const (

	//Label is the string label
	Label = "label"
)

Variables

View Source
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

View Source
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

View Source
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

View Source
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

View Source
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

View Source
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

View Source
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

View Source
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

View Source
var CheckResults = prometheus.NewCounter(
	prometheus.CounterOpts{
		Namespace: namespaceCore,
		Subsystem: subsystemChecks,
		Name:      "results_total",
		Help:      "Amount of check results received",
	})

CheckResults is a Prometheus counter

View Source
var CheckReturnCode = prometheus.NewGaugeVec(
	prometheus.GaugeOpts{
		Namespace: namespaceCore,
		Subsystem: subsystemChecks,
		Name:      "returncode",
		Help:      "returncode of a check",
	},
	checkLabelNames,
)

CheckReturnCode is a Prometheus gauge vector

View Source
var CheckState = prometheus.NewGaugeVec(
	prometheus.GaugeOpts{
		Namespace: namespaceCore,
		Subsystem: subsystemChecks,
		Name:      "state",
		Help:      "State of a check",
	},
	checkLabelNames,
)

CheckState is a Prometheus gauge vector

View Source
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

View Source
var ChecksActive = prometheus.NewCounter(
	prometheus.CounterOpts{
		Namespace: namespaceCore,
		Subsystem: subsystemChecks,
		Name:      "active_total",
		Help:      "Amount of active checks executed",
	})

ChecksActive is a Prometheus counter

View Source
var ContactNotificationEnd = prometheus.NewCounterVec(
	prometheus.CounterOpts{
		Namespace: namespaceCore,
		Subsystem: subsystemContactNotification,
		Name:      "end_total",
		Help:      "Notification ended",
	},
	contactNotificationLabelNames,
)

ContactNotificationEnd is a Prometheus counter vector

View Source
var ContactNotificationStart = prometheus.NewCounterVec(
	prometheus.CounterOpts{
		Namespace: namespaceCore,
		Subsystem: subsystemContactNotification,
		Name:      "start_total",
		Help:      "Notification started",
	},
	contactNotificationLabelNames,
)

ContactNotificationStart is a Prometheus counter vector

View Source
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

View Source
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

View Source
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

View Source
var NotificationContactsNotified = prometheus.NewCounterVec(
	prometheus.CounterOpts{
		Namespace: namespaceCore,
		Subsystem: subsystemNotification,
		Name:      "contacts_notified_total",
		Help:      "Contacts notified",
	},
	notificationLabelNames,
)

NotificationContactsNotified is a Prometheus counter vector

View Source
var NotificationEnd = prometheus.NewCounterVec(
	prometheus.CounterOpts{
		Namespace: namespaceCore,
		Subsystem: subsystemNotification,
		Name:      "end_total",
		Help:      "Notification ended",
	},
	notificationLabelNames,
)

NotificationEnd is a Prometheus counter vector

View Source
var NotificationStart = prometheus.NewCounterVec(
	prometheus.CounterOpts{
		Namespace: namespaceCore,
		Subsystem: subsystemNotification,
		Name:      "start_total",
		Help:      "Notification started",
	},
	notificationLabelNames,
)

NotificationStart is a Prometheus counter vector

View Source
var StatsHostsAmount = prometheus.NewGauge(
	prometheus.GaugeOpts{
		Namespace: namespaceCore,
		Subsystem: subsystemStatisticsHosts,
		Name:      "total",
		Help:      "Amount of Hosts total",
	},
)

StatsHostsAmount is a Prometheus gauge

View Source
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

View Source
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

View Source
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

View Source
var StatsHostsFlapping = prometheus.NewGauge(
	prometheus.GaugeOpts{
		Namespace: namespaceCore,
		Subsystem: subsystemStatisticsHosts,
		Name:      "flapping",
		Help:      "Amount of Hosts currently flapping",
	},
)

StatsHostsFlapping is a Prometheus gauge

View Source
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

View Source
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

View Source
var StatsServicesAmount = prometheus.NewGauge(
	prometheus.GaugeOpts{
		Namespace: namespaceCore,
		Subsystem: subsystemStatisticsServices,
		Name:      "total",
		Help:      "Amount of Services total",
	},
)

StatsServicesAmount is a Prometheus gauge

View Source
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

View Source
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

View Source
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

View Source
var StatsServicesFlapping = prometheus.NewGauge(
	prometheus.GaugeOpts{
		Namespace: namespaceCore,
		Subsystem: subsystemStatisticsServices,
		Name:      "flapping",
		Help:      "Amount of Services currently flapping",
	},
)

StatsServicesFlapping is a Prometheus gauge

View Source
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

View Source
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

func InitPrometheus

func InitPrometheus(address string) (net.Listener, error)

InitPrometheus starts the prometheus server

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL