prometheus: add node_id label to cache metrics

This commit is contained in:
ionutboangiu
2025-07-18 22:36:55 +03:00
committed by Dan Christian Bogos
parent bdd854d363
commit 8466a65d63
6 changed files with 48 additions and 18 deletions

View File

@@ -90,6 +90,12 @@ func (chSv1 *CacheSv1) GetCacheStats(ctx *context.Context, args *utils.AttrCache
return chSv1.cacheS.V1GetCacheStats(ctx, args, rply)
}
// GetStats returns CacheStats filtered by cacheIDs
func (chSv1 *CacheSv1) GetStats(ctx *context.Context, args *utils.AttrCacheIDsWithAPIOpts,
rply *engine.CacheStatsWithMetadata) error {
return chSv1.cacheS.V1GetStats(ctx, args, rply)
}
// PrecacheStatus checks status of active precache processes
func (chSv1 *CacheSv1) PrecacheStatus(ctx *context.Context, args *utils.AttrCacheIDsWithAPIOpts, rply *map[string]string) error {
return chSv1.cacheS.V1PrecacheStatus(ctx, args, rply)