Skip to content
This repository has been archived by the owner on Apr 12, 2023. It is now read-only.

cadvisor scrape for prometheus #84

Closed
RahulMahale opened this issue Oct 5, 2017 · 3 comments
Closed

cadvisor scrape for prometheus #84

RahulMahale opened this issue Oct 5, 2017 · 3 comments

Comments

@RahulMahale
Copy link
Contributor

Can I create a PR for kubernetes-cadvisor scrape ?

@RahulMahale
Copy link
Contributor Author

@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 

@saikatharryc
Copy link

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

@pipo02mix
Copy link
Contributor

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants