Skip to content

Commit

Permalink
added exporter for prometheus
Browse files Browse the repository at this point in the history
  • Loading branch information
giladAlboher committed Sep 13, 2023
1 parent 2c0207d commit ba222c5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@
from functools import wraps
import pymongo
import requests
from prometheus_flask_exporter import PrometheusMetrics

app = Flask(__name__)
metrics = PrometheusMetrics(app)

app.secret_key = b'\xcc^\x91\xea\x17-\xd0W\x03\xa7\xf8J0\xac8\xc5'

# Database
Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ pymongo==3.12.1
Flask-PyMongo
requests
urllib3==1.25.11
passlib
passlib
prometheus_flask_exporter

0 comments on commit ba222c5

Please sign in to comment.