Skip to content

Commit

Permalink
style: add help message to metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 committed Nov 25, 2024
1 parent be53cba commit 4176a44
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/tag/cache_repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,15 @@ type cachedTags struct {
var CachedCount = prometheus.NewCounter(prometheus.CounterOpts{
Subsystem: "chii",
Name: "query_cached_count_total",
Help: "cached sql query count total",
ConstLabels: map[string]string{"repo": "meta_tags"},
})

//nolint:gochecknoglobals
var TotalCount = prometheus.NewCounter(prometheus.CounterOpts{
Subsystem: "chii",
Name: "query_count_total",
Help: "sql query count total",
ConstLabels: map[string]string{"repo": "meta_tags"},
})

Expand Down

0 comments on commit 4176a44

Please sign in to comment.