Skip to content

[Feature] Bind health check server to localhost #166

@EchtkPvL

Description

@EchtkPvL

I would like to be able to bind the health check server to localhost or disable it. As a workaround, I have set an invalid port, which causes the health check server to crash. This doesn't seem to have any side effects on the agent itself, but a configurable option would be the better solution.

# tail -fn+1 /var/log/monitoring-agent/monitoring-agent.log
[...]
2025/09/13 23:12:16 Health check server starting on port 80818
2025/09/13 23:12:16 Health check server error: listen tcp: address 80818: invalid port
2025/09/13 23:15:04 Found 54 Docker containers, collecting data

https://github.com/operacle/checke-server-agent/blob/main/agent/agent.go#L591

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