Skip to content

Commit c87ab0a

Browse files
committed
Fix incorrectly named cache metrics
Signed-off-by: 🌲 Harry 🌊 John 🏔 <johrry@amazon.com>
1 parent 9469c98 commit c87ab0a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## master / unreleased
44

55
* [FEATURE] Ruler: Add `external_labels` option to tag all alerts with a given set of labels.
6+
* [CHANGE] Fix incorrectly named `cortex_cache_fetched_keys` and `cortex_cache_hits` metrics. Renamed to `cortex_cache_fetched_keys_total` and `cortex_cache_hits_total` respectively. #4686
67

78
## 1.12.0 in progress
89

pkg/chunk/cache/instrumented.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ func Instrument(name string, cache Cache, reg prometheus.Registerer) Cache {
3838

3939
fetchedKeys: promauto.With(reg).NewCounter(prometheus.CounterOpts{
4040
Namespace: "cortex",
41-
Name: "cache_fetched_keys",
41+
Name: "cache_fetched_keys_total",
4242
Help: "Total count of keys requested from cache.",
4343
ConstLabels: prometheus.Labels{"name": name},
4444
}),
4545

4646
hits: promauto.With(reg).NewCounter(prometheus.CounterOpts{
4747
Namespace: "cortex",
48-
Name: "cache_hits",
48+
Name: "cache_hits_total",
4949
Help: "Total count of keys found in cache.",
5050
ConstLabels: prometheus.Labels{"name": name},
5151
}),

0 commit comments

Comments
 (0)