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 ¶
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
Click to show internal directories.
Click to hide internal directories.