Deploy Grafana Agent in static mode on Kubernetes
You can deploy Grafana Agent in static mode on Kubernetes.
To deploy Grafana Agent in static mode on Kubernetes, perform the following steps.
Download one of the following manifests from GitHub and save it as
Edit the downloaded
manifest.yamland replace the placeholders with information relevant to your Kubernetes deployment.
Apply the modified manifest file:shell
kubectl -n default apply -f manifest.yaml
Note: The manifests do not include the
ConfigMapswhich 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.