Menu

Caution

Grafana Alloy is the new name for our distribution of the OTel collector. Grafana Agent has been deprecated and is in Long-Term Support (LTS) through October 31, 2025. Grafana Agent will reach an End-of-Life (EOL) on November 1, 2025. Read more about why we recommend migrating to Grafana Alloy.

Important: This documentation is about an older version. It's relevant only to the release noted, many of the features and functions have been updated or replaced. Please view the current version.

Open source

Deploy Grafana Agent in static mode on Kubernetes

You can deploy Grafana Agent in static mode on Kubernetes.

Deploy

To deploy Grafana Agent in static mode on Kubernetes, perform the following steps.

  1. Download one of the following manifests from GitHub and save it as manifest.yaml:

  2. Edit the downloaded manifest.yaml and replace the placeholders with information relevant to your Kubernetes deployment.

  3. Apply the modified manifest file:

    shell
    kubectl -n default apply -f manifest.yaml

Note

The manifests do not include the ConfigMaps which are necessary to run Grafana Agent.

For sample configuration files and detailed instructions, refer to Configure Kubernetes Monitoring in the Grafana Cloud documentation.

Rebuild the Kubernetes manifests

The manifests provided are created using Grafana Labs’ production Tanka configs with some default values. If you want to build the YAML file with some custom values, you must install the following applications:

Refer to the template Tanka environment for the current settings that initialize the Grafana Agent Tanka configurations.

To build the YAML files, run the /build/build.sh script, or run make example-kubernetes from the project’s root directory.