This is documentation for the next version of Grafana documentation. For the latest stable release, go to the latest version.
Grafana Operator
The Grafana Operator is a Kubernetes operator built to help you manage your Grafana instances and its resources in a Kubernetes environment. The Grafana Operator automatically syncs Kubernetes custom resources and actual resources in your Grafana instance, and allows you to install and manage local Grafana instances, dashboards and data sources in Kubernetes or OpenShift.
While the Grafana Operator simplifies many aspects of operating Grafana and its resources on Kubernetes, its current support is mainly focused on managing dashboards, folders, and data sources. Advanced features like alerting and plugins (only works for OSS) are not supported yet.
Install the Grafana Operator
To install the Grafana Operator in your Kubernetes cluster, run the following command in your terminal:
helm repo add grafana https://grafana.github.io/helm-charts
helm upgrade -i grafana-operator grafana/grafana-operatorFor other installation methods, refer to the Grafana Operator Installation documentation.
Use the Grafana Operator
Use the following guides to use the Grafana Operator to manage your Grafana instance:
- Manage data sources, and dashboards with folders using the Grafana Operator describes how to add a folders, data sources, and dashboards using the Grafana Operator.
- Manage Dashboards with GitOps Using ArgoCD describes how to create and manage dashboards using ArgoCD and Grafana Operator.
Use the Grafana Crossplane provider
Note
The Grafana Crossplane provider is intended for existing Crossplane users looking to manage Grafana resources from within Kubernetes and as Kubernetes manifests for the GitOps pipelines. To use the Crossplane provider, you must have the Crossplane CLI and Crossplane installed in the Kubernetes cluster. Note that the Crossplane provider is in an alpha stage, so it has not reached a stable state yet.
The Grafana Crossplane provider is built using Terrajet and provides support for all resources supported by the Grafana Terraform provider. It enables you to define Grafana resources as Kubernetes manifests and it also help users who build their GitOps pipelines around Kubernetes manifests using tools like ArgoCD.
To get started with the Grafana Crossplane provider, install Crossplane in the Kubernetes cluster and use this command to install the provider:
kubectl crossplane install provider grafana/crossplane-provider-grafana:v0.1.0During installation of the provider, CRDs for all the resources supported by the Terraform provider are added to the cluster so users can begin defining their Grafana resources as Kubernetes custom resources. The Crossplane provider ensures that whatever is defined in the custom resource definitions is what is visible in Grafana UI. If you make any changes directly in the UI, the changes will be discarded when the provider syncs again. This helps ensure that whatever is defined via code in the cluster will be the source of truth for Grafana resources.
For more information, refer to the examples folder in the Grafana Crossplane repository.


