Skip to content

docs: monitoring.md Prometheus troubleshooting contradicts compose.yaml's user: "0" setting #315

Description

@Sertug17

Summary

The "Prometheus is restarting with a permissions error" section in docs/monitoring.md instructs operators to run:

sudo chown -R 65534:65534 "$ARC_MONITORING"/prometheus-data

However, the compose.yaml provided in the same guide sets user: "0" on the Prometheus service, which runs Prometheus as root. Root always has write access to the bind-mounted ./prometheus-data directory, so the described UID 65534 write-permission error cannot occur when following the guide as written.

The troubleshooting step applies only to operators who remove user: "0" (a reasonable security hardening step), but the guide does not explain this connection, making the section misleading.

Fix

Update the troubleshooting section to note that user: "0" in the provided compose config prevents this error, and that the chown step is relevant only when Prometheus runs as a non-root user.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions