Skip to content
Discussion options

You must be logged in to vote

Thanks for pointing those out @thomasqueirozb

I actually ended up going with prometheus_scrape as cadvisor is baked into k3s (which I'm using)

sources:
  pod_metrics:
      type: prometheus_scrape
      endpoints:
        - https://kubernetes.default.svc/api/v1/nodes/$VECTOR_SELF_NODE_NAME/proxy/metrics/cadvisor
      auth:
        strategy: bearer
        token: "$KUBE_TOKEN"
      tls:
        ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
      scrape_interval_secs: 15

Just had to extend the default service account in the helm chat with

rbac:
  extraRules:
    - apiGroups: [""]
      resources: ["nodes/proxy"]
      verbs: ["get"]

and a bit of command: mangling to get t…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@thomasqueirozb
Comment options

Answer selected by thomasqueirozb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants