Comments (13)
Hello!
Thank you for issue.
Check status of your kubelet exporter in prometheus and labels
https://<your_cluster_ip>:10250/metrics
https://<your_cluster_ip>:10250/metrics/cadvisor
from kubegraf.
from kubegraf.
Sergei,
When I click on the chart that has no data and go to "explore," I get this query:
(sum(rate(container_cpu_usage_seconds_total{node=~"ip-10-1-56-122.ec2.internal"}[1m])) / sum(kube_node_status_allocatable_cpu_cores{node=~"ip-10-1-56-122.ec2.internal"})) * 100
When I copy and paste this into my Prometheus query window, I get no datapoints. Do you think I have a broken Prometheus install, despite many other metrics being populated?
from kubegraf.
Check your relabel configs in Prometheus
from kubegraf.
Right now, what I'm doing is using the token to communicate with the
cluster. Should I generate the SSL credentials instead? Would that fix
anything?
Which version of plugin do you use?
from kubegraf.
from kubegraf.
Hi!
This is part of my Prometheus' config
`- job_name: monitoring/monitoring-prometheus-oper-kubelet/1
honor_labels: true
scrape_interval: 30s
scrape_timeout: 10s
metrics_path: /metrics/cadvisor
scheme: http
kubernetes_sd_configs:
-
role: endpoints
namespaces:
names:- kube-system
relabel_configs:
- kube-system
-
source_labels: [__meta_kubernetes_service_label_k8s_app]
separator: ;
regex: kubelet
replacement: $1
action: keep -
source_labels: [__meta_kubernetes_endpoint_port_name]
separator: ;
regex: http-metrics
replacement: $1
action: keep -
source_labels: [__meta_kubernetes_endpoint_address_target_kind, __meta_kubernetes_endpoint_address_target_name]
separator: ;
regex: Node;(.*)
target_label: node
replacement: ${1}
action: replace -
source_labels: [__meta_kubernetes_endpoint_address_target_kind, __meta_kubernetes_endpoint_address_target_name]
separator: ;
regex: Pod;(.*)
target_label: pod
replacement: ${1}
action: replace -
source_labels: [__meta_kubernetes_namespace]
separator: ;
regex: (.*)
target_label: namespace
replacement: $1
action: replace -
source_labels: [__meta_kubernetes_service_name]
separator: ;
regex: (.*)
target_label: service
replacement: $1
action: replace -
source_labels: [__meta_kubernetes_pod_name]
separator: ;
regex: (.*)
target_label: pod
replacement: $1
action: replace -
source_labels: [__meta_kubernetes_service_name]
separator: ;
regex: (.*)
target_label: job
replacement: ${1}
action: replace -
source_labels: [__meta_kubernetes_service_label_k8s_app]
separator: ;
regex: (.+)
target_label: job
replacement: ${1}
action: replace -
separator: ;
regex: (.*)
target_label: endpoint
replacement: http-metrics
action: replace -
job_name: monitoring/monitoring-prometheus-oper-kubelet/0
honor_labels: true
scrape_interval: 30s
scrape_timeout: 10s
metrics_path: /metrics
scheme: http
kubernetes_sd_configs:- role: endpoints
namespaces:
names:- kube-system
relabel_configs:
- kube-system
- source_labels: [__meta_kubernetes_service_label_k8s_app]
separator: ;
regex: kubelet
replacement: $1
action: keep - source_labels: [__meta_kubernetes_endpoint_port_name]
separator: ;
regex: http-metrics
replacement: $1
action: keep - source_labels: [__meta_kubernetes_endpoint_address_target_kind, __meta_kubernetes_endpoint_address_target_name]
separator: ;
regex: Node;(.*)
target_label: node
replacement: ${1}
action: replace - source_labels: [__meta_kubernetes_endpoint_address_target_kind, __meta_kubernetes_endpoint_address_target_name]
separator: ;
regex: Pod;(.*)
target_label: pod
replacement: ${1}
action: replace - source_labels: [__meta_kubernetes_namespace]
separator: ;
regex: (.*)
target_label: namespace
replacement: $1
action: replace - source_labels: [__meta_kubernetes_service_name]
separator: ;
regex: (.*)
target_label: service
replacement: $1
action: replace - source_labels: [__meta_kubernetes_pod_name]
separator: ;
regex: (.*)
target_label: pod
replacement: $1
action: replace - source_labels: [__meta_kubernetes_service_name]
separator: ;
regex: (.*)
target_label: job
replacement: ${1}
action: replace - source_labels: [__meta_kubernetes_service_label_k8s_app]
separator: ;
regex: (.+)
target_label: job
replacement: ${1}
action: replace - separator: ;
regex: (.*)
target_label: endpoint
replacement: http-metrics
action: replace`
- role: endpoints
And try to install Prometheus via Prometheus-operator (https://github.com/helm/charts/tree/master/stable/prometheus-operator)
from kubegraf.
from kubegraf.
Hi @sinkr !
What version of node-exporter and kube-state-metrics you use?
I don't see this targets in your config
from kubegraf.
from kubegraf.
Hi @sinkr!
We had the same problem during tests.
Can you check it by new release (via git pull) - https://github.com/devopsprodigy/kubegraf/releases/tag/v1.2.0.5 ?
from kubegraf.
from kubegraf.
Yeah!
Thank you for this issue again!
from kubegraf.
Related Issues (20)
- [Feature Request] Add "Cluster status" dashboard HOT 1
- Only Admins see "Clusters list" HOT 4
- kube-state-metrics depreciated metrics referenced by kubegraf 1.5.1 HOT 2
- container/pod memory usage not always real time usage HOT 4
- Can you provide an instruction for installing prometheus from scratch? HOT 1
- kube-state-metrics kube_pod_container_resource_limits query changed HOT 2
- prometheus metrics unavailable for the nodes
- grafana plugin Variables can only look up one pod
- Cluster Config "Page not found 404" Error after Grafana v8.0.0 upgrade HOT 8
- Grafana 8 kubegraf dependencies failed HOT 15
- does this plugin support arm architecture granfana? HOT 1
- Unsigned plugins devopsprodidy-kubegraf-datasource & devopsprodigy-kubegraf-app in Grafana 8 HOT 3
- plugins/devopsprodigy-kubegraf-app/page/clusters returns 404 HOT 1
- Unable to add datasource for AWS EKS Private Cluster
- Unable to see whole data on node overview page HOT 1
- https://github.com/devopsprodigy/kubegraf-v2 - seems to be the new version for Grafana v8+ HOT 4
- Would be this project maintained? HOT 1
- Angular is deprecated - please migrate to React
- Plugin at risk of deprecation
- DevOpsProdigy KubeGraf version 1.5.2 usage issues HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kubegraf.