SIENTIAPDE-1174
Update requirements and environment configurations - Changed the sientia-dataops-library dependency to a relative path in requirements.txt. - Updated image tag to 0.3.0 in values.yaml. - Renamed HTTP_SERVER_PORT to HTTP_METRICS_PORT in app.py and updated its default value to 9090. - Added TAG_WRITTEN_COUNT metric in metrics.py to track writing processes. - Incremented TAG_WRITTEN_COUNT in DataManager upon successful data insertion.
This commit is contained in:
@@ -189,6 +189,12 @@ class DataManager(BaseActivity):
|
||||
self.logger.debug(
|
||||
f"Message inserted into MongoDB collection {topic}: {data}")
|
||||
|
||||
metrics.TAG_WRITTEN_COUNT.labels(
|
||||
pod_id=self.pod_id,
|
||||
tag_name=data["name"],
|
||||
collection_name=topic
|
||||
).inc()
|
||||
|
||||
except Exception as e:
|
||||
trace = traceback.format_exc()
|
||||
self.send_notification(
|
||||
|
||||
Reference in New Issue
Block a user