telemetry

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2024 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: "Total number of HTTP requests by status code.",
		},
		[]string{"code"},
	)
	// SNMPSentTotal counts the number of SNMP traps sent.
	SNMPTrapTotal = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: "snmp_notifier_traps_total",
			Help: "Total number of trap by SNMP destination and outcome.",
		},
		[]string{"destination", "outcome"},
	)
)

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