grafana-toolbox / grafana-wtf

Grep through all Grafana entities in the spirit of git-wtf.
GNU Affero General Public License v3.0
143 stars 13 forks source link

Fix `collect_datasource_items` when hitting special templated datasource #63

Closed amotl closed 1 year ago

amotl commented 1 year ago

Dear @mauhiz,

this patch may fix the issue you reported at GH-62. The machinery croaked on "value": ["$__all"] when finding a templated datasource within a dashboard representation. Because $__all will not resolve to a specific data source, this item will get skipped now, but a warning will be emitted.

Thank you very much for your valuable hints about the origin of the problem.

With kind regards, Andreas.