Add Postgres exporter service
This commit is contained in:
@@ -27,6 +27,15 @@ services:
|
||||
networks:
|
||||
- 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:
|
||||
torrentio-network:
|
||||
external: true
|
||||
|
||||
@@ -17,3 +17,6 @@ scrape_configs:
|
||||
- job_name: "rabbitmq"
|
||||
static_configs:
|
||||
- targets: ["rabbitmq:15692"]
|
||||
- job_name: "postgres-exporter"
|
||||
static_configs:
|
||||
- targets: ["postgres-exporter:9187"]
|
||||
|
||||
Reference in New Issue
Block a user