Automating Token Refresh for Grafana API Calls

In Grafana, I need to generate a new token each day using Postman for my dashboard to make the API calls to retrieve data. I add this as a key-value pair in the HTTP Headers section of Grafana. Is there a better way to do this? For instance, a way for the token to auto-refresh each day, or do I need to do something else so it doesn’t need to be refreshed at all?

Use basic auth/service account token:

1 Like