sni / grafana-pnp-datasource

PNP4Nagios/RRD Datasource for Grafana
MIT License
28 stars 12 forks source link

Feature Request: Ability to use regex or wildcards on "Label" option #38

Closed infraweavers closed 2 years ago

infraweavers commented 2 years ago

Hiya,

We have quite a few graphs where we have many labels against a given service (table size within a database for example). pnp4nagios graphs all these on 1 graph (albeit with colour-issues etc), however there are situations where we'd like to be able to plot them on the same grafana graph without having to duplicate the row for each one.

A simple example we have here is Check Disk: image

Happy to submit a PR if you can point me in the general direction of where that would live as I couldn't really find it

sni commented 2 years ago

Have you tried using regex? Something like /.*/ or /.*free/

infraweavers commented 2 years ago

Yep, I did try that; it now works like a charm so I have no idea what I did wrong before. PICNIC.