metrics

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUpdateMetricsInterval

func GetUpdateMetricsInterval() time.Duration

GetUpdateMetricsInterval gets interval

func RegisterUpdateMetricsFunctions

func RegisterUpdateMetricsFunctions(name string, f func(context.Context))

RegisterUpdateMetricsFunctions allows you to register a function that will update prometheus metrics

func SetUpdateMetricsInterval

func SetUpdateMetricsInterval(interval time.Duration)

SetUpdateMetricsInterval sets interval

func UpdateBatchMetrics

func UpdateBatchMetrics(ctx context.Context)

UpdateBatchMetrics updates batch metrics

func UpdateGraphMetrics

func UpdateGraphMetrics(ctx context.Context)

UpdateGraphMetrics updates graph metrics

func UpdateMetrics

func UpdateMetrics(ctx context.Context)

UpdateMetrics main update metrics process This process loops forever so it needs to be detached

Types

This section is empty.

Jump to

Keyboard shortcuts

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