Skip to content

Add prometheus pushgateway and corresponding prometheus target config

Alexandre Seitz requested to merge aseitz/prom-pushgateway into main

What does this MR do and why?

  1. Add a new sylva unit which installs Prometheus Pushgateway exporter from prometheus HELM repo
    1. enable persistent volume and add peristent flags at pushgateway startup
    2. add a sidecar container which runs a loop script to purge metrics
  2. Add the corresponding Prometheus Target configuration in prometheus-resources kustomized unit

Related reference(s)

closes #1196 (closed)

Test coverage

  • manual test to verify in Rancher/Prometheus GUI that pushgateway target is well seen UP
  • sidecar container purge-metrics is well deployed in pushgateway pod
  • pushgateway starts with required extraArgs and PV (default size 2G)
Edited by Alexandre Seitz

Merge request reports