1
0
Fork 0

v-m: Scrape PostgreSQL exporter

The [postgres exporter][0] exposes metrics about the operation and
performance of a PostgreSQL server.  It's currently deployed on
_db0.pyrocufflink.blue_, the primary server of the main PostgreSQL
cluster.

[0]: https://github.com/prometheus-community/postgres_exporter
etcd
Dustin 2024-07-02 17:48:07 -05:00
parent 215b2c6975
commit 248a9a5ae9
1 changed files with 11 additions and 0 deletions

View File

@ -444,3 +444,14 @@ scrape_configs:
- source_labels: - source_labels:
- __meta_kubernetes_pod_name - __meta_kubernetes_pod_name
target_label: instance target_label: instance
- job_name: postgresql
static_configs:
- targets:
- db0.pyrocufflink.blue
relabel_configs:
- source_labels: [__address__]
target_label: instance
- source_labels: [__address__]
target_label: __address__
replacement: '$1:9187'