Menu
Documentation
Grafana Cloud
Instrument and send data
Grafana Agent
Static mode
Set up static mode
Install static mode
Kubernetes
Grafana Cloud
Deploy Grafana Agent in static mode on Kubernetes
You can use the Helm chart for Grafana Agent to deploy Grafana Agent in static mode on Kubernetes.
Before you begin
- Install Helm on your computer.
- Configure a Kubernetes cluster that you can use for Grafana Agent.
- Configure your local Kubernetes context to point to the cluster.
Deploy
Note
These instructions show you how to install the generic Helm chart for Grafana Agent. You can deploy Grafana Agent in static mode or flow mode. The Helm chart deploys flow mode by default.
To deploy Grafana Agent in static mode on Kubernetes using Helm, run the following commands in a terminal window:
Add the Grafana Helm chart repository:
shellhelm repo add grafana https://grafana.github.io/helm-charts
Update the Grafana Helm chart repository:
shellhelm repo update
Install Grafana Agent in static mode:
shellhelm install <RELEASE_NAME> grafana/grafana-agent --set agent.mode=static
Replace the following:
<RELEASE_NAME>
: The name to use for your Grafana Agent installation, such asgrafana-agent
.
Warning
Always pass--set agent.mode=static
inhelm install
orhelm upgrade
commands to ensure Grafana Agent gets installed in static mode. Alternatively, setagent.mode
tostatic
in your values.yaml file.
For more information on the Grafana Agent Helm chart, refer to the Helm chart documentation on Artifact Hub.
Was this page helpful?
Related resources from Grafana Labs
Additional helpful documentation, links, and articles:
![Getting started with the Grafana LGTM Stack](/static/assets/featured/getting-started-with-grafana-lgtm-stack-amer_featured.png?w=200 200w, /static/assets/featured/getting-started-with-grafana-lgtm-stack-amer_featured.png?w=400 400w)
Getting started with the Grafana LGTM Stack
In this webinar, we’ll demo how to get started using the LGTM Stack: Loki for logs, Grafana for visualization, Tempo for traces, and Mimir for metrics.
![Intro to Kubernetes monitoring in Grafana Cloud](/media/webinar/Screenshot-2024-02-12-at-4.09.30-PM.png?w=200 200w, /media/webinar/Screenshot-2024-02-12-at-4.09.30-PM.png?w=400 400w)
Intro to Kubernetes monitoring in 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.
![Building advanced Grafana dashboards](/media/webinar/AMER_buildadv_notxt.png?w=200 200w, /media/webinar/AMER_buildadv_notxt.png?w=400 400w)
Building advanced Grafana dashboards
In this webinar, we’ll demo how to build and format Grafana dashboards.