Griesbacher / histou

Adds templates to Grafana in combination with nagflux
GNU General Public License v2.0
35 stars 16 forks source link

Simple template from Grafana 6 not working (no "rows" array in this schema) #32

Open gallogabor opened 5 years ago

gallogabor commented 5 years ago

Current Grafana schema didn't contain a "rows" array, instead it have only a high level "panels" array, and panel objects have a "row" attribute. So if I design a dashboard in Grafana and copy/paste the JSON, then histou didn't replace host and service names, because no "rows" array in simple template.

If I manually put my previously exported panel inside a "rows": [ {"panel": {...} } ] structure, then it works.

Maybe histou can be altered to work without a rows array, and check panels/tags in panels array (instead).