Skip to content

Commit

Permalink
Adding metric descriptions
Browse files Browse the repository at this point in the history
Signed-off-by: Danny Kopping <[email protected]>
  • Loading branch information
Danny Kopping committed Jun 30, 2022
1 parent 59a8c64 commit 27e24c1
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,85 +66,85 @@ func NewExporter(labels map[string]string, groups ...GroupStatistics) *Exporter
groups: groups,
groupGets: prometheus.NewDesc(
"gets_total",
"todo",
"Counter of cache gets (including from peers)",
[]string{"group"},
labels,
),
groupCacheHits: prometheus.NewDesc(
"hits_total",
"todo",
"Count of cache hits (from either main or hot cache)",
[]string{"group"},
labels,
),
groupPeerLoads: prometheus.NewDesc(
"peer_loads_total",
"todo",
"Count of non-error loads or cache hits from peers",
[]string{"group"},
labels,
),
groupPeerErrors: prometheus.NewDesc(
"peer_errors_total",
"todo",
"Count of errors from peers",
[]string{"group"},
labels,
),
groupLoads: prometheus.NewDesc(
"loads_total",
"todo",
"Count of (gets - hits)",
[]string{"group"},
labels,
),
groupLoadsDeduped: prometheus.NewDesc(
"loads_deduped_total",
"todo",
"Count of loads after singleflight",
[]string{"group"},
labels,
),
groupLocalLoads: prometheus.NewDesc(
"local_load_total",
"todo",
"Count of loads from local cache",
[]string{"group"},
labels,
),
groupLocalLoadErrs: prometheus.NewDesc(
"local_load_errs_total",
"todo",
"Count of loads from local cache that failed",
[]string{"group"},
labels,
),
groupServerRequests: prometheus.NewDesc(
"server_requests_total",
"todo",
"Count of gets that came over the network from peers",
[]string{"group"},
labels,
),
cacheBytes: prometheus.NewDesc(
"cache_bytes",
"todo",
"Gauge of current bytes in use",
[]string{"group", "type"},
labels,
),
cacheItems: prometheus.NewDesc(
"cache_items",
"todo",
"Gauge of current items in use",
[]string{"group", "type"},
labels,
),
cacheGets: prometheus.NewDesc(
"cache_gets_total",
"todo",
"Count of cache gets",
[]string{"group", "type"},
labels,
),
cacheHits: prometheus.NewDesc(
"cache_hits_total",
"todo",
"Count of cache hits",
[]string{"group", "type"},
labels,
),
cacheEvictions: prometheus.NewDesc(
"cache_evictions_total",
"todo",
"Count of cache evictions",
[]string{"group", "type"},
labels,
),
Expand Down

0 comments on commit 27e24c1

Please sign in to comment.