diff --git a/CHANGELOG.md b/CHANGELOG.md index 2a55bab..c37e019 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ All notable changes to this project will be documented in this file. -## [0.5.0] - 2022-11-24 +## [0.5.1] - 2022-11-24 ### Documentation diff --git a/alert_exporter/__init__.py b/alert_exporter/__init__.py index 502980b..42a50b8 100644 --- a/alert_exporter/__init__.py +++ b/alert_exporter/__init__.py @@ -2,4 +2,4 @@ __author__ = """Baptiste ROUX""" __email__ = "baptiste.roux@skale-5.com" -__version__ = "0.5.0" +__version__ = "0.5.1" diff --git a/alert_exporter/sources/__init__.py b/alert_exporter/sources/__init__.py index 8c81992..c2de326 100644 --- a/alert_exporter/sources/__init__.py +++ b/alert_exporter/sources/__init__.py @@ -2,4 +2,4 @@ __author__ = """Baptiste ROUX""" __email__ = "baptiste.roux@skale-5.com" -__version__ = "0.5.0" +__version__ = "0.5.1" diff --git a/alert_exporter/sources/kubernetes.py b/alert_exporter/sources/kubernetes.py index 6abe106..e950160 100644 --- a/alert_exporter/sources/kubernetes.py +++ b/alert_exporter/sources/kubernetes.py @@ -70,4 +70,6 @@ def get_blackbox_exporter_targets(self) -> None: logging.info( f'Blackbox-exporter service monitor Rule - {sm["metadata"]["name"]}' ) - self.targets.append(sm["spec"]["endpoints"][0]["params"]["target"][0]) + self.targets += [ + ep["params"]["target"][0] for ep in sm["spec"]["endpoints"] + ] diff --git a/pyproject.toml b/pyproject.toml index be702cc..6ca39b3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "alert_exporter" -version = "0.5.0" +version = "0.5.1" keywords = ["alert_exporter", "alert", "monitoring", "prometheus", "cloudwatch"] authors = [{ name = "Baptiste ROUX", email = "rouxbaptiste@outlook.com" }] description = "Extract alerts configured in different sources (eg: Prometheus Rules, CloudWatch Alarms, Pingdom)"