Files
grafana/docs/sources/as-code/observability-as-code/_index.md
Anna Urbiztondo 2dfcaf9be8 Docs: Consolidate OaC intros (#113895)
* Consolidate

* Edits

* Remove Get started

* Prettier

* Edit

* Removing Grizzly

* Prettier
2025-11-17 15:10:31 +01:00

5.3 KiB

description, keywords, labels, title, weight, cards, hero, canonical, aliases, refs
description keywords labels title weight cards hero canonical aliases refs
Overview of Observability as code including description, key features, and explanation of benefits.
observability
configuration
as code
dashboards
git integration
git sync
github
products
enterprise
oss
cloud
Observability as code 100
items title_class
title height href description
Grafana CLI 24 ./grafana-cli/ Grafana CLI (`grafanactl`) is a command-line tool designed to simplify interaction with Grafana instances using the new REST APIs. You can authenticate, manage multiple environments, and perform administrative tasks from the terminal. It's suitable for CI/CD pipelines, local development, or free-form tasks.
title height href description
Foundation SDK 24 ./foundation-sdk/ The Grafana Foundation SDK is a set of tools, types, and libraries that let you define Grafana dashboards and resources using familiar programming languages like Go, TypeScript, Python, Java, and PHP. Use it in conjunction with `grafanactl` to push your programmatically generated resources.
title height href description
JSON schema v2 24 ./schema-v2/ Grafana dashboards are represented as JSON objects that store metadata, panels, variables, and settings. Observability as Code works with all versions of the JSON model, and it's fully compatible with version 2.
title height href description
Git Sync (private preview) 24 ./provision-resources/intro-git-sync/ Git Sync lets you store your dashboard files in a GitHub repository and synchronize those changes with your Grafana instance, enabling version control, branching, and pull requests directly from Grafana.
title height href description
File provisioning (private preview) 24 ./provision-resources/ File provisioning in Grafana lets you include resources, including folders and dashboard JSON files, that are stored in a local file system.
pt-0 lh-1
title description height level width
Observability as Code Using Observability as Code, you can version, automate, and scale Grafana configurations, including dashboards and observability workflows. 110 1 110
https://grafana.com/docs/grafana/latest/as-code/observability-as-code/
../observability-as-code/
../observability-as-code/get-started/
infra-as-code
pattern destination
/docs/grafana/ /docs/grafana/<GRAFANA_VERSION>/as-code/infrastructure-as-code/
pattern destination
/docs/grafana-cloud/ /docs/grafana-cloud/as-code/infrastructure-as-code/

{{< docs/hero-simple key="hero" >}}


Overview

Grafana provides a suite of tools for Observability as code to help you manage your Grafana resources programmatically and at scale. This approach lets you define dashboards, data sources, and other configurations in code, enabling version control, automated testing, and reliable deployments through CI/CD pipelines. You can apply code management best practices to your observability resources, and integrate them into existing infrastructure-as-code workflows.

Historically, managing Grafana as code involved various community and Grafana Labs tools, but lacked a single, cohesive story. Grafana 12 introduces foundational improvements, including new versioned APIs and official tooling, to provide a clearer path forward:

  • This approach requires handling HTTP requests and responses but provides complete control over resource management.
  • grafanactl, Git Sync, and the Foundation SDK are all built on top of these APIs.
  • To understand Dashboard Schemas accepted by the APIs, refer to the JSON models documentation.

Explore

{{< card-grid key="cards" type="simple" >}}

Additional Observability as code tools

If you're already using established Infrastructure as code or other configuration management tools, Grafana offers integrations to manage resources within your existing workflows.

  • Terraform
    • Use the Grafana Terraform provider to manage dashboards, alerts, and more.
    • Understand how to define and deploy resources using HCL/JSON configurations.
  • Ansible
    • Learn to use the Grafana Ansible collection to manage Grafana Cloud resources, including folders and cloud stacks.
    • Write playbooks to automate resource provisioning through the Grafana API.
  • Grafana Operator
    • Utilize Kubernetes-native management with the Grafana Operator.
    • Manage dashboards, folders, and data sources via Kubernetes Custom Resources.
    • Integrate with GitOps workflows for seamless version control and deployment.
  • Crossplane lets you manage Grafana resources using Kubernetes manifests with the Grafana Crossplane provider.
  • Grafonnet is a Jsonnet library for generating Grafana dashboard JSON definitions programmatically.