postgres_exporter job from prometheus/29.0.0
Github source:
dba063b0
or
master branch
Properties¶
postgres_exporter
¶
auto_discover_databases
¶Whether to discover the databases on a server dynamically
- Default
false
constant_labels
¶A list of label=value separated by comma(,)
custom_queries
¶Custom queries to run
datasource_name
¶The PostgresSQL server’s data source name
disable_default_metrics
¶Disables PostgreSQL metrics and only uses custom_queries
- Default
false
disable_settings_metrics
¶Do not include pg_settings metrics
- Default
false
exclude_databases
¶A list of databases to remove when autoDiscoverDatabases is enabled
log_format
¶Set the log target and format. Example: ‘logger:syslog?appname=bob&local=7’ or ‘logger:stdout?json=true’
log_level
¶Only log messages with the given severity or above. Valid levels: [debug, info, warn, error, fatal]
web
¶
port
¶Port on which to expose web interface and telemetry
- Default
"9187"
telemetry_path
¶Path under which to expose Prometheus metrics
Templates¶
Templates are rendered and placed onto corresponding
instances during the deployment process. This job's templates
will be placed into /var/vcap/jobs/postgres_exporter/
directory
(learn more).
bin/postgres_exporter_ctl
(frombin/postgres_exporter_ctl
)config/custom_queries.sql
(fromconfig/custom_queries.sql
)
Packages¶
Packages are compiled and placed onto corresponding
instances during the deployment process. Packages will be
placed into /var/vcap/packages/
directory.