Skip to content

Commit

Permalink
chore: remove console log
Browse files Browse the repository at this point in the history
  • Loading branch information
vasco-santos committed Feb 6, 2022
1 parent 39f3a0c commit 1fbca4f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/gateway/src/metrics.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ export async function metricsGet(request, env, ctx) {
`nftgateway_winner_response_time_seconds_total{env="${env.ENV}"} ${msToS(
metricsCollected.summaryMetrics.totalWinnerResponseTime
)}`,
`# HELP nftgateway_summary_responses_per_time_total`,
`# TYPE nftgateway_summary_responses_per_time_total histogram for total of responses per response time bucket`,
`# HELP nftgateway_summary_responses_per_time_total total of responses per response time bucket`,
`# TYPE nftgateway_summary_responses_per_time_total histogram`,
...responseTimeHistogram.map(
(t) =>
`nftgateway_summary_responses_per_time_total{le="${msToS(t)}",env="${
Expand Down
2 changes: 0 additions & 2 deletions packages/gateway/test/metrics.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,6 @@ test('Gets Metrics from faster gateway', async (t) => {
const response = await mf.dispatchFetch('http://localhost:8787/metrics')
const metricsResponse = await response.text()

console.log(metricsResponse)

gateways.forEach((gw) => {
t.is(
metricsResponse.includes(`_requests_total{gateway="${gw}",env="test"} 2`),
Expand Down

0 comments on commit 1fbca4f

Please sign in to comment.