Skip to content

[MONIT-4105] Add Support for Prometheus Server Custom Relabelings

Description:

This merge request implements support for custom relabeling configurations in the Prometheus server and associated components, enabling users to filter, transform, or rename metrics according to their specific needs.

Motivation

Users have requested greater control over their metrics by introducing filtering and transformation directly in the Prometheus server configuration. This feature helps customize metrics to match individual requirements and infrastructure.

Changes

  • Prometheus Server Template
    • Updated the Prometheus server template to include a conditional block that appends user-provided relabeling configurations to the default setup.
    • Ensures backward compatibility by maintaining current behavior if no custom configuration is provided.
  • Values.yaml Enhancements
    • Added a default configuration entry for Prometheus server relabelings in values.yaml.
    • Included detailed documentation and examples for seamless user adoption.
  • Extended Relabeling Support Across Components
    • Introduced user-provided relabeling support for various components, including:
      • API Server
      • CoreDNS
      • ETCD
      • Ingress NGINX
      • Kube State Metrics
      • Kube Controller
      • Kubelet
      • Kube Proxy
      • Node Exporter
      • Scheduler
  • Extended Documentation with Relabelings Configuration
    • Explain in the documentation how to configure the relabelings for each component.
    • Explain in the documentation hot to configure the relabelings in general.

Commits

  • 088e113f [MONIT-4105] templates/scheduler: allow user provided relabelings
  • 5a756b80 [MONIT-4105] templates/nodeexporter: allow user provided relabelings
  • df61b96a [MONIT-4105] templates/kubeproxy: allow user provided relabelings
  • c18db8ca [MONIT-4105] templates/kubelet: allow user provided relabelings
  • 16adf596 [MONIT-4105] templates/kubecontroller: allow user provided relabelings
  • 4dbe608a [MONIT-4105] templates/kubestate: allow user provided relabelings
  • c38e3b3c [MONIT-4105] templates/ingress/nginx: allow user provided relabelings
  • 02555a23 [MONIT-4105] templates/etcd: allow user provided relabelings
  • d6bc6f7c [MONIT-4105] templates/coredns: allow user provided relabelings
  • aa739a10 [MONIT-4105] templates/apiserver: allow user provided relabelings
  • 45c1bfe5 [MONIT-4105] values: add default value for prometheus server relabelings
  • 27c15f29 [MONIT-4105] prometheus/server: allow user to all relabelings

Related Jira Tickets:

  • MONIT-4105: Monit Helm Chart: Allow users to filter out metrics.
Edited by Guillermo Facundo Colunga

Merge request reports

Loading