qontract-reconcile 0.10.1rc411__py3-none-any.whl → 0.10.1rc413__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.
- {qontract_reconcile-0.10.1rc411.dist-info → qontract_reconcile-0.10.1rc413.dist-info}/METADATA +1 -1
- {qontract_reconcile-0.10.1rc411.dist-info → qontract_reconcile-0.10.1rc413.dist-info}/RECORD +7 -7
- reconcile/aus/metrics.py +12 -0
- reconcile/aus/ocm_upgrade_scheduler.py +26 -3
- {qontract_reconcile-0.10.1rc411.dist-info → qontract_reconcile-0.10.1rc413.dist-info}/WHEEL +0 -0
- {qontract_reconcile-0.10.1rc411.dist-info → qontract_reconcile-0.10.1rc413.dist-info}/entry_points.txt +0 -0
- {qontract_reconcile-0.10.1rc411.dist-info → qontract_reconcile-0.10.1rc413.dist-info}/top_level.txt +0 -0
{qontract_reconcile-0.10.1rc411.dist-info → qontract_reconcile-0.10.1rc413.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: qontract-reconcile
|
3
|
-
Version: 0.10.
|
3
|
+
Version: 0.10.1rc413
|
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
|
{qontract_reconcile-0.10.1rc411.dist-info → qontract_reconcile-0.10.1rc413.dist-info}/RECORD
RENAMED
@@ -119,10 +119,10 @@ reconcile/aus/advanced_upgrade_service.py,sha256=lKNWrKrHTjgyDVJaR7cx9Mgk5hULkEv
|
|
119
119
|
reconcile/aus/aus_label_source.py,sha256=X6FD4NYcX27llMUSmmBcCh-pG7U5FnBd0zl-0zwCj2U,4118
|
120
120
|
reconcile/aus/base.py,sha256=bLJWyH8JrGx_g4OVLF9Swu2gig_57Fz5kbY3ETDrTH4,37788
|
121
121
|
reconcile/aus/cluster_version_data.py,sha256=j4UyEBi5mQuvPq5Lo7a_L_0blxvH790wJV07uAiikFU,7126
|
122
|
-
reconcile/aus/metrics.py,sha256
|
122
|
+
reconcile/aus/metrics.py,sha256=-9aYydrUU2IZH0siyck8BciQpDSv6-wMTQDmrgl-4FU,2955
|
123
123
|
reconcile/aus/models.py,sha256=oBSVZ-3JTngxKg_bH1vAfREpz55t8K-Y3eC9TA4pOTw,6849
|
124
124
|
reconcile/aus/ocm_addons_upgrade_scheduler_org.py,sha256=60DLXtcP9UdwLStrBJ3kJ8avkrL2onEl3LY2Wj1FYBc,7158
|
125
|
-
reconcile/aus/ocm_upgrade_scheduler.py,sha256
|
125
|
+
reconcile/aus/ocm_upgrade_scheduler.py,sha256=m77mqE8Bn_t49u3piHDE9Rc55X3K_KwBBCKpZyaASQk,8897
|
126
126
|
reconcile/aus/ocm_upgrade_scheduler_org.py,sha256=OBgE5mnVdQQV4tMH0AE2V_PDt9Gy6d-LyuPceqjORts,2331
|
127
127
|
reconcile/aus/upgrades.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
128
128
|
reconcile/aws_ami_cleanup/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -622,8 +622,8 @@ tools/test/test_app_interface_metrics_exporter.py,sha256=dmEcNwZltP1rd_4DbxIYakO
|
|
622
622
|
tools/test/test_qontract_cli.py,sha256=awwTHEc2DWlykuqGIYM0WOBoSL0KRnOraCLk3C7izis,1401
|
623
623
|
tools/test/test_sd_app_sre_alert_report.py,sha256=v363r9zM7__0kR5K6mvJoGFcM9BvE33fWAayrqkpojA,2116
|
624
624
|
tools/test/test_sre_checkpoints.py,sha256=SKqPPTl9ua0RFdSSofnoQX-JZE6dFLO3LRhfQzqtfh8,2607
|
625
|
-
qontract_reconcile-0.10.
|
626
|
-
qontract_reconcile-0.10.
|
627
|
-
qontract_reconcile-0.10.
|
628
|
-
qontract_reconcile-0.10.
|
629
|
-
qontract_reconcile-0.10.
|
625
|
+
qontract_reconcile-0.10.1rc413.dist-info/METADATA,sha256=yZBYg41VAqZ7HIoyngiivJHrq_Jsnk1fDtAurAMNuFI,2347
|
626
|
+
qontract_reconcile-0.10.1rc413.dist-info/WHEEL,sha256=Xo9-1PvkuimrydujYJAjF7pCkriuXBpUPEjma1nZyJ0,92
|
627
|
+
qontract_reconcile-0.10.1rc413.dist-info/entry_points.txt,sha256=rTjAv28I_CHLM8ID3OPqMI_suoQ9s7tFbim4aYjn9kk,376
|
628
|
+
qontract_reconcile-0.10.1rc413.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
|
629
|
+
qontract_reconcile-0.10.1rc413.dist-info/RECORD,,
|
reconcile/aus/metrics.py
CHANGED
@@ -108,3 +108,15 @@ class AUSOrganizationErrorRate(ErrorRateMetricSet):
|
|
108
108
|
org_id=org_id,
|
109
109
|
),
|
110
110
|
)
|
111
|
+
|
112
|
+
|
113
|
+
class AUSOrganizationVersionDataGauge(AUSBaseMetric, GaugeMetric):
|
114
|
+
"""Gauge for the version data for an OCM organization"""
|
115
|
+
|
116
|
+
org_id: str
|
117
|
+
version: str
|
118
|
+
workload: str
|
119
|
+
|
120
|
+
@classmethod
|
121
|
+
def name(cls) -> str:
|
122
|
+
return "aus_organization_version_data"
|
@@ -10,6 +10,7 @@ from reconcile.aus.metrics import (
|
|
10
10
|
UPGRADE_SCHEDULED_METRIC_VALUE,
|
11
11
|
UPGRADE_STARTED_METRIC_VALUE,
|
12
12
|
AUSClusterVersionRemainingSoakDaysGauge,
|
13
|
+
AUSOrganizationVersionDataGauge,
|
13
14
|
)
|
14
15
|
from reconcile.aus.models import (
|
15
16
|
ClusterUpgradeSpec,
|
@@ -56,12 +57,15 @@ class OCMClusterUpgradeSchedulerIntegration(
|
|
56
57
|
org_upgrade_spec.org.environment.name, org_upgrade_spec.org.org_id
|
57
58
|
)
|
58
59
|
|
60
|
+
self.expose_version_data_metrics(
|
61
|
+
ocm_env=org_upgrade_spec.org.environment.name,
|
62
|
+
org_id=org_upgrade_spec.org.org_id,
|
63
|
+
version_data=version_data,
|
64
|
+
)
|
59
65
|
self.expose_remaining_soak_day_metrics(
|
60
66
|
ocm_env=org_upgrade_spec.org.environment.name,
|
61
67
|
org_upgrade_spec=org_upgrade_spec,
|
62
|
-
version_data=
|
63
|
-
org_upgrade_spec.org.environment.name, org_upgrade_spec.org.org_id
|
64
|
-
),
|
68
|
+
version_data=version_data,
|
65
69
|
current_state=current_state,
|
66
70
|
)
|
67
71
|
|
@@ -79,6 +83,25 @@ class OCMClusterUpgradeSchedulerIntegration(
|
|
79
83
|
"* advanced-upgrade-service to drive upgrade policies based on OCM subscription labels"
|
80
84
|
)
|
81
85
|
|
86
|
+
def expose_version_data_metrics(
|
87
|
+
self,
|
88
|
+
ocm_env: str,
|
89
|
+
org_id: str,
|
90
|
+
version_data: VersionData,
|
91
|
+
) -> None:
|
92
|
+
for version, version_history in version_data.versions.items():
|
93
|
+
for workload, workload_history in version_history.workloads.items():
|
94
|
+
metrics.set_gauge(
|
95
|
+
AUSOrganizationVersionDataGauge(
|
96
|
+
integration=self.name,
|
97
|
+
ocm_env=ocm_env,
|
98
|
+
org_id=org_id,
|
99
|
+
version=version,
|
100
|
+
workload=workload,
|
101
|
+
),
|
102
|
+
workload_history.soak_days,
|
103
|
+
)
|
104
|
+
|
82
105
|
def expose_remaining_soak_day_metrics(
|
83
106
|
self,
|
84
107
|
ocm_env: str,
|
File without changes
|
File without changes
|
{qontract_reconcile-0.10.1rc411.dist-info → qontract_reconcile-0.10.1rc413.dist-info}/top_level.txt
RENAMED
File without changes
|