Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 committed Nov 25, 2024
1 parent 9f509cc commit 202b3e0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions internal/tag/cache_repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,20 +45,23 @@ type cachedTags struct {
Tags []Tag
}

//nolint:gochecknoglobals
var CacheCount = prometheus.NewCounter(prometheus.CounterOpts{
Subsystem: "chii",
Name: "request_cached_count",
Name: "cached_count_total",
Help: "",
ConstLabels: map[string]string{"repo": "meta_tags"},
})

//nolint:gochecknoglobals
var NotCacheCount = prometheus.NewCounter(prometheus.CounterOpts{
Subsystem: "chii",
Name: "request_not_cached_count",
Name: "not_cached_count_total",
Help: "",
ConstLabels: map[string]string{"repo": "meta_tags"},
})

//nolint:gochecknoinits
func init() {
prometheus.MustRegister(CacheCount)
prometheus.MustRegister(NotCacheCount)
Expand Down

0 comments on commit 202b3e0

Please sign in to comment.