SIENTIAPDE-1325

Update metric labels from 'pipeline_name' to 'workflow_name' in metrics and related classes, ensuring consistency across the codebase and tests.
This commit is contained in:
vitor-aignosi
2025-11-04 08:49:38 -03:00
parent 4351289111
commit 32882d0b6f
4 changed files with 8 additions and 8 deletions

View File

@@ -304,7 +304,7 @@ class Gates(SientiaMonitoring):
metrics.LABORIOUS_DATA_WRITTEN_COUNT.labels(
pod_id=self.pod_id,
model_name=metadata['model_name'],
pipeline_name=metadata['workflow_name'],
workflow_name=metadata['workflow_name'],
).inc()
# Register metrics
@@ -312,7 +312,7 @@ class Gates(SientiaMonitoring):
metrics.TAG_CHANGES_MONITOR.labels(
pod_id=self.pod_id,
model_name=metadata['model_name'],
pipeline_name=metadata['workflow_name'],
workflow_name=metadata['workflow_name'],
tag_name=row['variable'],
).set(row['value'])

View File

@@ -8,7 +8,7 @@ APP_UP = Gauge(
)
# Core labels for consistent metric labeling
CORE_LABELS = ['pod_id', 'model_name', 'pipeline_name']
CORE_LABELS = ['pod_id', 'model_name', 'workflow_name']
# Data processing metrics
LABORIOUS_DATA_WRITTEN_COUNT = Counter(