From 74c38fb98381fe131501489559f8038faf8564d4 Mon Sep 17 00:00:00 2001 From: Vasco Santos Date: Mon, 31 Jan 2022 12:39:04 +0100 Subject: [PATCH] fix: improve metrics naming --- packages/gateway/src/metrics.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/gateway/src/metrics.js b/packages/gateway/src/metrics.js index 21199081e30..208489b6a22 100644 --- a/packages/gateway/src/metrics.js +++ b/packages/gateway/src/metrics.js @@ -106,17 +106,17 @@ export async function metricsGet(request, env, ctx) { (gw) => `nftstorage_gateway_total_failed_requests{gateway="${gw}",env="${env.ENV}"} ${metricsCollected.ipfsGateways[gw].totalFailedRequests}` ), - `# HELP nftstorage_gateway_total_rate_limited_prevented_requests Total failed requests.`, - `# TYPE nftstorage_gateway_total_rate_limited_prevented_requests counter`, + `# HELP nftgateway_rate_limited_prevented_requests_total Total rate limited prevented requests per gateway.`, + `# TYPE nftgateway_rate_limited_prevented_requests_total counter`, ...env.ipfsGateways.map( (gw) => - `nftstorage_gateway_total_rate_limited_prevented_requests{gateway="${gw}",env="${env.ENV}"} ${metricsCollected.ipfsGateways[gw].totalRateLimitedPreventedRequests}` + `nftgateway_rate_limited_prevented_requests_total{gateway="${gw}",env="${env.ENV}"} ${metricsCollected.ipfsGateways[gw].totalRateLimitedPreventedRequests}` ), - `# HELP nftstorage_gateway_total_rate_limited_errored_requests Total failed requests.`, - `# TYPE nftstorage_gateway_total_rate_limited_errored_requests counter`, + `# HELP nftgateway_rate_limited_errored_requests_total Total rate limited errored requests per gateway.`, + `# TYPE nftgateway_rate_limited_errored_requests_total counter`, ...env.ipfsGateways.map( (gw) => - `nftstorage_gateway_total_rate_limited_errored_requests{gateway="${gw}",env="${env.ENV}"} ${metricsCollected.ipfsGateways[gw].totalRateLimitedErroredRequests}` + `nftgateway_rate_limited_errored_requests_total{gateway="${gw}",env="${env.ENV}"} ${metricsCollected.ipfsGateways[gw].totalRateLimitedErroredRequests}` ), `# HELP nftstorage_gateway_total_faster_requests Total requests with faster response.`, `# TYPE nftstorage_gateway_total_faster_requests counter`,