Update Prometheus recording rules for NG-SA 57/12757/1 v13.0.0rc1
authoraguilard <e.dah.tid@telefonica.com>
Wed, 30 Nov 2022 12:00:32 +0000 (13:00 +0100)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Wed, 30 Nov 2022 13:37:26 +0000 (14:37 +0100)
Change-Id: I6fd6dad662822490eecdd89006064be429b36db0
Signed-off-by: aguilard <e.dah.tid@telefonica.com>
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
installers/docker/osm_pods/ng-prometheus.yaml

index 98dd1e8..0172aaf 100644 (file)
@@ -36,7 +36,7 @@ data:
       - name: osm_rules
         rules:
         - record: vm_status_extended
-          expr: (last_over_time(vm_status[1m]) * on (vm_id, vim_id) group_left(ns_id, vnf_id, vdu_id, project_id, job) last_over_time(ns_topology[1m])) or (last_over_time(ns_topology[1m]) * -1)
+          expr: (last_over_time(vm_status[1m]) * on (vm_id, vim_id) group_left(ns_id, vnf_id, vdu_id, project_id, job, vdu_name, vnf_member_index) last_over_time(ns_topology[1m])) or (last_over_time(ns_topology[1m]) * -1)
           labels:
             job: osm_prometheus
         - record: vnf_status