prometheus_metrics

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package prometheus_metrics implements the service and the configuration to run prometheus server

Package prometheus_metrics implements the service and the configuration to run prometheus server

Index

Constants

This section is empty.

Variables

View Source
var (
	//METRICS_ADDRESS gets the endpoint port from env to implements an endpoint inside the
	//application that will return all prometheus data saved
	METRICS_ADDRESS = "METRICS_ADDRESS"
	//METRICS_PATH gets the endpoint path from env to implements an endpoint inside the
	//application that will return all prometheus data saved
	METRICS_PATH = "METRICS_PATH"
)

Functions

func Handler

func Handler(c *gin.Context)

Handler implements the endpoint middleware to intercept all requests and save the data

Types

type PrometheusMetricsInterface

type PrometheusMetricsInterface interface {
	PrometheusMetrics(
		logger logger.Logger,
		channelError chan<- error,
		applicationName string,
	)
}

PrometheusMetricsInterface declares prometheus metrics functions

func NewPrometheusMetricsInterface

func NewPrometheusMetricsInterface() PrometheusMetricsInterface

NewPrometheusMetricsInterface returns a instance of NewPrometheusMetricsInterface so you can call prometheus functions

Jump to

Keyboard shortcuts

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