Open
Description
I am using Grafana OSS 12.0.1. I created a service account with Admin role. I also generated the service token.
I exported the following variables:
export GRAFANA_URL=https://grafana.company.com/
export GRAFANA_TOKEN=glsa_k3VXa9m...UOQO6xi...d18
When I try running the command, it's throwing error:
$ grafana-wtf find weatherbase
2025-05-29 16:05:58,183 [grafana_wtf.commands ] INFO : Grafana location: https://grafana.company.com/
2025-05-29 16:05:58,190 [grafana_wtf.core ] INFO : Response cache will expire after 3600 seconds
2025-05-29 16:05:58,192 [grafana_wtf.core ] INFO : Response cache database: /home/tom/.cache/grafana-wtf.sqlite
2025-05-29 16:05:58,201 [grafana_wtf.commands ] INFO : Grafana version: 12.0.1
2025-05-29 16:05:58,201 [grafana_wtf.core ] INFO : Scanning dashboards
2025-05-29 16:05:58,203 [grafana_wtf.core ] INFO : Found 95 dashboard(s)
0it [00:00, ?it/s]
2025-05-29 16:05:58,206 [grafana_wtf.core ] INFO : Fetching dashboards one by one | 0/95 [00:00<?, ?it/s]
Traceback (most recent call last):
File "/home/tom/.local/bin/grafana-wtf", line 8, in <module>
sys.exit(run())
~~~^^
File "/home/tom/.local/lib/python3.13/site-packages/grafana_wtf/commands.py", line 255, in run
engine.scan_common()
~~~~~~~~~~~~~~~~~~^^
File "/home/tom/.local/lib/python3.13/site-packages/grafana_wtf/core.py", line 141, in scan_common
self.scan_dashboards()
~~~~~~~~~~~~~~~~~~~~^^
File "/home/tom/.local/lib/python3.13/site-packages/grafana_wtf/core.py", line 227, in scan_dashboards
self.fetch_dashboards()
~~~~~~~~~~~~~~~~~~~~~^^
File "/home/tom/.local/lib/python3.13/site-packages/grafana_wtf/core.py", line 263, in fetch_dashboards
self.fetch_dashboard(dashboard_info)
~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
File "/home/tom/.local/lib/python3.13/site-packages/grafana_wtf/core.py", line 254, in fetch_dashboard
dashboard = self.grafana.dashboard.get_dashboard(dashboard_info["uid"])
File "/home/tom/.local/lib/python3.13/site-packages/grafana_client/elements/dashboard.py", line 23, in get_dashboard
return self.client.GET(get_dashboard_path)
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
File "/home/tom/.local/lib/python3.13/site-packages/grafana_client/client.py", line 217, in __request_runner
return self._extract_from_response(r, accept_empty_json)
~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
File "/home/tom/.local/lib/python3.13/site-packages/grafana_client/client.py", line 170, in _extract_from_response
raise GrafanaClientError(
...<3 lines>...
)
grafana_client.client.GrafanaClientError: Client Error 404: Dashboard not found
0%| | 0/95 [00:01<?, ?it/s]