Easily export Home Assistant stats to Grafana Cloud.
This addon makes it easy to export Home Assistant metrics and logs to Grafana Cloud
It will gather stats from your Home Assistant install using Grafana Alloy and export them to Grafana Cloud where you can build beautiful custom dashboards.
This addon requires the Prometheus integration be enabled so that Home Assistant will expose stats.
To start a minimal configuration, just add the following line to your configuration.yaml
file and restart Home Assistant.
prometheus:
If you would like to define the specific stats you would like to expose, you can follow the instructions in the Prometheus integration docs.
To configure the Grafana Cloud addon, first create a Grafana Cloud account and set up your stack.
Copy the stack name, and paste it into the stack name field in the addon configuration.
Next you need to create a new Access Policy:
- Display Name: Home Assistant
- Name: home-assistant
- Realms:
- Scopes:
- Metrics: write
- Logs: write
- Stacks: read
Finally, add a token to the policy.
Copy the token, and paste it into the token field in the addon configuration.
After saving the configuration, start the addon and it will begin exporting logs and metrics to Grafana Cloud.