Change-Id: I633edb9975747f0c9c4009eaf8fa3ebf0f36452d
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
if vnfr and vnfd:
# TODO: Change for multiple DF support
df = vnfd.get("df", [{}])[0]
if vnfr and vnfd:
# TODO: Change for multiple DF support
df = vnfd.get("df", [{}])[0]
if "exporters-endpoints" in df:
metric_port = df["exporters-endpoints"].get("metric-port", 9100)
if metric_name.startswith("kpi_"):
if "exporters-endpoints" in df:
metric_port = df["exporters-endpoints"].get("metric-port", 9100)
if metric_name.startswith("kpi_"):