hamara icon indicating copy to clipboard operation
hamara copied to clipboard

Failed to parse JSON data

Open C-Loftus opened this issue 8 months ago • 0 comments
trafficstars

Thank you for creating this tool; I tried to use it to export grafana datasource data but I think it is no longer working. Perhaps the schema has changed in grafana?

go install github.com/trivago/hamara@latest

 hamara export --host=localhost:3000 --key=$MY_TOKEN > datasources.yaml; cat datasources.yaml
Failed to parse JSON data from http://localhost:3000/api/datasources

This is the grafana version in the healthcheck

{
  "database": "ok",
  "version": "11.5.2",
  "commit": "598e0338d5374d6bc404b02a58094132c5eeceb8"
}

It seems Grafana also wants users to make service accounts and associate a token with the service account. I am using token auth

C-Loftus avatar Mar 04 '25 16:03 C-Loftus