Back to Grafana

Grafana Ansible collection

docs/sources/as-code/infrastructure-as-code/ansible/_index.md

13.0.11.8 KB
Original Source

Grafana Ansible collection

The Grafana Ansible collection provides configuration management resources for Grafana. You can use it to manage:

  • Grafana Cloud stacks
  • Dashboards
  • Data sources
  • Folders
  • Alerting contact points
  • Notification policies
  • API keys

If your resources aren't currently available in the Grafana Ansible collection, you can manage them on Grafana Cloud programmatically by writing Ansible playbooks that use the Ansible's built-in URI module to call the HTTP APIs to manage resources for the Grafana Cloud portal, as well as those within a stack.

Learn more

Refer to Create and manage a Grafana Cloud stack using Ansible to learn how to create a Grafana Cloud stack and add a data source and dashboard using Ansible.

To learn more about managing Grafana with Infrastructure as code:

Grafana Agent (deprecated)

{{< docs/shared lookup="agent-deprecation.md" source="alloy" version="next" >}}

The Ansible collection also houses Grafana Agent role, which is now deprecated.