Comments (2)
Uhm, code 18, seems like the Deployment & HPA's prometheus path might have not matched during testing (or some other magic), but it works now... 🐙
from kube-metrics-adapter.
So it seems prometheus 2.18.1 wants the path prefix /prometheus
for queries via /api/v1/query
but setting it like this seems to ignore the /prometheus
part, (still getting 404...):
metric-config.external.prometheus-query.prometheus/prometheus-server: http://prometheus.kube-system-monitoring.svc.cluster.local:9090/prometheus
EDIT:
The running process
/kube-metrics-adapter --prometheus-server=http://prometheus.kube-system-monitoring.svc.cluster.local:9090/prometheus --skipper-ingress-metrics --aws-external-metrics
The tcpdump from prometheus:
.I..y.z&5x\@..E..vu.@.@.............#...=..#.......|......A....ur.POST./api/v1/query.HTTP/1.1..Host:.prometheus.kube-system-monitoring.svc.cluster.local:9090..User-Agent:.Go-http-client/1.1..Content-Length:.102..Content-Type:.application/x-www-form-urlencoded..Accept-Encoding:.gzip....query=rabbitmq_queue_messages_ready%7Bqueue%3D%22task_priority_apiworker%22%7D&time=1590074409.0026362
z&5x\@.I..y...E.....@.@...........#....#....?..............u.7A...HTTP/1.1.404.Not.Found..Content-Type:.text/plain;.charset=utf-8..X-Content-Type-Options:.nosniff..Date:.Thu,.21.May.2020.15:20:09.GMT..Content-Length:.19....404.page.not.found.
Not sure why it's not getting /prometheus/api/v1/query...
Is it possible the path is stripped and there is no flag to point to a specific prometheus path, as defined by --web.external-url=http://example.com/prometheus'
for example?
from kube-metrics-adapter.
Related Issues (20)
- Array return values do not work with json-path
- [FeatureRequest] ScalingSchedule: add crontab schedule
- container release tag concept HOT 2
- Panic: assignment to entry in nil map HOT 7
- update to work with kube 1.22 HOT 2
- Update outdated base image? HOT 2
- Kustomize support HOT 1
- Helm chart should be available in a chart repository HOT 8
- [Doc Question] May I config multiple type of collector in a single HPA HOT 2
- Is it possible to retrieve request per second to pod without using prometheus? HOT 4
- Parameters consultation
- Missing Documentation for kubernetes compatibility matrix HOT 1
- Update k8s autoscaling dependency to v2 version to support Kubernetes 1.26+ HOT 1
- Metric Adapter is taking metrics from cache HOT 1
- Is that feasible to run the adapter into a namespace different from `kube-system`? HOT 3
- Make log level configurable
- Docker image for arm64 not published HOT 1
- HPA metric got stuck at a random value and not scaling down after reaching max replica count HOT 12
- No latest tag exists for ghcr.io repo
- Error: the server could not find the requested resource 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 kube-metrics-adapter.