metrics

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAlertLevel added in v0.8.2

func GetAlertLevel(name string) (float64, error)

GetAlertLevel returns alert level from the metric use for testing purposes

func Register

func Register(logger *zap.Logger)

Register metrics for expose

func SetAlertLevel

func SetAlertLevel(name string, level alert.Level)

SetAlertLevel sets alert level

func SetScriptsActive added in v0.7.0

func SetScriptsActive(name string, active bool)

SetScriptsActive updates data for metrics metricScripts

func SetVersion

func SetVersion(version string)

SetVersion updates data for metrics metricInfoVersion

Types

This section is empty.

Jump to

Keyboard shortcuts

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