qontract-reconcile 0.10.1rc1146__py3-none-any.whl → 0.10.1rc1147__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: qontract-reconcile
3
- Version: 0.10.1rc1146
3
+ Version: 0.10.1rc1147
4
4
  Summary: Collection of tools to reconcile services with their desired state as defined in the app-interface DB.
5
5
  Home-page: https://github.com/app-sre/qontract-reconcile
6
6
  Author: Red Hat App-SRE Team
@@ -17,7 +17,7 @@ reconcile/dashdotdb_base.py,sha256=l34QDu1G96_Ctnh7ZXdxXgSeCE93GQMdLAkWxmN6vDA,4
17
17
  reconcile/dashdotdb_cso.py,sha256=IkI_KSZuH_kPn0cIQKXitJXiPPFSyHykrOuFy9h9ZpU,3643
18
18
  reconcile/dashdotdb_dora.py,sha256=YmfxD02tKUAQQzku2aj2DXv1oKkAr4V_2lrPVtTFGyI,17674
19
19
  reconcile/dashdotdb_dvo.py,sha256=lCkZ0iby6HrNQb-3kYb6xrt8wCjVUZYxKzz9SiStfHU,8946
20
- reconcile/dashdotdb_slo.py,sha256=QKKqLzA2f6zUjQvQ_6U4DObpSOB80C7h-NWXJhzQwME,7812
20
+ reconcile/dashdotdb_slo.py,sha256=LWn0xmMLxpLXls6U4W2R40MqLH6VpBySolapdoK8T8E,8338
21
21
  reconcile/database_access_manager.py,sha256=FfyXnYcUdX54BYR_6B9PWFmhT8xdNrPCfoz3Q7q39tg,25646
22
22
  reconcile/deadmanssnitch.py,sha256=n-5W-djUgwzpmdDM4eQIZpkkDmHY0vndt-42LJXI4Y8,7491
23
23
  reconcile/email_sender.py,sha256=-5L-Ag_jaEYSzYRoMr52KQBRXz1E8yx9GqLbg2X4XFU,3533
@@ -871,8 +871,8 @@ tools/test/test_qontract_cli.py,sha256=_D61RFGAN5x44CY1tYbouhlGXXABwYfxKSWSQx3Jr
871
871
  tools/test/test_saas_promotion_state.py,sha256=dy4kkSSAQ7bC0Xp2CociETGN-2aABEfL6FU5D9Jl00Y,6056
872
872
  tools/test/test_sd_app_sre_alert_report.py,sha256=v363r9zM7__0kR5K6mvJoGFcM9BvE33fWAayrqkpojA,2116
873
873
  tools/test/test_sre_checkpoints.py,sha256=SKqPPTl9ua0RFdSSofnoQX-JZE6dFLO3LRhfQzqtfh8,2607
874
- qontract_reconcile-0.10.1rc1146.dist-info/METADATA,sha256=LRnpop_Uixs9kQ5whiHWPNORzAgYT4rMKIgvJat2_M8,2213
875
- qontract_reconcile-0.10.1rc1146.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
876
- qontract_reconcile-0.10.1rc1146.dist-info/entry_points.txt,sha256=GKQqCl2j2X1BJQ69een6rHcR26PmnxnONLNOQB-nRjY,491
877
- qontract_reconcile-0.10.1rc1146.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
878
- qontract_reconcile-0.10.1rc1146.dist-info/RECORD,,
874
+ qontract_reconcile-0.10.1rc1147.dist-info/METADATA,sha256=_cQIZE1MJivScvg5up_ZRMuua27rv6_UkjsTzX7WA5U,2213
875
+ qontract_reconcile-0.10.1rc1147.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
876
+ qontract_reconcile-0.10.1rc1147.dist-info/entry_points.txt,sha256=GKQqCl2j2X1BJQ69een6rHcR26PmnxnONLNOQB-nRjY,491
877
+ qontract_reconcile-0.10.1rc1147.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
878
+ qontract_reconcile-0.10.1rc1147.dist-info/RECORD,,
@@ -136,6 +136,7 @@ class DashdotdbSLO(DashdotdbBase):
136
136
  template = jinja2.Template(expr)
137
137
  window = slo.slo_parameters.window
138
138
  promquery = template.render({"window": window})
139
+
139
140
  try:
140
141
  prom_response = self._promget(
141
142
  url=promurl,
@@ -149,9 +150,19 @@ class DashdotdbSLO(DashdotdbBase):
149
150
  # and some prometheus URL are openshift service names. The trick is to run
150
151
  # with `oc port-forward` and update the local hosts file if we need to query those.
151
152
  LOG.error(
152
- f"{self.logmarker} Could not reach prometheus at {promurl}: {error}. Skipping {slo.name}"
153
+ f"{self.logmarker} Could not reach prometheus at {promurl}: {error}."
154
+ f"Skipping SLOs from SLO doc {slo_document.name}"
153
155
  )
156
+ # cannot connect to this prometheus, skip all
154
157
  raise
158
+ except requests.exceptions.HTTPError as error:
159
+ LOG.error(
160
+ f"{self.logmarker} Error wile querying {promurl}: {error}."
161
+ f"Skipping SLO '{slo.name} from SLO doc {slo_document.name}"
162
+ )
163
+ # it could be a query issue, keep processing other SLOs from this doc
164
+ continue
165
+
155
166
  prom_result = prom_response["data"]["result"]
156
167
  if not prom_result:
157
168
  continue