monitoring

package
v0.0.0-...-d424132 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package monitoring contains functionality for metrics.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAndRegisterMetricsFromStruct

func CreateAndRegisterMetricsFromStruct(c interface{}) error

CreateAndRegisterMetricsFromStruct accepts a struct and dynamically creates metrics from the field names and associated tags provided.

func ListenAndServeMetrics

func ListenAndServeMetrics(ctx context.Context, address string) error

ListenAndServeMetrics initialises a new HTTP Server in the address specified in the parameter. This function blocks indefinitely and should be run on a separate goroutine. If the context provided is done, the HTTP Server is closed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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