Skip to content

Commit

Permalink
Documentation that the prefix should be terminated with a separator c…
Browse files Browse the repository at this point in the history
…haracter (#2745)

This fixes #1376.
  • Loading branch information
mhutchinson authored May 26, 2022
1 parent 645f54a commit a3e9d0a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions monitoring/prometheus/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ import (

// MetricFactory allows the creation of Prometheus-based metrics.
type MetricFactory struct {
// Prefix is an identifier that will be used before local metric names that
// are reported. It is strongly recommended that this ends with a valid
// separator (e.g. "_") in order to improve readability; no separator is
// added by this library.
Prefix string
}

Expand Down

0 comments on commit a3e9d0a

Please sign in to comment.