Prometheus
Prometheus can be configured with pgexporter
as a data source.
An example config file for prometheus, prometheus.yml
, can be:
yml
global:
scrape_interval: 15s
scrape_configs:
- job_name: 'prometheus'
static_configs:
- targets: ['localhost:9009']
- job_name: 'pgexporter'
static_configs:
- targets: ['localhost:5002']
global:
scrape_interval: 15s
scrape_configs:
- job_name: 'prometheus'
static_configs:
- targets: ['localhost:9009']
- job_name: 'pgexporter'
static_configs:
- targets: ['localhost:5002']