-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Labels
bugSomething isn't workingSomething isn't working
Description
If dashboard type is dash-folder
the /api/dashboards/:uid endpoint returns 404, and grafana-wtf stops with error
[omitted traceback]
grafana_client.client.GrafanaClientError: Client Error 404: Dashboard not found
As a workaround locally I've made this change in grafana_wtf/core.py
, though I'm not sure if this is the correct way to fix this
def fetch_dashboards(self):
log.info("Fetching dashboards one by one")
results = self.data.dashboard_list
for dashboard_info in results:
+ if dashboard_info.get("type") == "dash-folder":
+ continue
self.fetch_dashboard(dashboard_info)
I can raise a PR If you think this is ok
rafaelrenanpacheco
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working