Add Postgres exporter and it's dashboard
This commit is contained in:
parent
4a1a46facc
commit
354b3ccb0c
@ -43,5 +43,15 @@ services:
|
|||||||
extra_hosts:
|
extra_hosts:
|
||||||
- "host.docker.internal:host-gateway"
|
- "host.docker.internal:host-gateway"
|
||||||
|
|
||||||
|
postgres-exporter:
|
||||||
|
image: quay.io/prometheuscommunity/postgres-exporter
|
||||||
|
restart: always
|
||||||
|
volumes:
|
||||||
|
- ../config/monitoring/postgres-exporter.yml:/postgres_exporter.yml
|
||||||
|
ports:
|
||||||
|
- '9187'
|
||||||
|
extra_hosts:
|
||||||
|
- "host.docker.internal:host-gateway"
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
prometheus_data:
|
prometheus_data:
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,8 @@
|
|||||||
|
auth_modules:
|
||||||
|
foo:
|
||||||
|
type: userpass
|
||||||
|
userpass:
|
||||||
|
username: username
|
||||||
|
password: password
|
||||||
|
options:
|
||||||
|
sslmode: disable
|
@ -40,3 +40,21 @@ scrape_configs:
|
|||||||
static_configs:
|
static_configs:
|
||||||
- targets: ['chain-head-exporter:5000']
|
- targets: ['chain-head-exporter:5000']
|
||||||
|
|
||||||
|
- job_name: 'postgres'
|
||||||
|
scrape_interval: 30s
|
||||||
|
scrape_timeout: 30s
|
||||||
|
static_configs:
|
||||||
|
# Add DB targets below
|
||||||
|
# - targets: [example-server:5432]
|
||||||
|
# labels:
|
||||||
|
# instance: 'example-label'
|
||||||
|
metrics_path: /probe
|
||||||
|
params:
|
||||||
|
auth_module: [foo]
|
||||||
|
relabel_configs:
|
||||||
|
- source_labels: [__address__]
|
||||||
|
target_label: __param_target
|
||||||
|
- source_labels: [__param_target]
|
||||||
|
target_label: instance
|
||||||
|
- target_label: __address__
|
||||||
|
replacement: postgres-exporter:9187
|
||||||
|
Loading…
Reference in New Issue
Block a user