I have a cluster deployed with: https://bitnami.com/stack/prometheus-operator/helm and https://github.com/prometheus-community/postgres_exporter
How to properly add own metrics to the prometheus-operator list of metrics that postgres_exporter exports ?
I tried it that way:
helm upgrade kube-prometheus bitnami/kube-prometheus \
--set prometheus.additionalScrapeConfigs.enabled=true \
--set prometheus.additionalScrapeConfigs.type=internal \
--set prometheus.additionalScrapeConfigs.internal.jobList=
- job_name: 'prometheus-postgres-exporter'
static_configs:
- targets: ['prometheus-postgres-exporter.default:80']
but it doesn't work ('job_name:' are not added to the Prometheus Configuration).