Comments (3)
You'll have to provide more information. What object are you fetching the metric on? I'd guess, however, that the value is being aggregated over other labels. Can you post the full set of labels on the series? If you query prometheus for sum(your_metric_name{the_type="some-name"}) by (the_type)
, what gets returned?
from prometheus-adapter.
I have found the root cause. In my application, I created serval pods and services. Each pod had a metric called worker_queue_length_percentage. And there could be serval services that selected a same pod. For each service I also created a corresponding service monitor. So in prometheus there were serval records for a pod, with each service having one record. And it seemed that k8s-prometheus-adapter would sum them up for the metric of one pod.
After finding the root cause, I have fixed this issue.
from prometheus-adapter.
yep, that would do it. As discussed in the documentation, the adapter sums over all labels besides the requested resource's label: https://github.com/DirectXMan12/k8s-prometheus-adapter/blob/master/docs/format.md#L38-L40
from prometheus-adapter.
Related Issues (20)
- apiservice Error reporting:failing or missing response from https://10.244.2.96:6443/apis/custom.metrics.k8s.io/v1beta1: bad status from https://10.244.2.96:6443/apis/custom.metrics.k8s.io/v1beta1: 404 HOT 2
- install prometheus adapter in k8s, but failed, and the logs showing "exec /adapter: exec format error" HOT 1
- how to aggregate query with multiple metrics ? HOT 4
- how to ignore parameters from hpa request ? HOT 3
- is it possible to use external prometheus server on ec2 server? HOT 1
- Scaling model for prometheus-adapter after disabling metrics-server HOT 1
- How do i get the v0.11.2 docker image? HOT 2
- Documentation on how to directly query the adapter HOT 2
- Panic slice out of bands when querying namespace metric HOT 1
- Monitoring of prometheus-adapter metrics HOT 3
- Error while disabling TLS in server, setting secure-port = 0 throws error HOT 3
- Improve security hygiene and documentation HOT 3
- Unable to see Node Metrics - Error Metrics Missing CPU for node "XXX", skipping HOT 3
- Kubectl --raw reporting an unknown metric even though it shows up in the list of known metrics HOT 1
- Issue fetching external metric HOT 1
- Failed to get pods metric value: unable to get metric DCGM_FI_DEV_FB_USED_AVG: no metrics returned from custom metrics API HOT 5
- Prometheus adapter support for cross cluster autoscaling HOT 3
- Failed to pull image "quay.io/coreos/k8s-prometheus-adapter-amd64:v0.4.1" HOT 3
- Adding custom CRD for Prometheus Adapter rules HOT 1
- Correct Configuration Fails to Provide Expected Custom Metrics in EKS HOT 2
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-adapter.