Menu
Grafana Cloud
Monitor infrastructure
Kubernetes Monitoring
Configure Kubernetes Monitoring
Configure manually for infrastructure
Send metrics, logs, and events with Helm and Argo CD
Grafana Cloud
Send Kubernetes metrics, logs, and events to Grafana Cloud with Helm and Argo CD
You can use Argo CD to configure Kubernetes Monitoring, and use:
- The Kubernetes Monitoring GUI
- Preconfigured dashboards, alerts, and recording rules
Before you begin
Make sure you have the following available:
- Argo CD installed in your system
- Access to a Kubernetes Cluster
- The Admin role to install preconfigured components such as dashboards
Configuration steps
The steps to configure Kubernetes Monitoring with Terraform are:
- Use a Grafana Cloud Access Policy token.
- Install the preconfigured components.
- Install the Helm chart.
Step 1. Create or gather Grafana Cloud Access Policy token
You can create a new access policy token or look up an existing token. See Grafana Cloud Access Policies for more information.
You’ll use this token in a future step.
Step 2. Install preconfigured dashboards, alerts, and recording rules
To install preconfigured dashboards, alerts, and recording rules, complete the following steps:
- Navigate to your Grafana Cloud account.
- Click the upper-left menu icon to open the main menu.
- Click Observability.
- Click the Kubernetes tile. The Configuration page appears.
- Under the heading Dashboards, alerts, and recording rules, click Install to install the dashboards, alerts, and recording rules.
Step 3. Install the Helm chart using ArgoCD
To install the Kubernetes Monitoring components, complete the following steps.
Copy and paste the following configuration into a terminal:
cat >> grafana-k8s-monitoring.yaml <<'EOF' apiVersion: argoproj.io/v1alpha1 kind: Application metadata: name: grafana-k8s-monitoring namespace: {argocd-namespace} finalizers: - resources-finalizer.argocd.argoproj.io spec: destination: name: '' namespace: {namespace} server: 'https://kubernetes.default.svc' source: path: '' repoURL: 'https://grafana.github.io/helm-charts' targetRevision: '' chart: k8s-monitoring helm: values: |- cluster: name: "<cluster-name>" externalServices: prometheus: host: "{prometheus-url}" basicAuth: username: "{prometheus-username}" password: "{cloud-access-token}" loki: host: "{loki-url}" basicAuth: username: "{loki-username}" password: "{cloud-access-token}" opencost: opencost: exporter: defaultClusterId: "<cluster-name>" prometheus: external: url: "{prometheus-url}/api/prom" sources: [] project: default syncPolicy: automated: prune: true selfHeal: true retry: limit: 2 backoff: duration: 5s maxDuration: 3m0s factor: 2 syncOptions: - CreateNamespace=true EOF
Replace the following in the code:
{argocd-namespace}
with your namespace in which Argo CD is deployed{namespace}
with the namespace where you want to deploy Kubernetes Monitoring resources{cluster-name}
with the name of your cluster{prometheus-url}
with the URL of your Prometheus instance{prometheus-username}
with the username of your Prometheus instance{loki-url}
with the URL of your Loki instance{loki-username}
with the username of your Loki instance{cloud-access-token}
with your Grafana Cloud Access token
Run the following command:
shellkubectl apply -f grafana-k8s-monitoring.yaml
Next steps
Explore your Kubernetes infrastructure to view the monitoring data.
Related resources from Grafana Labs
Additional helpful documentation, links, and articles:

Getting started with your metrics, logs, and traces in Grafana Cloud
Learn to use the best open source observability software (Grafana, Prometheus, Loki, and Tempo) without the overhead of managing and scaling your own stack.

Kubernetes monitoring, out-of-the-box with Grafana Cloud
In this webinar you’ll learn how Grafana offers developers and SREs a simple and quick-to-value solution for monitoring their Kubernetes infrastructure.

Unify your data with Grafana plugins: Datadog, Splunk, MongoDB, and more
In this webinar, learn how to leverage Grafana's plugin ecosystem for access to 80+ data sources, including plugins for Datadog, Splunk, MongoDB, and more.