qontract-reconcile 0.10.1rc828__py3-none-any.whl → 0.10.1rc829__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.1rc828.dist-info → qontract_reconcile-0.10.1rc829.dist-info}/METADATA +1 -1
- {qontract_reconcile-0.10.1rc828.dist-info → qontract_reconcile-0.10.1rc829.dist-info}/RECORD +7 -7
- reconcile/dynatrace_token_provider/integration.py +8 -0
- reconcile/dynatrace_token_provider/metrics.py +9 -0
- {qontract_reconcile-0.10.1rc828.dist-info → qontract_reconcile-0.10.1rc829.dist-info}/WHEEL +0 -0
- {qontract_reconcile-0.10.1rc828.dist-info → qontract_reconcile-0.10.1rc829.dist-info}/entry_points.txt +0 -0
- {qontract_reconcile-0.10.1rc828.dist-info → qontract_reconcile-0.10.1rc829.dist-info}/top_level.txt +0 -0
{qontract_reconcile-0.10.1rc828.dist-info → qontract_reconcile-0.10.1rc829.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.1rc829
|
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.1rc828.dist-info → qontract_reconcile-0.10.1rc829.dist-info}/RECORD
RENAMED
@@ -178,8 +178,8 @@ reconcile/cna/assets/asset.py,sha256=1v51uYSaD1NOc9cI_YxG7h0NOcR1ng-mkmD2UzQ8PXE
|
|
178
178
|
reconcile/cna/assets/asset_factory.py,sha256=7T7X_J6xIsoGETqBRI45_EyIKEdQcnRPt_GAuVuLQcc,785
|
179
179
|
reconcile/cna/assets/null.py,sha256=Fby1Fbn7oNRIGNasdyhRDvXJ0ktpxv-pUAPN0lZWSzk,1684
|
180
180
|
reconcile/dynatrace_token_provider/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
181
|
-
reconcile/dynatrace_token_provider/integration.py,sha256=
|
182
|
-
reconcile/dynatrace_token_provider/metrics.py,sha256=
|
181
|
+
reconcile/dynatrace_token_provider/integration.py,sha256=NZOwk6t5X8p5fUo2FNsBgGHhAXq4vXsj3GCowiu0UWk,16531
|
182
|
+
reconcile/dynatrace_token_provider/metrics.py,sha256=xiKkl8fTEBQaXJelGCPNTZhHAWdO1M3pCXNr_Tei63c,1285
|
183
183
|
reconcile/external_resources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
184
184
|
reconcile/external_resources/aws.py,sha256=JvjKaABy2Pg8u8Lq82Acv4zMvpE3_qGKes7OG-zlHOM,2956
|
185
185
|
reconcile/external_resources/factories.py,sha256=bLboXX5Dq0xN60mtDGNjCOLC6HlKofXMWQxVbRwMMwo,4485
|
@@ -812,8 +812,8 @@ tools/test/test_app_interface_metrics_exporter.py,sha256=SX7qL3D1SIRKFo95FoQztvf
|
|
812
812
|
tools/test/test_qontract_cli.py,sha256=_D61RFGAN5x44CY1tYbouhlGXXABwYfxKSWSQx3Jrss,4941
|
813
813
|
tools/test/test_sd_app_sre_alert_report.py,sha256=v363r9zM7__0kR5K6mvJoGFcM9BvE33fWAayrqkpojA,2116
|
814
814
|
tools/test/test_sre_checkpoints.py,sha256=SKqPPTl9ua0RFdSSofnoQX-JZE6dFLO3LRhfQzqtfh8,2607
|
815
|
-
qontract_reconcile-0.10.
|
816
|
-
qontract_reconcile-0.10.
|
817
|
-
qontract_reconcile-0.10.
|
818
|
-
qontract_reconcile-0.10.
|
819
|
-
qontract_reconcile-0.10.
|
815
|
+
qontract_reconcile-0.10.1rc829.dist-info/METADATA,sha256=8jspD3vzw80R29pQxWjY5gVkjY9vOssyh89GY6k4TIE,2314
|
816
|
+
qontract_reconcile-0.10.1rc829.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
817
|
+
qontract_reconcile-0.10.1rc829.dist-info/entry_points.txt,sha256=GKQqCl2j2X1BJQ69een6rHcR26PmnxnONLNOQB-nRjY,491
|
818
|
+
qontract_reconcile-0.10.1rc829.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
|
819
|
+
qontract_reconcile-0.10.1rc829.dist-info/RECORD,,
|
@@ -12,6 +12,7 @@ from dynatrace import Dynatrace
|
|
12
12
|
from dynatrace.environment_v2.tokens_api import ApiTokenCreated
|
13
13
|
|
14
14
|
from reconcile.dynatrace_token_provider.metrics import (
|
15
|
+
DTPClustersManagedGauge,
|
15
16
|
DTPOrganizationErrorRate,
|
16
17
|
)
|
17
18
|
from reconcile.gql_definitions.common.ocm_environments import (
|
@@ -93,6 +94,13 @@ class DynatraceTokenProviderIntegration(
|
|
93
94
|
"key", dtp_label_key("%")
|
94
95
|
),
|
95
96
|
)
|
97
|
+
metrics.set_gauge(
|
98
|
+
DTPClustersManagedGauge(
|
99
|
+
integration=self.name,
|
100
|
+
ocm_env=env.name,
|
101
|
+
),
|
102
|
+
len(clusters),
|
103
|
+
)
|
96
104
|
if not clusters:
|
97
105
|
continue
|
98
106
|
if self.params.ocm_organization_ids:
|
@@ -3,6 +3,7 @@ from pydantic import BaseModel
|
|
3
3
|
from reconcile.utils.metrics import (
|
4
4
|
CounterMetric,
|
5
5
|
ErrorRateMetricSet,
|
6
|
+
GaugeMetric,
|
6
7
|
)
|
7
8
|
|
8
9
|
|
@@ -41,3 +42,11 @@ class DTPOrganizationErrorRate(ErrorRateMetricSet):
|
|
41
42
|
org_id=org_id,
|
42
43
|
),
|
43
44
|
)
|
45
|
+
|
46
|
+
|
47
|
+
class DTPClustersManagedGauge(DTPBaseMetric, GaugeMetric):
|
48
|
+
"Gauge for the number of clusters DTP manages"
|
49
|
+
|
50
|
+
@classmethod
|
51
|
+
def name(cls) -> str:
|
52
|
+
return "dtp_clusters_managed"
|
File without changes
|
File without changes
|
{qontract_reconcile-0.10.1rc828.dist-info → qontract_reconcile-0.10.1rc829.dist-info}/top_level.txt
RENAMED
File without changes
|