compliantkubernetes-apps icon indicating copy to clipboard operation
compliantkubernetes-apps copied to clipboard

Implement metricRelabelings for serviceMonitors that lack it

Open OlleLarsson opened this issue 1 year ago • 0 comments

Is your feature request related to a problem? Please describe.

We want to be able to keep a subset of metrics from each application that we scrape. In order for us to be able to do this all helm charts that have a serviceMonitor in them that we use, need to have the configuration option of setting metricRelabelings (see spec here)

From my initial investigation I have concluded the following that the following charts needs to be updated:

  • cert-manager
  • dex
  • gatekeeper
  • calico-accountant
  • calico-felix
  • kured
  • velero
  • tekton
  • hnc (?)

The above list might not be final, do check the repository for more charts that might lack metricRelabelings for servicemonitors!

Describe the solution you'd like Implement metricRelabelings for servicemonitors.

As a lot of the charts that are upstream charts, metricRelabelings for servicemonitors needs to be upstreamed!

Describe alternatives you've considered Not adding metricRelabelings for servicemonitors and thus not being able to remove certain metrics from scraped.

Definition of done: Charts with servivemonitors have the option to configure metricRelabelings.

OlleLarsson avatar Oct 19 '23 05:10 OlleLarsson