From 4176a449867722e4ede99c36621debff2299bfad Mon Sep 17 00:00:00 2001 From: Trim21 Date: Mon, 25 Nov 2024 23:42:57 +0800 Subject: [PATCH] style: add help message to metrics --- internal/tag/cache_repo.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/tag/cache_repo.go b/internal/tag/cache_repo.go index 900cde4d..ccdcfe4c 100644 --- a/internal/tag/cache_repo.go +++ b/internal/tag/cache_repo.go @@ -49,6 +49,7 @@ 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"}, }) @@ -56,6 +57,7 @@ var CachedCount = prometheus.NewCounter(prometheus.CounterOpts{ var TotalCount = prometheus.NewCounter(prometheus.CounterOpts{ Subsystem: "chii", Name: "query_count_total", + Help: "sql query count total", ConstLabels: map[string]string{"repo": "meta_tags"}, })