grafcli
grafcli copied to clipboard
problem export with grafan 8.51 ?
Hi, i'm trying to get it to work to backup grafana 8.5.1 config on a raspberry-pi with "buster" distribution. I did the config as follows:
[grafcli]
editor = vim
mergetool = vimdiff
history = ~/.grafcli_history
verbose = on
force = on
colorize = on
[resources]
data-dir = ~/.grafcli
[hosts]
localhost = on
[localhost]
type = api
url = http://openplotter.local:3001/api
#user = admin
#password = admin
token = #snip#
To run the thing:
./.local/bin/grafcli backup remote/localhost grafana-backup.tgz
I have the error
"There is no such dashboard: tableau-principal"
So it is able to use the API! Yeah ! It can read the only dashboard I have. But then it fails. Anything incorrect in my config ?
with my little investigation, with 8.5 and 8.4, it seems that the grafana api must be accessed by uid. like in /api/dashboards/uid/sj3jd4. see https://grafana.com/docs/grafana/latest/http_api/dashboard/ and the "slug" seems deprecated if of any help !