telemetry

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// RequestTotal counts the number of received HTTP calls
	RequestTotal = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: "snmp_notifier_requests_total",
			Help: "Requests processed, by status code.",
		},
		[]string{"code"},
	)
	// SNMPSentTotal counts the number of SNMP traps sent.
	SNMPSentTotal = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: "snmp_notifier_trap_sent_total",
			Help: "Traps sent, by SNMP destination.",
		},
		[]string{},
	)
	// SNMPErrorTotal counts the number of SNMP traps in error.
	SNMPErrorTotal = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: "snmp_notifier_trap_error_total",
			Help: "Traps send errors, by SNMP destination.",
		},
		[]string{},
	)
)

Functions

func Init

func Init()

Init starts Prometheus metric counters collection

Types

This section is empty.

Jump to

Keyboard shortcuts

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