PGEXPORTER.CONF(5)
π NAME π
pgexporter.conf is the main configuration file for pgexporter β yes bestie, the main-character config file itself. β¨
πΈ DESCRIPTION πΈ
pgexporter.conf is the main configuration file for pgexporter. Iconic behavior only. π
The file is split into different sections specified by the [ and ] characters. The main section is called [pgexporter].
Other sections specify the PostgreSQL server configuration.
All properties are in the format key = value.
The characters # and ; can be used for comments; they must be the first character on the line. The Bool data type supports the following values: on, 1, true, off, 0 and false. No cap, thatβs the whole bool menu. π
β¨ OPTIONS β¨
π The options for the main section are
hostβ The bind address forpgexporter. Mandatory β like, actually required, bestie.unix_socket_dirβ The Unix Domain Socket location. Mandatory.metricsβ The metrics port. Mandatory.metrics_pathβ Path to customized metrics (either a YAML file or a directory with YAML files).metrics_cache_max_ageβ The number of seconds to keep in cache a Prometheus (metrics) response. If set to zero, the caching will be disabled. Can be a string with a suffix, like2mto indicate 2 minutes. Default is0(disabled).metrics_cache_max_sizeβ The maximum amount of data to keep in cache when serving Prometheus responses. Changes require restart. This parameter determines the size of memory allocated for the cache even ifmetrics_cache_max_ageormetricsare disabled. Its value, however, is taken into account only ifmetrics_cache_max_ageis set to a non-zero value. Supports suffixes:B(bytes), the default if omitted,KorKB(kilobytes),MorMB(megabytes),GorGB(gigabytes). Default is256k.bridgeβ The bridge port.bridge_endpointsβ A comma-separated list of bridge endpoints specified byhost:port.bridge_cache_max_ageβ The number of seconds to keep in cache a Prometheus (bridge) response. If set to zero, the caching will be disabled. Can be a string with a suffix, like2mto indicate 2 minutes. Default is5m.bridge_cache_max_sizeβ The maximum amount of data to keep in cache when serving Prometheus responses. Changes require restart. If set to zero, the caching will be disabled. Supports suffixes:B(bytes), the default if omitted,KorKB(kilobytes),MorMB(megabytes),GorGB(gigabytes). Default is10M.bridge_jsonβ The bridge JSON port.bridge_json_cache_max_sizeβ The maximum amount of data to keep in cache when serving Prometheus JSON responses. Changes require restart. If set to zero, the caching will be disabled. Supports suffixes:B(bytes), the default if omitted,KorKB(kilobytes),MorMB(megabytes),GorGB(gigabytes). Default is10M.managementβ The remote management port. Default is0(disabled).cacheβ Cache connection. Default ison.log_typeβ The logging type (console,file,syslog). Default isconsole.log_levelβ The logging level, any of the (case insensitive) stringsFATAL,ERROR,WARN,INFOandDEBUG(that can be more specific asDEBUG1thruDEBUG5). Debug level greater than 5 will be set toDEBUG5. Not recognized values will make thelog_levelbeINFO. Default isinfo.log_pathβ The log file location. Default ispgexporter.log. Can be astrftime(3)compatible string.log_rotation_ageβ The age that will trigger a log file rotation. If expressed as a positive number, is managed as seconds. Supports suffixes:S(seconds, the default),M(minutes),H(hours),D(days),W(weeks). A value of0disables. Default is0(disabled).log_rotation_sizeβ The size of the log file that will trigger a log rotation. Supports suffixes:B(bytes), the default if omitted,KorKB(kilobytes),MorMB(megabytes),GorGB(gigabytes). A value of0(with or without suffix) disables. Default is0.log_line_prefixβ Astrftime(3)compatible string to use as prefix for every log line. Must be quoted if contains spaces. Default is%Y-%m-%d %H:%M:%S.log_modeβ Append to or create the log file (append,create). Default isappend.blocking_timeoutβ The number of seconds the process will be blocking for a connection (disable =0). Default is30.tlsβ Enable Transport Layer Security (TLS). Default isfalse.tls_cert_fileβ Certificate file for TLS.tls_key_fileβ Private key file for TLS.tls_ca_fileβ Certificate Authority (CA) file for TLS.metrics_cert_fileβ Certificate file for TLS for Prometheus metrics.metrics_key_fileβ Private key file for TLS for Prometheus metrics.metrics_ca_fileβ Certificate Authority (CA) file for TLS for Prometheus metrics.libevβ The libev backend to use. Valid options:auto,select,poll,epoll,iouring,devpollandport. Default isauto.keep_aliveβ HaveSO_KEEPALIVEon sockets. Default ison.nodelayβ HaveTCP_NODELAYon sockets. Default ison.non_blockingβ HaveO_NONBLOCKon sockets. Default ison.backlogβ The backlog forlisten(). Minimum16. Default is16.hugepageβ Huge page support. Default istry.pidfileβ Path to the PID file.update_process_titleβ The behavior for updating the operating system process title. Allowed settings are:never(oroff), does not update the process title;strictto set the process title without overriding the existing initial process title length;minimalto set the process title to the base description;verbose(orfull) to set the process title to the full description. Please note thatstrictandminimalare honored only on those systems that do not provide a native way to set the process title (e.g., Linux). On other systems, there is no difference betweenstrictandminimaland the assumed behaviour isminimaleven ifstrictis used.neverandverboseare always honored, on every system. On Linux systems the process title is always trimmed to 255 characters, while on systems that provide a native way to set the process title it can be longer. Default isverbose.
π¦ The options for the PostgreSQL section are
hostβ The address of the PostgreSQL instance. Mandatory.portβ The port of the PostgreSQL instance. Mandatory.userβ The user name for the replication role. Mandatory.data_dirβ The location of the data directory.wal_dirβ The location of the WAL directory.
π REPORTING BUGS π
pgexporter is maintained on GitHub at https://github.com/pgexporter/pgexporter β thatβs the spot, bestie. π«Ά
π COPYRIGHT π
pgexporter is licensed under the 3-clause BSD License. Legal slay, periodt. π
π SEE ALSO π
pgexporter(1), pgexporter-cli(1), pgexporter-admin(1)
okay bye bestie π β you just read pgexporter.confβs section 5 in the File Formats Manual, and thatβs the whole footer moment: section tag only, no extra date/version line hiding down here. stay configured. π
π¦ where this page comes from
- alpine 3.24: pgexporter-doc 0.7.0-r0 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms