metrics

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2019 License: MIT Imports: 14 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 UpdateMetricsFunction)

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

func RegisterUpdateMetricsFunctionsWithInterval added in v0.2.0

func RegisterUpdateMetricsFunctionsWithInterval(name string, f UpdateMetricsFunction, interval time.Duration)

RegisterUpdateMetricsFunctionsWithInterval allows you to register a function that will update prometheus metrics every interval

func SetUpdateMetricsInterval

func SetUpdateMetricsInterval(interval time.Duration)

SetUpdateMetricsInterval sets interval

func UpdateBatchMetrics

func UpdateBatchMetrics(ctx context.Context) error

UpdateBatchMetrics updates batch metrics

func UpdateGraphMetrics

func UpdateGraphMetrics(ctx context.Context) error

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

func UpdateStorageMetrics added in v0.2.0

func UpdateStorageMetrics(ctx context.Context) error

UpdateStorageMetrics updates storage metrics.

Types

type UpdateMetricsFunction added in v0.2.0

type UpdateMetricsFunction func(context.Context) error

UpdateMetricsFunction ...

Jump to

Keyboard shortcuts

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