Skip to content

docs: clarify metrics endpoint and non-root logging#6

Merged
raffaelschneider merged 1 commit into
mainfrom
docs/metrics-and-logging-notes
Jun 7, 2026
Merged

docs: clarify metrics endpoint and non-root logging#6
raffaelschneider merged 1 commit into
mainfrom
docs/metrics-and-logging-notes

Conversation

@raffaelschneider

Copy link
Copy Markdown
Contributor

Summary

Follows up the code fixes in zentinelproxy/zentinel#255 and #256 (and the umbrella report #254) by aligning the user-facing docs with the new behavior.

  • Observability (configuration/observability.md):
    • The metrics endpoint is now a dedicated listener on metrics.address, separate from route listeners — note that it can be bound to an internal interface to keep it private, and that the proxy logs Metrics server listening … (or a loud failure) at startup.
    • The error-log default now carries a non-root / container caveat: if /var/log/zentinel isn't writable, file logging is skipped with a warning and the proxy continues (errors still go to stdout). Guidance to log to stdout in containers or mount a writable volume.
  • Docker (deployment/docker.md): the image runs non-root and the bundled config logs to stdout/stderr, so docker logs works without a volume; /var/log/zentinel is only needed (and must be writable) when file logging is explicitly enabled — which is why the reporter's tmpfs attempt failed.

Test plan

  • Prose-only changes; no examples removed
  • Reviewer eyeballs rendered pages once deploy preview builds

Refs zentinelproxy/zentinel#254, zentinelproxy/zentinel#255, zentinelproxy/zentinel#256

Reflects the proxy fixes in zentinelproxy/zentinel#255 and #256:

- Observability: note that the metrics endpoint is a dedicated listener
  (separate from route listeners, bindable to an internal address) and
  logs a startup line; document that file logging is skipped with a
  warning when the process can't write /var/log/zentinel (non-root /
  container), with stdout and writable-volume guidance.
- Docker: explain that the image runs non-root and logs to stdout by
  default, so docker logs works without a volume; /var/log/zentinel is
  only needed (and must be writable) when file logging is enabled.

Refs zentinelproxy/zentinel#254
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying zentinelproxy-io-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: ca61457
Status: ✅  Deploy successful!
Preview URL: https://577ce9a9.zentinelproxy-io-docs.pages.dev
Branch Preview URL: https://docs-metrics-and-logging-not.zentinelproxy-io-docs.pages.dev

View logs

@raffaelschneider raffaelschneider merged commit 87941ca into main Jun 7, 2026
3 checks passed
@raffaelschneider raffaelschneider deleted the docs/metrics-and-logging-notes branch June 7, 2026 07:16
raffaelschneider added a commit that referenced this pull request Jun 7, 2026
- Snapshot the current top-level docs into `content/v/26.06/` so the
  version picker can serve a frozen 26.06 archive.
- Update `config.toml` version picker: `current = "26.06"`, add a 26.06
  (latest) entry, and demote 26.05 to `/v/26.05/` archive. 26.06 inherits
  the 26.06_1 docs that already landed: metrics endpoint as a dedicated
  listener with non-root logging caveats (#6), upstream `target` syntax
  normalization (#5), and the route-level circuit-breaker / retry-policy
  not-yet-implemented banner (#7).

Refs zentinelproxy/zentinel#254 #255 #256 #258, release 26.06_1 (0.6.15).
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