0

I have a running instance of in my local centos/linux environment.

I want to connect this postgres with prometheus using postgres exporter.

The postgres exporter has a flag --config.file="path-to-config/postgres_exporter.yml"

I am not able to get postgres_exporter.yml file.

Can you please point me to the sample file?

I directly ran

% DATA_SOURCE_NAME="postgresql://postgres:postgres@localhost:5432/?sslmode=disable"
% ./postgres_exporter

It works.

I am expecting:

% ./postgres_exporter --config.file="/tmp/postgres_exporter.yml"
PRATHEESH PC
  • 1,461
  • 1
  • 3
  • 15
  • There's an example [here](https://github.com/prometheus-community/postgres_exporter/blob/master/config/testdata/config-good.yaml) and (some) detail on the options [here](https://github.com/prometheus-community/postgres_exporter#configuration-file). – Zac Anger Jun 14 '23 at 03:50

0 Answers0