Update multivim_vm_metrics.py to append osm to metric_name to be BWC 35/13335/1
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Thu, 4 May 2023 12:13:14 +0000 (14:13 +0200)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Thu, 4 May 2023 12:13:14 +0000 (14:13 +0200)
Change-Id: If250202fe60451ba2f20bed94ff5c7ef6c6b50a1
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
src/osm_ngsa/dags/multivim_vm_metrics.py

index 6f03292..72ceca4 100644 (file)
@@ -34,43 +34,43 @@ PROMETHEUS_PUSHGW = "pushgateway-prometheus-pushgateway:9091"
 PROMETHEUS_JOB_PREFIX = "airflow_osm_vm_metrics_"
 PROMETHEUS_METRICS = {
     "cpu_utilization": {
-        "metric_name": "cpu_utilization",
+        "metric_name": "osm_cpu_utilization",
         "metric_descr": "CPU usage percentage",
     },
     "average_memory_utilization": {
-        "metric_name": "average_memory_utilization",
+        "metric_name": "osm_average_memory_utilization",
         "metric_descr": "Volume of RAM in MB used by the VM",
     },
     "disk_read_ops": {
-        "metric_name": "disk_read_ops",
+        "metric_name": "osm_disk_read_ops",
         "metric_descr": "Number of read requests",
     },
     "disk_write_ops": {
-        "metric_name": "disk_write_ops",
+        "metric_name": "osm_disk_write_ops",
         "metric_descr": "Number of write requests",
     },
     "disk_read_bytes": {
-        "metric_name": "disk_read_bytes",
+        "metric_name": "osm_disk_read_bytes",
         "metric_descr": "Volume of reads in bytes",
     },
     "disk_write_bytes": {
-        "metric_name": "disk_write_bytes",
+        "metric_name": "osm_disk_write_bytes",
         "metric_descr": "Volume of writes in bytes",
     },
     "packets_received": {
-        "metric_name": "packets_received",
+        "metric_name": "osm_packets_received",
         "metric_descr": "Number of incoming packets",
     },
     "packets_sent": {
-        "metric_name": "packets_sent",
+        "metric_name": "osm_packets_sent",
         "metric_descr": "Number of outgoing packets",
     },
     "packets_in_dropped": {
-        "metric_name": "packets_in_dropped",
+        "metric_name": "osm_packets_in_dropped",
         "metric_descr": "Number of incoming dropped packets",
     },
     "packets_out_dropped": {
-        "metric_name": "packets_out_dropped",
+        "metric_name": "osm_packets_out_dropped",
         "metric_descr": "Number of outgoing dropped packets",
     },
 }