RavuAlHemio / prometheus_aci_exporter

Cisco ACI exporter for Prometheus
Apache License 2.0
17 stars 13 forks source link

port descriptions added as labels #9

Open Trenthani opened 4 years ago

Trenthani commented 4 years ago

Feature request if it doesn't already exist.

Can the port descriptions be pulled and added to labels? I haven't been able to see this data in the current metric labels.

RavuAlHemio commented 4 years ago

I have implemented a feature that allows metrics to always have a constant value. Such a metric with constant value 1 can be used in conjunction with a query like

aci_interface_rx_unicast_bytes * ignoring(className, queryName) group_left(descr) aci_interface_descr_label

to enrich an interface-statistics query with the interface's description.

Trenthani commented 4 years ago

Awesome, thanks for adding that in so quickly @RavuAlHemio! I haven't had a chance to test this out but this will be useful.