Skip to content

Commit

Permalink
add UWsgiPrometheusMetrics
Browse files Browse the repository at this point in the history
  • Loading branch information
jawadqur committed May 6, 2024
1 parent 2b7bd8f commit 5a34cbf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 2 additions & 0 deletions fence/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@
import fence.blueprints.register
import fence.blueprints.ga4gh

# Prometheus metrics exporter
from prometheus_flask_exporter.multiprocess import UWsgiPrometheusMetrics

app = flask.Flask(__name__)
CORS(app=app, headers=["content-type", "accept"], expose_headers="*")
Expand Down
3 changes: 0 additions & 3 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@

from fence import app, app_init, config

# Prometheus metrics exporter
from prometheus_flask_exporter.multiprocess import UWsgiPrometheusMetrics


# Serve metrics on port 9090
# metrics.start_http_server(9090)
Expand Down

0 comments on commit 5a34cbf

Please sign in to comment.