Comments (8)
Is there a surefire way of introducing logic to the HPA provider to only target HPAs for which the collector is configured for? Or that have any annotations beginning with metric-config
?
I'm willing to open a PR, just need some guidance
from kube-metrics-adapter.
What is the actual impact you observe? Does it just print errors because it can't enable a collector for the HPA, or does it cause actual issues?
If it's just an error we can maybe maybe it less verbose?
from kube-metrics-adapter.
As it fails to create the collector, the errors get logged and inserted as events on the HPA. We're seeing thousands of such events, it's unnecessary noise. But there's no other impact.
from kube-metrics-adapter.
Ah ok, I see what you mean now. Yeah, that is annoying if you don't intend to use it for this.
In the general case I think the event/log is still useful if you are only running the kube-metrics-adapter in your cluster, but it would probably make sense to add a flag for disabling reporting HPAs which doesn't match any collector plugin. What do you think?
from kube-metrics-adapter.
Yeah, that's the kind of thing I'd be willing to implement. What do you think about the two ways I suggested above?
from kube-metrics-adapter.
Yeah, that's the kind of thing I'd be willing to implement. What do you think about the two ways I suggested above?
The best way would be to check if the error here:
kube-metrics-adapter/pkg/provider/hpa.go
Line 165 in 1209500
Does that make sense?
from kube-metrics-adapter.
PR for this opened
from kube-metrics-adapter.
Issue fixed with #95
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.