Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DevOpsProdigy KubeGraf Node's Dashboard is broken #11

Closed
dmitrievav opened this issue Oct 17, 2019 · 2 comments
Closed

DevOpsProdigy KubeGraf Node's Dashboard is broken #11

dmitrievav opened this issue Oct 17, 2019 · 2 comments

Comments

@dmitrievav
Copy link

kubelet_running_pod_count, container_cpu_usage_seconds_total and container_memory_usage_bytes have no label node

Example:

kubelet_running_pod_count{beta_kubernetes_io_arch="amd64",beta_kubernetes_io_instance_type="m5a.large",beta_kubernetes_io_os="linux",failure_domain_beta_kubernetes_io_region="eu-central-1",failure_domain_beta_kubernetes_io_zone="eu-central-1a",instance="ip-10-102-36-19.eu-central-1.compute.internal",job="kubernetes-nodes",kops_k8s_io_instancegroup="nodes",kubernetes_io_hostname="ip-10-102-36-19.eu-central-1.compute.internal",kubernetes_io_role="node"}

@SergeiSporyshev
Copy link
Collaborator

Hi! Thank you for your PR
I think this issue (#9) will help you

@dmitrievav
Copy link
Author

Adding to my prometheus.yml following rules solved the issue

- job_name: 'kubernetes-nodes-cadvisor'
  ...
  relabel_configs:
    ...
    # add node label for DevOpsProdigy KubeGraf compatibility
    - action: labelmap
      regex: __meta_kubernetes_node_label_kubernetes_io_hostname
      replacement: node

- job_name: 'kubernetes-nodes'
  ...
  relabel_configs:
    ...
    # add node label for DevOpsProdigy KubeGraf compatibility
    - action: labelmap
      regex: __meta_kubernetes_node_label_kubernetes_io_hostname
      replacement: node

And here is Prometheus documentation: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config

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

No branches or pull requests

2 participants