we’ve installed the default k8s configs agent.yaml and agent-loki.yaml from agent/production/kubernetes at main · grafana/agent · GitHub into a small k8s cluster (3 nodes, about 20 pods). Everything works well, except that we’re exceeding the free tier usage limits, currently being at 13.4k metrics.
Yes, that config does scrape a lot by default. For a more lightweight config, you can try the one provisioned for you as part of the Kubernetes integration. Click on the lightning bolt from your hosted Grafana instance, then Kubernetes. It’ll give you an install script and ConfigMap for the Grafana Agent that only scrapes the cadvisor and kubelet endpoints on your Nodes, which will lower your usage. You’ll also get a handy set of dashboards at the same time!