metrics

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EventEmitted = promauto.NewCounterVec(prometheus.CounterOpts{
		Name: "loggen_events_total",
		Help: "The total number of events",
	},
		[]string{"type", "severity"})

	EventEmittedBytes = promauto.NewCounterVec(prometheus.CounterOpts{
		Name: "loggen_event_bytes_total",
		Help: "The total bytes of events",
	},
		[]string{"type", "severity"})
	GeneratedLoad = promauto.NewCounterVec(prometheus.CounterOpts{
		Name: "generated_load",
		Help: "Generated load",
	},
		[]string{"type"})

	Uptime = promauto.NewCounterFunc(
		prometheus.CounterOpts{
			Name: "uptime_seconds",
			Help: "Generator uptime.",
		}, func() float64 {
			return time.Since(Startup).Seconds()
		},
	)
)
View Source
var Startup time.Time

Functions

func Handler

func Handler() gin.HandlerFunc

Types

This section is empty.

Jump to

Keyboard shortcuts

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