fixinventory
fixinventory copied to clipboard
helm: metrics scraping with a serviceMonitor
Motivation
As many users deploy Prometheus using kube-prometheus-stack, to give the possibility to have a serviceMonitor to scrape the metrics instead of the annotation based scraping would be nice.
Desired Behavior
If .Values.resotometrics.serviceMonitor.enabled
= true, we should:
- create a
kind: service
pointing to the resotometrics deployment exposed port - create a
kind: serciceMonitor
pointing to the above service - Unset the deployment' scraping annotations
Additional Context
No response