metrics

package
v0.6.9 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler() gin.HandlerFunc

func Init

func Init()

Init initializes all Prometheus metrics made available by AdGuard exporter.

func Update

func Update(ims ...InstanceMetrics)

Types

type InstanceMetrics

type InstanceMetrics struct {
	HostName string
	Status   *model.ServerStatus
	Stats    *model.Stats
	QueryLog *model.QueryLog
}

type Number

type Number interface {
	constraints.Float | constraints.Integer
}

Jump to

Keyboard shortcuts

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