question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Grafana 5.0 support

See original GitHub issue

Since 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:open
  • Created 6 years ago
  • Reactions:16
  • Comments:14 (3 by maintainers)

github_iconTop GitHub Comments

7reactions
m110commented, Mar 20, 2019

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.

3reactions
m110commented, Apr 19, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found