metrics

package
v0.0.0-...-8ca999e Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(router *mux.Router)

func RegisterMetricsCollectors

func RegisterMetricsCollectors(globals *config.Globals, db kioradb.DB)

Types

type TenantCountCollector

type TenantCountCollector struct {
	// contains filtered or unexported fields
}

TenantCountCollector is a prometheus.Collector that collects the number of alerts in the system, broken down by tenant and state.

func NewTenantCountCollector

func NewTenantCountCollector(globals *config.Globals, db kioradb.DB) *TenantCountCollector

func (*TenantCountCollector) Collect

func (t *TenantCountCollector) Collect(ch chan<- prometheus.Metric)

Collect implements prometheus.Collector.

func (*TenantCountCollector) Describe

func (*TenantCountCollector) Describe(c chan<- *prometheus.Desc)

Describe implements prometheus.Collector.

Jump to

Keyboard shortcuts

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