Comments (12)
i update my cluster to v1.7.5 ,still get some problem on get metrics from prometheus
i add the following content to prometheus.yaml as document says
- 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/nodes/${1}/proxy/metrics/cadvisor
but prometheus get error info "server returned HTTP status 403 Forbidden", the "Kubernetes Pods resource" panel still no data
from prometheus.
same. here is the log:
Error from server (BadRequest): a container name must be specified for pod node-directory-size-metrics-bjzdv, choose one of: [read-du caddy]
configuration is wrong?
from prometheus.
k8s version 1.7 ,metrics not data for dashboard ! this is bug ?
from prometheus.
More than 1.7 k8s of grafana do not have data, hope to be able to fix it, thanks!
from prometheus.
I have slove this, I add this in configmap on prometheus-core
- job_name: 'kubernetes-cadvisor'
scheme: http
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:
- source_labels: [__address__]
regex: '(.*):10250'
replacement: '${1}:4194'
target_label: __address__
from prometheus.
Is that the word 'address' or did you put the address of something there?
from prometheus.
@arrkaye I just edited his comment to use a code block, I think __address__
is a keyword here. I will look into it later today to hopefully merge a fix.
from prometheus.
justlooks fix worked for me. I have data in my dashboard now. Running kubernetes 1.7.5
from prometheus.
But I can't get metric data on kubernetes 1.8.2,so why? @simon-k8s @canghai908
from prometheus.
@like-inspur did you add the content that @justlooks suggested to the prometheus.yaml?
from prometheus.
@simon-k8s OK ,it works, thanks!
from prometheus.
It should be ok with the current master. Feel free to reopen if it still happens to you
from prometheus.
Related Issues (20)
- how to set grafana path prefix? HOT 2
- Alertmanager CrashLoopBackOff HOT 2
- grafana could not access promtheus when i deplyed node-exporter HOT 1
- all containers are names "io_kubernetes_container_name" HOT 2
- Cannot import new dashboard HOT 1
- Error when applying manifest HOT 4
- Deleted
- chown: changing ownership of '/var/lib/grafana': Operation not permitted HOT 3
- no grafana data older than 1 hour HOT 1
- kube-state-metrics-74f67b58d8-tv6zv | CrashLoopBackOff HOT 1
- grafana-import-dashboards Completed HOT 2
- Automatically monitor new service
- SMTP configuration not loading HOT 1
- Empty dashboards from time to time HOT 4
- Issue w/ Quick start instructions HOT 1
- node-directory-size-metrics eats up burst balance on aws HOT 2
- node-directory-size-metrics - high memory utilization HOT 1
- unable to recognize - no matches for kind "Deployment" in version "extensions/v1beta1" HOT 1
- - job_name: 'kubernetes-nodes' - not working
- Some error in log
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 prometheus.