79376100

Date: 2025-01-21 22:36:30
Score: 4.5
Natty:
Report link

I have the same issue. Do you see anything if you run kubectl get --raw /api/v1/nodes/minikube/proxy/metrics/cadvisor ?

I'm running minikube v1.34.0 and my metrics are use the above path.

If you've deployed using the k8s-monitoring helm chart, you can see a section in the alloy configmap:

    discovery.relabel "cadvisor" {
      targets = discovery.kubernetes.nodes.targets
      rule {
        replacement   = "/metrics/cadvisor"
        target_label  = "__metrics_path__"
      }
    }

which is pointing alloy at the incorrect path, kubectl get --raw metrics/cadvisor doesn't return anything.

I'm not sure if there is a way to modify this via the values file... I'm thinking of running a standalone alloy just to scrape cadvisor.

Reasons:
  • Blacklisted phrase (1): I have the same issue
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): I have the same issue
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: thopewell