Skip to content

[docs] Getting Started: document config path, all web endpoints, sys-metrics opt-out - #1434

Merged
manugarg merged 1 commit into
mainfrom
docs-getting-started-additions
Aug 29, 2026
Merged

manugarg merged 1 commit into
mainfrom
docs-getting-started-additions

Conversation

@manugarg

Copy link
Copy Markdown
Contributor

Stacked on #1433 (same file, so basing this on main would conflict). GitHub will retarget it to main once that merges.

Three things the page depended on but never told you.

The default config path

/etc/cloudprober.cfg is what cloudprober reads when you don't pass --config_file (config/configsource.go:28), falling back to an empty config if that file is missing too. That fact was doing a lot of invisible work on this page: it's why the bare cloudprober in "Your First Run" produces nothing but system metrics, and it's why the Docker command mounts the config at that particular path. Now stated once, where both of those land.

Half the web endpoints were missing

The table listed 4 of the 8 endpoints actually served. Added /config-parsed, /config-running, /logs, and /links, and drew the distinction between /config (exactly what you provided) and /config-parsed (after templates and env vars are expanded) — which is the one you want when debugging a templated config. Also noted that /artifacts appears when a probe produces artifacts, e.g. browser probe screenshots; it's registered conditionally, so it 404s otherwise.

Verified by hitting each endpoint on a running instance:

/status          200      /config-running  200
/config          200      /metrics         200
/config-parsed   200      /alerts          200
/links           200      /logs            200
/artifacts       404   (no browser probe configured)

No way to turn off the system probe

The auto-added sys_metrics probe is the first output the page shows, and --disable_sys_metrics appeared nowhere. Also documented that configuring your own SYSTEM probe suppresses the automatic one (cloudprober.go:218-226).

…metrics opt-out

Three things the page relied on but never stated:

  - `/etc/cloudprober.cfg` is the default config path, and an empty config is
    the fallback when it's absent. This is what makes the bare `cloudprober`
    in "Your First Run" produce only system metrics, and it's why the Docker
    command mounts the config where it does -- both were unexplained.

  - The endpoint table listed 4 of the 8 endpoints cloudprober serves. Added
    /config-parsed, /config-running, /logs and /links, distinguished /config
    (as provided) from /config-parsed (after template and env expansion), and
    noted that /artifacts appears when a probe produces artifacts.

  - `--disable_sys_metrics`, and the fact that configuring your own SYSTEM
    probe suppresses the automatic one. The auto-added probe is the first
    thing the page shows, with no way offered to turn it off.

Endpoints verified against a running instance.
@manugarg
manugarg force-pushed the docs-getting-started-additions branch from 3736828 to 585e576 Compare August 29, 2026 05:28
@manugarg
manugarg changed the base branch from docs-getting-started-fixes to main August 29, 2026 05:28
@manugarg
manugarg merged commit 1f9d582 into main Aug 29, 2026
@manugarg
manugarg deleted the docs-getting-started-additions branch August 29, 2026 05:32
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.

1 participant