package
0.0.0-20230620005156-c96edaef2b26
Repository: https://github.com/fraidev/echo-contrib.git
Documentation: pkg.go.dev
# Functions
NewMetric associates prometheus.Collector based on Metric.Type Deprecated: use echoprometheus package instead.
NewPrometheus generates a new set of metrics with a certain subsystem name Deprecated: use echoprometheus package instead.
# Structs
Metric is a definition for the name, description, type, ID, and prometheus.Collector type (i.e.
Prometheus contains the metrics gathered by the instance and its path Deprecated: use echoprometheus package instead.
PushGateway contains the configuration for pushing to a Prometheus pushgateway (optional).
# Type aliases
RequestCounterLabelMappingFunc is a function which can be supplied to the middleware to control
the cardinality of the request counter's "url" label, which might be required in some contexts.