Skip to content

Commit

Permalink
Add function to list all metric names from default set (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
sequix committed Jul 21, 2022
1 parent 6cf96d4 commit 2767350
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions metrics.go
Expand Up @@ -110,3 +110,8 @@ func WriteFDMetrics(w io.Writer) {
func UnregisterMetric(name string) bool {
return defaultSet.UnregisterMetric(name)
}

// ListMetricNames returns a list of all the metric names from default set.
func ListMetricNames() []string {
return defaultSet.ListMetricNames()
}

0 comments on commit 2767350

Please sign in to comment.