How to find out unused datasources?

Hi again,

grafana-wtf version 0.12.0 has just been released. The program is now also available as a container image, which might make its installation more effortless, see also How to run grafana-wtf from container image.

Please note that regarding your feature request How to find unused data sources?, the corresponding subcommand has been renamed to explore datasources.

Example

# Display all data sources and the dashboards using them, as well as unused data sources.
grafana-wtf explore datasources --format=yaml

# Display names of unused datasources as a flat list.
grafana-wtf explore datasources --format=json | jq -r '.unused[].datasource.name'

New features

Other than this, two other subcommands have been added, namely info and explore dashboards. I will be happy receive any feedback or requests about improvements to them.

With kind regards,
Andreas.

3 Likes