Verified Commit 79a74e37 authored by Andrey Vertiprahov's avatar Andrey Vertiprahov
Browse files

Fix path on metrics

parent 72304f4c
Pipeline #36124 passed with stages
in 15 minutes and 13 seconds
......@@ -402,7 +402,6 @@ class Script(GetMetricsScript):
for r in results:
if results[r] is None:
continue
<<<<<<< HEAD
m = oids[r]
self.set_metric(
id=m.id,
......@@ -415,31 +414,6 @@ class Script(GetMetricsScript):
scale=scale if m.metric in SCALE_METRICS else 1,
)
#
=======
if sla_rtt_sum:
self.set_metric(
id=setup_metrics[("", str(sla_probe_index))],
metric="SLA | Jitter | Rtt",
path=("", sla_probe_index),
value=float(sla_rtt_sum) * 1000.0,
multi=True,
)
if sla_egress:
self.set_metric(
id=setup_metrics[("", str(sla_probe_index))],
metric="SLA | Jitter | Egress",
path=("", sla_probe_index),
value=float(sla_egress) * 1000.0,
multi=True,
)
if sla_ingress:
self.set_metric(
id=setup_metrics[("", str(sla_probe_index))],
metric="SLA | Jitter | Ingress",
path=("", sla_probe_index),
value=float(sla_ingress) * 1000.0,
multi=True,
)
@metrics(["Telephony | Active DS0s"], volatile=False, access="S")
def get_active_ds0s(self, metrics):
......@@ -453,10 +427,8 @@ class Script(GetMetricsScript):
oid2 = oid.split(ds0_oid + ".")
(slot, port) = oid2[1].split(".")
self.set_metric(
id=("Telephony | Active DS0s", None), path=(slot, port), value=int(v), multi=True
id=("Telephony | Active DS0s", None),
labels=[f"noc::slot::{slot}", f"noc::interface::{port}"],
value=int(v),
multi=True,
)
<<<<<<< HEAD
>>>>>>> dbf3324fda (Add telephony metrics)
=======
>>>>>>> 5d6c32c9b4 (fix format)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment