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

How to scrape CAdvsior in Kubernetes 1.8  #89

Closed
@gaya3chandran1

Description

How to scrape CAdvsior in Kubernetes 1.8 . The default configuraion is unable to scarep it.

I see this in the official doc.How to modify this for this project.

  - job_name: 'kubernetes-nodes-cadvisor'
    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/nodes/${1}:4194/proxy/metrics/cadvisor

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions