SIENTIAPDE-1712
Update environment variables in values.yaml and enhance metric labels in metrics.py - Changed POSTGRES_USER and POSTGRES_PASSWORD values in values.yaml for improved security. - Added 'runtime' label to metrics in metrics.py for better environment identification. - Updated CORE_LABELS to include 'runtime' for consistency across metrics. - Modified type hint for data parameter in PredictionProcess to use a dictionary for better clarity. - Adjusted tests to reflect changes in core labels and MinIO configuration.
This commit is contained in:
@@ -18,6 +18,7 @@ Key Metric Categories:
|
||||
|
||||
Metric Labels:
|
||||
- pod_id: Kubernetes pod identifier for multi-instance deployments
|
||||
- runtime: Runtime / environment identifier (matches ``RUNTIME`` env, see ``SientiaMonitoring``)
|
||||
- model_name: Name of the ML model being used
|
||||
- workflow_name: Name of the prediction pipeline
|
||||
- opc_server_id: Identifier for OPC server operations
|
||||
@@ -35,8 +36,8 @@ APP_UP = Gauge(
|
||||
['pod_id'],
|
||||
)
|
||||
|
||||
# Core labels used across multiple metrics
|
||||
CORE_LABELS = ['pod_id', 'model_name', 'workflow_name']
|
||||
# Core labels used across multiple laborious metrics (aligned with ``SientiaMonitoring.labels`` subset)
|
||||
CORE_LABELS = ['pod_id', 'runtime', 'model_name', 'workflow_name']
|
||||
|
||||
# Prediction operation metrics
|
||||
PREDICTIONS_WRITTEN_COUNT = Counter(
|
||||
|
||||
@@ -244,7 +244,7 @@ class PredictionProcess:
|
||||
|
||||
async def path_flag_handler(
|
||||
self,
|
||||
data: MinioDataFramePayload,
|
||||
data: dict[str, Any],
|
||||
path_flag: str,
|
||||
input_data: dict,
|
||||
confidence: int,
|
||||
|
||||
Reference in New Issue
Block a user