-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update PrometheusAdapter config based on "MetricRules" objects #2504
Comments
Hello, @eero-t! I'm here to assist you with any bugs, questions, or contributions you have. Let's work together to solve this issue. The Prometheus Operator currently updates Prometheus configurations based on However, it does not automatically update the PrometheusAdapter configuration based on Automating the update of the PrometheusAdapter configuration based on |
For context, Prometheus Operator automates the deployment and configuration of Prometheus and related components, so far we've been automating components that we see as essential for a Prometheus-based monitoring stack, e.g. Alertmanager. Prometheus-Adapter can be seen as Prometheus-related component, but I wouldn't say its essential for a Prometheus-based monitoring stack. At this point in time, I'd be against adding extra complexity to this codebase to support a component that is not widely used. Let's keep the issue open though! If we see big demand from the community, it means I'm wrong :) |
Fair enough, but I would have thought most of the functionality to already be there:
And to need just minor changes & additions to support new object type, one containing these members: https://github.com/kubernetes-sigs/prometheus-adapter/blob/master/docs/sample-config.yaml ? |
IIRC we already mentioned in the past about the deprecation of Prometheus Adapter, especially because it can be easily replaced by KEDA. Maybe @slashpai can refresh me what we discussed in the past. |
Moved to https://github.com/prometheus-operator/kube-prometheus since it's more an ask for kube-prometheus than prometheus-operator itself. |
I second @ArthurSens that the Prometheus operator isn't the right place to support Prometheus adapter. Its API surface is already large enough + I have doubts about the future of the Prometheus adapter. |
https://docs.google.com/document/d/1FE4AQ8B49fYbKhfg4Tx0cui1V0eI4o3PxoqQPUwNEiU/edit#heading=h.sxa3e6gwwwq4 (notes from 2022-12-08)
|
Component(s)
No response
What is missing? Please describe.
Operator updating PrometheusAdapter config based on available
MetricRules
objects, similarly to how it already updates Prometheus config based onPodMonitor
andServiceMonitor
objects.Describe alternatives you've considered.
When one would want to automate installation of some component and its associated application metric rules...
kube-prometheus
one), so user would need to manually edit the configThis is rather aggravating and unfriendly. Operator providing automation for updating adapter config would IMHO make custom/external metrics much more usable!
Environment Information.
Environment
Kubernetes Version: 1.30
Prometheus-Operator Version: see https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack
The text was updated successfully, but these errors were encountered: