Skip to content

Grafana 5.0 support #24

@tunasalat

Description

@tunasalat

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?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions