Skip to content

Commit

Permalink
update /metrics endpoint to v2 (#313)
Browse files Browse the repository at this point in the history
* update metrics endpoint to `v2`

* add `metrics` warning

* fix lint

* remove version check
  • Loading branch information
aMahanna committed Feb 2, 2024
1 parent 9eeb3ec commit 97bf6d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arango/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -1023,7 +1023,7 @@ def metrics(self) -> Result[str]:
:return: Server metrics in Prometheus format.
:rtype: str
"""
request = Request(method="get", endpoint="/_admin/metrics")
request = Request(method="get", endpoint="/_admin/metrics/v2")

def response_handler(resp: Response) -> str:
if resp.is_success:
Expand Down

0 comments on commit 97bf6d8

Please sign in to comment.