Introduced command-line flags for improved configuration management, including the creation of a default config file, and specified listening address override capabilities. This update facilitates easier and more flexible setup and deployment processes for the PostgreSQL connection exporter. The `.gitignore` and documentation were updated to align with these changes, reflecting the new command-line options and the removal of the `config.dist.yaml` in favor of creating a default configuration through the tool itself. - Command-line flags `--create-config`, `--config`, `--host`, and `--port` added to streamline customization. - Configuration now supports naming database hosts for clearer metrics identification. - Documentation revised to guide through the new configuration and setup process. - Changelog introduced to track project evolution. These enhancements aim to make the exporter more adaptable to various deployment environments and to simplify the initial setup for users.
16 lines
610 B
YAML
16 lines
610 B
YAML
hosts: # List of database hosts
|
|
# Each host must have a user, password, host, and optionally port
|
|
# A name can be provided to identify the host in the metrics instead of the host address
|
|
- name: "myserver"
|
|
user: "user1"
|
|
password: "password1"
|
|
host: "host1"
|
|
port: "5432"
|
|
- user: "user2"
|
|
password: "password2"
|
|
host: "host2"
|
|
port: "5432"
|
|
# As no name is provided, the host address "host2" will be used to identify the host in the metrics
|
|
exporter:
|
|
host: "localhost" # Network address on which the exporter will listen
|
|
port: 8989 # Port on which the exporter will listen
|