Grafana 5.0 support
See original GitHub issueSince grafana 5 release, rows have become deprecated: https://github.com/grafana/grafana/blob/master/CHANGELOG.md#new-dashboard-grid So, grafcli crashes:
[/remote/host.example.com]> cd dashboard/
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/climb/core.py", line 56, in run
result = self.execute(*shlex.split(command))
File "/usr/local/lib/python3.5/dist-packages/climb/core.py", line 79, in execute
return self._commands.execute(command, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/climb/commands.py", line 26, in execute
return method(*args, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/grafcli/commands.py", line 40, in cd
self._resources.list(path)
File "/usr/local/lib/python3.5/dist-packages/grafcli/resources/resources.py", line 38, in list
return manager.list(*parts)
File "/usr/local/lib/python3.5/dist-packages/grafcli/resources/common.py", line 13, in list
dashboard = self.get(dashboard_name)
File "/usr/local/lib/python3.5/dist-packages/grafcli/resources/common.py", line 33, in get
dashboard = self._storage.get(dashboard_name)
File "/usr/local/lib/python3.5/dist-packages/grafcli/storage/sql.py", line 68, in get
return Dashboard(source, dashboard_id)
File "/usr/local/lib/python3.5/dist-packages/grafcli/documents.py", line 95, in __init__
self._load(source)
File "/usr/local/lib/python3.5/dist-packages/grafcli/documents.py", line 101, in _load
for row in source['rows']:
KeyError: 'rows'
Any plans to implement 5.0 support?
Issue Analytics
- State:
- Created 6 years ago
- Reactions:16
- Comments:14 (3 by maintainers)
Top Results From Across the Web
Download Grafana | Grafana Labs
Overview of how to download and install different versions of Grafana on different operating systems.
Read more >Grafana v5.0 Released
Better support for large installations with the addition of Dashboard Folders, Teams and Permissions. Improvements to provisioning/cloud-native ...
Read more >Release notes | Grafana documentation
Here you can find detailed release notes that list everything included in past releases, as well as notices about deprecations, breaking changes, and...
Read more >Grafana v5.1 Released
Release Highlights. There are two new features included, Heatmap Support for Prometheus and a new core data source for Microsoft SQL Server.
Read more >Latest Grafana topics - Grafana Labs Community Forums
Topic Replies Views Activity
Card View in dashboard · Dashboards · grafana‑ui 5 33 December 23, 2022
Annotations in Grafana · Dashboards · annotation 0...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m currently working on a new release with support for 5.0/6.0. This will come with some major changes, as Grafana evolved since the first version of grafcli.
I will be dropping support for database backends, using only the REST API. There are no “rows” now (well, row is just a type of a panel) and folders were added, so the CLI commands will look a bit different. I’d also like to add support for managing datasources.
So I’ve started playing with this and due to some decisions in the grafcli design it turned out into kinda hackish solution.
I’ve added basic support for rowless dashboard on a new branch: experimental-v5 This will need some testing.
I’m also thinking about re-designing the core code soon with new API in mind.