Skip to content

docs: add API reference for pushgateway, textfile, and multiprocess#1162

Open
k1chik wants to merge 1 commit intoprometheus:masterfrom
k1chik:fix/1161-api-reference-pushgateway-textfile-multiprocess
Open

docs: add API reference for pushgateway, textfile, and multiprocess#1162
k1chik wants to merge 1 commit intoprometheus:masterfrom
k1chik:fix/1161-api-reference-pushgateway-textfile-multiprocess

Conversation

@k1chik
Copy link
Copy Markdown
Contributor

@k1chik k1chik commented Apr 13, 2026

Closes #1161

Adds parameter tables and formal API reference sections to three pages
that previously had examples but no parameter documentation. Follows the
same pattern as #1021.

pushgateway.md: push_to_gateway, pushadd_to_gateway, delete_from_gateway,
instance_ip_grouping_key, and all four built-in handlers (default_handler,
basic_auth_handler, tls_auth_handler, passthrough_redirect_handler).

textfile.md: write_to_textfile with all four parameters including the
previously undocumented escaping and tmpdir, atomic write semantics, and
error behavior.

multiprocess/_index.md: MultiProcessCollector and mark_process_dead with
parameter tables including the previously undocumented path parameter on both.

cc @csmarchbanks

Closes prometheus#1161

Adds parameter tables and formal API reference sections to three pages
that previously had examples but no parameter documentation.

pushgateway.md: documents push_to_gateway, pushadd_to_gateway,
delete_from_gateway, instance_ip_grouping_key, and all four built-in
handlers (default, basic_auth, tls_auth, passthrough_redirect).

textfile.md: documents write_to_textfile with all four parameters
including the previously undocumented escaping and tmpdir, plus atomic
write semantics and error behavior.

multiprocess/_index.md: documents MultiProcessCollector constructor and
mark_process_dead with parameter tables including the previously
undocumented path parameter on both.

Signed-off-by: k1chik <107162115+k1chik@users.noreply.github.com>
@k1chik k1chik force-pushed the fix/1161-api-reference-pushgateway-textfile-multiprocess branch from b3e3005 to 37d0fa8 Compare April 13, 2026 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

API reference for pushgateway, textfile, and multiprocess

1 participant