Skip to content

Commit

Permalink
fix: collection duration metric buckets
Browse files Browse the repository at this point in the history
  • Loading branch information
luissimas committed Jun 5, 2024
1 parent 8800bea commit 7517bed
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/metrics/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ var (
Help: "The count of links in the zettelkasten",
}, []string{"name"})
CollectionDuration = promauto.NewHistogram(prometheus.HistogramOpts{
Name: "zettelkasten_collection_duration",
Help: "The duration of the metrics collection",
Name: "zettelkasten_collection_duration",
Help: "The duration of the metrics collection",
Buckets: prometheus.LinearBuckets(1, 1000, 10),
})
)

0 comments on commit 7517bed

Please sign in to comment.