Documentation for automated readers
A curated documentation index is available at: https://grafana.com/llms.txt
A complete documentation index is available at: https://grafana.com/llms-full.txt
These indexes can help with page discovery before fetching individual documents.
This page is also available in Markdown, which may be easier for automated readers and AI tools to parse than HTML. The Markdown version is available at https://grafana.com/docs/grafana-cloud/observe-and-act/monitor-infrastructure/kubernetes-monitoring/configuration/helm-chart-config/hc-manual-config.md, or by sending Accept: text/markdown to https://grafana.com/docs/grafana-cloud/observe-and-act/monitor-infrastructure/kubernetes-monitoring/configuration/helm-chart-config/hc-manual-config/. For broader documentation discovery, the curated index is available at https://grafana.com/llms.txt and the complete index is available at https://grafana.com/llms-full.txt.
Configure Kubernetes Monitoring with a manual values file
You can configure Kubernetes Monitoring without the configuration wizard by writing your own Helm values file. Both paths install the same Grafana Kubernetes Monitoring Helm chart. The wizard generates the Helm values for you, while this path gives you full control of the values.yaml file from the start.
Before you begin
To configure Kubernetes Monitoring manually, you need:
- A Grafana Cloud account
- The Admin role to install alerts
- To have completed the activation of the app
- A Kubernetes Cluster, environment, or fleet you want to monitor
- The
kubectland Helm command-line tools - Familiarity with Helm values files and the edit-then-redeploy workflow
- Familiarity with the chart’s collectors, presets, features, and destinations. Refer to Key concepts.
Install the required rules
Kubernetes Monitoring requires recording and alert rules in your Grafana Cloud stack, and these rules install through Grafana Cloud, not through Helm. In Kubernetes Monitoring, go to the Cluster configuration tab of the Configuration page, and click Install under Backend Installation. For details, refer to Backend and distribution.
Build your values file
The chart requires four parts in your values.yaml file. For the full structure, refer to Build your values in the chart repository.
cluster: # Cluster configuration, including the Cluster name
name: <CLUSTER_NAME>
destinations:
myPrometheus:
type: prometheus
url: https://<PROMETHEUS_ENDPOINT>/api/prom/push
myLoki:
type: loki
url: https://<LOKI_ENDPOINT>/loki/api/v1/push
# Features to enable, which determine what data to collect
clusterMetrics:
enabled: true
collector: alloy-metrics # References the collector defined below
clusterEvents:
enabled: true
collector: alloy-singleton # References the collector defined below
# Telemetry collector definitions
collectors:
alloy-metrics:
presets: [clustered, statefulset] # Share scrape targets and deploy as a StatefulSet
alloy-singleton:
presets: [singleton] # Cluster events must run as a single instance- Cluster name: A unique name for the Cluster. This name appears in dashboards, alerts, and Cluster selectors.
- Destinations: Where each type of telemetry is delivered. Refer to Destinations and proxies. To authenticate to Grafana Cloud, use an access policy token, and refer to the authentication examples in the chart repository.
- Features: What data to collect. When you define more than one collector, use each feature’s
collectorfield to specify which collector it uses. Refer to Features for the full list. - Collectors: The Grafana Alloy instances that gather and send your telemetry, and the presets that set their shape. A Cluster events collector requires the
singletonpreset because Cluster events must run as a single instance. Refer to the collector reference.
Install the chart
If you don’t already have the Grafana Helm charts repository, add it:
Bashhelm repo add grafana https://grafana.github.io/helm-chartsIf you already have it, update it:
Bashhelm repo updateInstall the chart with your values file. Make sure your
kubectlcontext points to the Cluster you want to monitor:Bashhelm upgrade --install grafana-k8s-monitoring grafana/k8s-monitoring \ --namespace <NAMESPACE> --create-namespace \ --values values.yaml
To install from the OCI registry instead, refer to the chart usage documentation.
Next steps
- To adjust your configuration, edit your
values.yamlfile and redeploy the chart. Refer to Customize the Kubernetes Monitoring Helm chart. - To manage your collectors remotely from Grafana Cloud, register them with Fleet Management by adding the remote configuration sections to your values file. Refer to Onboard collectors deployed in Kubernetes to Fleet Management.
- To check the health of the data you’re ingesting, refer to the Metrics status tab.
- If issues occur, refer to Troubleshooting.
Was this page helpful?
Related resources from Grafana Labs


