fix: query_range to query

This commit is contained in:
dettlaff 2024-06-15 22:31:39 +04:00
parent f96c9c2aea
commit 6357fb436c

View file

@ -19,7 +19,7 @@ class PrometheusInfo:
class PrometheusQueries: class PrometheusQueries:
@staticmethod @staticmethod
def _send_request(endpoint="/api/v1/query_range", params=None) -> PrometheusInfo: def _send_request(endpoint="/api/v1/query", params=None) -> PrometheusInfo:
try: try:
response = requests.get(f"{PROMETHEUS_URL}{endpoint}", params=params) response = requests.get(f"{PROMETHEUS_URL}{endpoint}", params=params)
return PrometheusInfo( return PrometheusInfo(