PGEXPORTER(1)
π PGEXPORTER(1) β like, the whole vibe
okay so bestie, welcome to PGEXPORTER, a page from the General Commands Manual (section 1, obvi), and it's literally the most main-character tool for getting your PostgreSQL stats out into Prometheus. let's get into it β¨
πΈ NAME πΈ
pgexporter β a Prometheus exporter for PostgreSQL. that's it, that's the whole name, and honestly? iconic. π
π¦ SYNOPSIS π¦
pgexporter [ -c CONFIG_FILE ] [ -u USERS_FILE ] [ -d ]
that's the bare minimum of what you can throw at it. the rest of the options? they're down there, don't worry, we're getting to all of them fr fr.
π DESCRIPTION π
Prometheus exporter for PostgreSQL.
no cap, that's genuinely the description. it exports PostgreSQL metrics so Prometheus can eat them up. simple, clean, ate. π
β¨ OPTIONS β¨
okay this is the part you actually came for, so let's go, one by one, no skipping, we don't do that here π«Ά
-c,--configCONFIG_FILE β sets the path to thepgexporter.conffile. your main config, the moment. π-u,--usersUSERS_FILE β sets the path to thepgexporter_users.conffile. that's where your user situation lives.-A,--adminsADMINS_FILE β sets the path to thepgexporter_admins.conffile. admin business, very important, we respect it.-D,--directoryDIRECTORY β sets the configuration directory. like, the whole folder, not just one file. highkey convenient.-Y,--yamlMETRICS_FILE_DIR β sets the path to a YAML file or directory. yes, file or directory, both are valid, we love flexibility. π¦-d,--daemonβ run as a daemon. bye bye foreground, hello background vibes. π-C,--colectorsNAME_1,NAME_2,...,NAME_N β enable only specific collectors. (yes, it's spelled--colectorsin the manual β keep it exactly like that, don't be the person who "fixes" it, i'm begging π) you give it a comma-separated list of names.-V,--versionβ display version information. the classic "which one am i even running" check. π-?,--helpβ display help. the-?is a whole mood but it works, trust.
fr fr, copy those flag spellings character for character β--colectorsand-?are not typos on my end, they're straight from the source and we do not touch them. π
π REPORTING BUGS π
pgexporter is maintained on GitHub at <https://github.com/pgexporter/pgexporter>
found something cursed? take it there, the maintainers wanna know, and no, don't just suffer in silence bestie π
π COPYRIGHT π
pgexporter is licensed under the 3-clause BSD License. legal queen behavior, we stan proper licensing. β
π₯ SEE ALSO π₯
go read those too, iykwim, they're the supporting cast and they understood the assignment π§
okay that's the whole page, you're all caught up π mwah. this lil beauty lives in the General Commands Manual and signs off as PGEXPORTER(1) β periodt. π
π¦ 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