metrics

package
v0.0.0-...-fe16607 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package metrics Provide a simple intuitive use of prometheus metrics

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dec

func Dec(name string)

Dec Decrease the metric with the given name.

func HTTPHandler

func HTTPHandler(
	metricsToRegister map[string]interface{},
	envName,
	serviceName string,
) http.Handler

HTTPHandler Return a fully configured http handler.

func Inc

func Inc(name string)

Inc Increase the metric with the given name.

func Register

func Register(metricsToRegister map[string]interface{}) metrics.Registry

Register Register required prometheus metrics and return a registry.

Types

This section is empty.

Jump to

Keyboard shortcuts

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