package
0.1.2-dev
Repository: https://github.com/whilew/core-go.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

No description provided by the author
MustNewPrometheusHook creates a new instance of PrometheusHook which exposes Prometheus counters for various log levels.
NewMetric associates prometheus.Collector based on Metric.Type.
NewPrometheus generates a new set of metrics with a certain subsystem name.
NewPrometheusHook creates a new instance of PrometheusHook which exposes Prometheus counters for various log levels.
No description provided by the author

# Structs

No description provided by the author
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.
PrometheusHook exposes Prometheus counters for each of logrus' log levels.
PrometheusPushGateway contains the configuration for pushing to a Prometheus pushgateway (optional).

# Type aliases

RequestCounterURLLabelMappingFn 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.