Skip to content

Commit 97bf6d8

Browse files
authored
update /metrics endpoint to v2 (#313)
* update metrics endpoint to `v2` * add `metrics` warning * fix lint * remove version check
1 parent 9eeb3ec commit 97bf6d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arango/database.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1023,7 +1023,7 @@ def metrics(self) -> Result[str]:
10231023
:return: Server metrics in Prometheus format.
10241024
:rtype: str
10251025
"""
1026-
request = Request(method="get", endpoint="/_admin/metrics")
1026+
request = Request(method="get", endpoint="/_admin/metrics/v2")
10271027

10281028
def response_handler(resp: Response) -> str:
10291029
if resp.is_success:

0 commit comments

Comments
 (0)