giantswarm/prometheus

cadvisor scrape for prometheus

RahulMahale opened this issue · 3 comments

Can I create a PR for kubernetes-cadvisor scrape ?

@gaya3chandran1 I came across this CAdvisor scrape.

        - job_name: 'kubernetes-cadvisor'

          scheme: https

          tls_config:
            ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
          bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token

          kubernetes_sd_configs:
          - role: node

          relabel_configs:
          - action: labelmap
            regex: __meta_kubernetes_node_label_(.+)
          - target_label: __address__
            replacement: kubernetes.default.svc:443
          - source_labels: [__meta_kubernetes_node_name]
            regex: (.+)
            target_label: __metrics_path__
            replacement: /api/v1/proxy/nodes/${1}:4194/metrics 

hey, how do i add this, and where do i add this?
in manifests-all.yaml?
and also replacement: /api/v1/proxy/nodes/${1}:4194/metrics
i didnt get this,
how can i put a http url insted of this?
for that what should i write?
say cadvisor is serving at http://XXX.XXX.X.0:4194/metrics