ysde / grafana-backup-tool

A Python-based application to backup Grafana settings by using the Grafana API
MIT License
877 stars 277 forks source link

Grafana is deprecating the use of API keys How to use this tool with the new authentication method #271

Open Harsh-Maheshwari opened 6 months ago

Harsh-Maheshwari commented 6 months ago

https://grafana.com/docs/grafana/latest/administration/api-keys/#:~:text=NOTE,interact%20with%20Grafana.

Grafana is deprecating the use of API keys How to use this tool with the new authentication method

alessio-locatelli commented 3 months ago

The steps should be equivalent:

  1. Create a service account in Grafana
  2. Add a token to a service account in Grafana
  3. GRAFANA_URL=<host:port> GRAFANA_TOKEN=<your_service_account_token> grafana-backup save

Perhaps the README can be updated a bit, but most likely the tool will work the same.