Grafana agent scrape config

If it’s not that, and you’ve rolled out the agent as a DaemonSet so there is an agent on the node running kube-state-metrics (in this case host filtering doesn’t matter), here are some things you can do to debug:

Other potential sources for this issue:

  • K8s RBAC (I think unlikely given other stuff is working fine)
  • K8s DNS (i think also unlikely)
  • If you have any filtering rules in your config after targets, the metrics could be getting dropped there. Hard to tell without sharing more of your config.

Hope this helps you get started resolving your issue. Please post your solution here so others can learn how you fixed this!