qontract-reconcile 0.10.1rc1054__py3-none-any.whl → 0.10.1rc1055__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.1rc1054
3
+ Version: 0.10.1rc1055
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
@@ -696,7 +696,7 @@ reconcile/utils/make.py,sha256=QaEwucrzbl8-VHS66Wfdjfo0ubmAcvt_hZGpiGsKU50,231
696
696
  reconcile/utils/metrics.py,sha256=QN37XJDajWt-FdVGgqqDUkhemwTj0srfb-rhkIBxvsE,18591
697
697
  reconcile/utils/models.py,sha256=BYsgjWyuwO7obMhqADsqEQ-_YJrmy8LmFKHSLMFbo1g,4645
698
698
  reconcile/utils/oauth2_backend_application_session.py,sha256=6W16sMpnWEPFDUX7qi5Cui2yOnmLfpgUxWtB3Ii35D0,4177
699
- reconcile/utils/oc.py,sha256=h_p9lk8YNU-PZZuyPrXd677Wj3HrfZebfk9bgoqk1e4,65534
699
+ reconcile/utils/oc.py,sha256=RuVXqvjofz8Vvf_eisvOxOEK1A6KrOq8FQI2YUAAYoM,65796
700
700
  reconcile/utils/oc_connection_parameters.py,sha256=7DiEGo--TJelfYoZXJFyTBPeTw9kXL3L58vy2fiJnes,9643
701
701
  reconcile/utils/oc_filters.py,sha256=Tz3OwtbUaYKmxENFls5CtPVzkZDeFXknw53dJe-wbT8,1382
702
702
  reconcile/utils/oc_map.py,sha256=U8cYhiaZsomkofzbIjVrl7E7crRxkS2JKsFpVeeHVE8,8964
@@ -867,8 +867,8 @@ tools/test/test_qontract_cli.py,sha256=_D61RFGAN5x44CY1tYbouhlGXXABwYfxKSWSQx3Jr
867
867
  tools/test/test_saas_promotion_state.py,sha256=dy4kkSSAQ7bC0Xp2CociETGN-2aABEfL6FU5D9Jl00Y,6056
868
868
  tools/test/test_sd_app_sre_alert_report.py,sha256=v363r9zM7__0kR5K6mvJoGFcM9BvE33fWAayrqkpojA,2116
869
869
  tools/test/test_sre_checkpoints.py,sha256=SKqPPTl9ua0RFdSSofnoQX-JZE6dFLO3LRhfQzqtfh8,2607
870
- qontract_reconcile-0.10.1rc1054.dist-info/METADATA,sha256=964pbKmbJyE8OC_hM19ZLF0So2_dQGW_zoQNeh6ar7U,2213
871
- qontract_reconcile-0.10.1rc1054.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
872
- qontract_reconcile-0.10.1rc1054.dist-info/entry_points.txt,sha256=GKQqCl2j2X1BJQ69een6rHcR26PmnxnONLNOQB-nRjY,491
873
- qontract_reconcile-0.10.1rc1054.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
874
- qontract_reconcile-0.10.1rc1054.dist-info/RECORD,,
870
+ qontract_reconcile-0.10.1rc1055.dist-info/METADATA,sha256=osZ6aZxGEXgoRTD4WHA2HY2NtzhHA443FSJrYDDhlNk,2213
871
+ qontract_reconcile-0.10.1rc1055.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
872
+ qontract_reconcile-0.10.1rc1055.dist-info/entry_points.txt,sha256=GKQqCl2j2X1BJQ69een6rHcR26PmnxnONLNOQB-nRjY,491
873
+ qontract_reconcile-0.10.1rc1055.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
874
+ qontract_reconcile-0.10.1rc1055.dist-info/RECORD,,
reconcile/utils/oc.py CHANGED
@@ -63,6 +63,13 @@ urllib3.disable_warnings()
63
63
  GET_REPLICASET_MAX_ATTEMPTS = 20
64
64
 
65
65
 
66
+ oc_run_execution_counter = Counter(
67
+ name="oc_run_execution_counter",
68
+ documentation="Counts _run method executions per integration",
69
+ labelnames=["integration"],
70
+ )
71
+
72
+
66
73
  class StatusCodeError(Exception):
67
74
  pass
68
75
 
@@ -1079,6 +1086,7 @@ class OCCli: # pylint: disable=too-many-public-methods
1079
1086
 
1080
1087
  @retry(exceptions=(StatusCodeError, NoOutputError), max_attempts=10)
1081
1088
  def _run(self, cmd, **kwargs) -> bytes:
1089
+ oc_run_execution_counter.labels(integration=RunningState().integration).inc()
1082
1090
  stdin = kwargs.get("stdin")
1083
1091
  stdin_text = stdin.encode() if stdin else None
1084
1092
  result = subprocess.run(