Skip to content

Commit

Permalink
Fixed prometheus flag api checks error spamming
Browse files Browse the repository at this point in the history
  • Loading branch information
ganeshrvel committed Nov 17, 2023
1 parent 28f0860 commit 924aa0d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
4 changes: 0 additions & 4 deletions src/robusta/core/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,3 @@ class NoAlertManagerUrlFound(Exception):
"""Exception, when AlertManager url is incorrect"""

pass


class PrometheusFlagsConnectionError(Exception):
"""Exception, when Prometheus flag or AlertManager flag api cannot be reached"""
3 changes: 1 addition & 2 deletions src/robusta/core/sinks/robusta/prometheus_health_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@
import threading
import time

from prometrix import PrometheusNotFound, VictoriaMetricsNotFound
from prometrix import PrometheusNotFound, VictoriaMetricsNotFound, PrometheusFlagsConnectionError
from pydantic import BaseModel

from robusta.core.exceptions import (
AlertsManagerNotFound,
NoAlertManagerUrlFound,
NoPrometheusUrlFound,
PrometheusFlagsConnectionError,
)
from robusta.core.model.base_params import PrometheusParams
from robusta.core.model.env_vars import PROMETHEUS_ERROR_LOG_PERIOD_SEC
Expand Down

0 comments on commit 924aa0d

Please sign in to comment.