metrics

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package metrics implements for web the module to publish prometheus metrics

Index

Constants

This section is empty.

Variables

View Source
var (
	// NAMESPACE of prometheus metrics
	NAMESPACE string = "service"
	// VERSION in prometheus metrics
	VERSION string = ""
	// UP function for healthy check in prometheus metrics
	UP func() bool = func() bool {
		return true
	}
)

Functions

func Register

func Register(r *gin.Engine, ws *web.Service)

Register to WebService

Types

This section is empty.

Jump to

Keyboard shortcuts

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