How to add montioring endpoints for apps
Right now we don't have the option to conditionally install monitoring endpoints for apps (i.e. for ingress-nginx) only when monitoring is enabled.
Currently there are two ways of configuring these Prometheus endpoints (serviceMonitors):
- Configure the serviceMonitor from the app's helm chart values. This makes monitoring a hard dependency.
- Configure the serviceMonitor using extra resources from the monitoring flux resource. This makes the app a hard dependency.
Until we find a better solution I'll go with 1.