Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metrics ¶
type Metrics map[logrus.Level]prometheus.Counter
Metrics is a logrus hook-compliant struct that records metrics about logging when added to a logrus.Logger
func New ¶
New creates a new hook for recording metrics. New takes a namespace parameter which defines the namespace for the prometheus metrics.
Click to show internal directories.
Click to hide internal directories.