Skip to content

Commit

Permalink
fix(metrics): fix up metrics to be 1 instead of 0 (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelmass committed Jan 29, 2022
1 parent 46a6d10 commit 81c287a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/nlu-server/src/telemetry/metric/prometheus.ts
@@ -1,4 +1,4 @@
import { createMiddleware, defaultNormalizers } from '@promster/express'
import { createMiddleware, defaultNormalizers, signalIsUp } from '@promster/express'
import { getSummary, getContentType } from '@promster/metrics'
import { Express, Request } from 'express'
import * as http from 'http'
Expand Down Expand Up @@ -113,4 +113,6 @@ export const initPrometheus = async (app: Express, onRequest?: () => Promise<voi
)

await createServer(onRequest)

signalIsUp()
}

0 comments on commit 81c287a

Please sign in to comment.