Skip to content

feat(orchestrator): ship bitcoind/monerod/electrs logs via promtail#1048

Open
binarybaron wants to merge 2 commits into
masterfrom
feat/orchestrator-promtail-node-logs
Open

feat(orchestrator): ship bitcoind/monerod/electrs logs via promtail#1048
binarybaron wants to merge 2 commits into
masterfrom
feat/orchestrator-promtail-node-logs

Conversation

@binarybaron
Copy link
Copy Markdown

Extends the promtail shipper (#1044) to also send the bitcoind, monerod, and electrs container logs to Loki. A docker-socket-proxy container holds the docker socket and exposes only the read-only container API, so promtail tails the daemons' stdout via docker_sd_configs without itself getting socket access. The node logs share host= with the asb logs and add job=node + container=.

Add a docker-socket-proxy service that exposes the read-only container
API so promtail can tail the node daemons' stdout without holding the
docker socket itself. Node logs share host=<instance> with the asb logs
and add job=node + container=<name>.
@binarybaron
Copy link
Copy Markdown
Author

bugbot run

promtail's docker_sd_configs calls the Docker /networks API to compute
the __meta_docker_network_* labels for every target. The socket proxy
(tecnativa/docker-socket-proxy) returns 403 for that path unless
NETWORKS=1 is set, which makes the whole target refresh fail and ships
zero node logs. POST stays disabled, so this only grants GET on
/networks - no container or network mutation is exposed.
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 5e2f406. Configure here.

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