Add Postgres exporter service

This commit is contained in:
HDwayne
2024-02-04 01:18:34 +01:00
parent a56b04f04b
commit 5f691ef877
2 changed files with 12 additions and 0 deletions

View File

@@ -27,6 +27,15 @@ services:
networks: networks:
- torrentio-network - torrentio-network
postgres-exporter:
image: prometheuscommunity/postgres-exporter
ports:
- "9187:9187"
environment:
DATA_SOURCE_NAME: "postgresql://postgres:postgres@postgres:5432/selfhostio?sslmode=disable"
networks:
- torrentio-network
networks: networks:
torrentio-network: torrentio-network:
external: true external: true

View File

@@ -17,3 +17,6 @@ scrape_configs:
- job_name: "rabbitmq" - job_name: "rabbitmq"
static_configs: static_configs:
- targets: ["rabbitmq:15692"] - targets: ["rabbitmq:15692"]
- job_name: "postgres-exporter"
static_configs:
- targets: ["postgres-exporter:9187"]