Skip to content

Commit

Permalink
fix: improve metrics naming
Browse files Browse the repository at this point in the history
  • Loading branch information
vasco-santos committed Feb 1, 2022
1 parent 2fede82 commit 74c38fb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/gateway/src/metrics.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
Expand Down

0 comments on commit 74c38fb

Please sign in to comment.