Skip to content

Commit

Permalink
try fix CollectorRegistry issue
Browse files Browse the repository at this point in the history
  • Loading branch information
charlienegri committed Feb 6, 2025
1 parent c0c7c61 commit 72b32e4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions container/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@


app = App()
REGISTRY.register(CollectorRegistry())
app.wsgi_app = DispatcherMiddleware(app.wsgi_app, {
'/metrics': make_wsgi_app(registry=REGISTRY)
})
GunicornPrometheusMetrics(app, path='/metrics', registry=REGISTRY)
#REGISTRY.register(CollectorRegistry())
#app.wsgi_app = DispatcherMiddleware(app.wsgi_app, {
# '/metrics': make_wsgi_app(registry=REGISTRY)
#})
GunicornPrometheusMetrics(app, path='/metrics', registry=CollectorRegistry())

0 comments on commit 72b32e4

Please sign in to comment.