krr
krr copied to clipboard
Prometheus discovery by CRD and custom labels
Hi.
I ´d like to suggest the following:
- Allow user to specify prometheus service labels to discover.
- Use
crd/prometheuses.monitoring.coreos.comobjects to discover prometheus instances.
Hey, we already let you specify the Prometheus url using -p. Or we autodiscover.
Can you elaborate on your use case and how you would use this addition?
Hey. Sure I can.
- Services may be recreated with differente names, whereas labels are more "uniform" across projects (this is my intuition speaking, not real world data). More than once I had to rename a whole namespace where prometheus was installed, which required me to change the
-purl provided to krr (of course I forgot that and krr failed on the first run after changes) PrometheusCRs are the "official" way to create prometheus instances. It may sometimes do not have any of the labels KRR uses to autodiscovery, thus looking into the object itself will always give a valid instance to use.
In fact, this is just a request to be more comprehensive in the discovery process.
Got it, thanks!