PGEXPORTER-ADMIN(1)
π PGEXPORTER-ADMIN π
okay so bestie, welcome to the manual page for pgexporter-admin, which lives in section 1 (General Commands Manual, iykyk β the one for actual runnable commands). If you've ever been like "how do I even administer pgexporter," this is literally the page for you. Buckle in π
β¨ NAME β¨
pgexporter-admin β the administration utility for pgexporter. that's it, that's the whole vibe. it's the little tool that handles the admin side of pgexporter and honestly it ate.
πΈ SYNOPSIS πΈ
pgexporter-admin [ -f FILE ] [ COMMAND ]
that's the whole shape of it β a couple of optional flags, then a command if you want one π¦
π DESCRIPTION π
pgexporter-admin is an administration utility for pgexporter. no cap, that's the description, it's short but it's iconic. it's the tool you reach for when you need to do admin things with pgexporter.
π OPTIONS π
every single one of these, no skips:
-f,--fileFILE β set the path to a user file. yes, the flag is-f, the long form is--file, and it takes a FILE. π-U,--userUSER β set the user name.-Ufor short,--userif you're feeling verbose.-P,--passwordPASSWORD β set the password for the user. (and sidenote, this one has opinions about precedence β more on that in the environment variables section π)-g,--generateβ generate a password. lowkey the most useful one here ngl, let the tool cook π₯-l,--lengthβ password length. it's-l, it's--length, and it controls how long the generated password is. mid-flag-name but okay we love her-V,--versionβ display version information. main character energy of "which build am I even on"-?,--helpβ display help. yes, the short flag is literally-?and that's iconic of it π«Ά
π COMMANDS π
these are the actual actions, bestie:
master-keyβ create or update the master key. the master key gets created in the pgexporter user home directory, under~/.pgexporter. put some respect on that path β¨user addβ add a user. simple, clean, slay.user editβ edit a user. glow-up time.user user delβ delete a user. and yes, it really is writtenuser user delin the manual β that extrauseris not me being chaotic, that's just how it's printed here. copy it exactly if you're scripting it, don't @ me πuser lsβ list all users. so you can see everyone in the group chat π
π§ ENVIRONMENT VARIABLES π§
PGEXPORTER_PASSWORDβ okay this one's doing double duty, so pay attention bestie. provide either a key for use with themaster-keycommand, or a user password for use with theuser addoruser editcommands. if it's provided,pgexporter-adminwill not ask for the key/password interactively β it just takes it. and here's the important part, no cap: a password provided using the--passwordcommand line argument will have precedence over this variable. so CLI beats env var. periodt.
β οΈ real talk on that precedence thing β if you're setting both and expecting the variable to win, it will not, --password wins. don't get caught out π
π REPORTING BUGS π
found a bug? first of all, sorry bestie. second of all, pgexporter is maintained on GitHub at <https://github.com/pgexporter/pgexporter> β that's where you go to report it. the maintainers are there, go tell them π«Ά
π COPYRIGHT π
pgexporter is licensed under the 3-clause BSD License. legal stuff but make it cute, we love an open-source queen π
β SEE ALSO β
go read these too, they're the friend group:
and that's the page!! π this whole thing comes to you from the General Commands Manual (section 1, where all the runnable commands hang out), and at the very bottom of the page the footer is just PGEXPORTER-ADMIN(1) all over again with the source/version-and-date info sitting there quietly β which is honestly giving "signing off with the same energy we came in with." bye bestie, go administer something ππ¦β¨
π¦ 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