Skip to content

Commit

Permalink
Fix Prometheus metrics MIME type and bump prometheus-client to 0.21.1 (
Browse files Browse the repository at this point in the history
  • Loading branch information
psrok1 authored Jan 10, 2025
1 parent cbb761c commit 390bcce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion mwdb/resources/metrics.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from flask import Response
from prometheus_client import CONTENT_TYPE_LATEST

from mwdb.core.capabilities import Capabilities
from mwdb.core.metrics import collect
Expand Down Expand Up @@ -32,5 +33,5 @@ def get(self):
metrics = collect()
return Response(
metrics,
content_type="application/octet-stream",
content_type=CONTENT_TYPE_LATEST,
)
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ python-dateutil==2.8.2
pyzipper==0.3.5
pycryptodomex==3.19.1
ssdeep==3.4
prometheus-client==0.19.0
prometheus-client==0.21.1

0 comments on commit 390bcce

Please sign in to comment.