Agents push to Loki over the mesh IP, not host loopback
A containerized Alloy agent can't reach the host's 127.0.0.1, so even the beta-local agent must push to beta's wg0 address (10.10.0.2:3100), not 127.0.0.1. Fix the beta example in the README and the agent compose header.
This commit is contained in:
parent
7e8a484ad5
commit
710d9d4fec
2 changed files with 5 additions and 4 deletions
|
|
@ -84,8 +84,9 @@ docker exec -u git <forgejo-container> forgejo admin auth add-oauth \
|
|||
|
||||
```bash
|
||||
cd thermograph-observability/alloy
|
||||
# beta pushes to local Loki; prod & desktop push over the mesh:
|
||||
# beta: LOKI_URL=http://127.0.0.1:3100/loki/api/v1/push ALLOY_NODE=beta
|
||||
# Every node (beta included) pushes to Loki over the mesh IP — a containerized
|
||||
# agent can't reach the host's 127.0.0.1, but it can reach beta's wg0 address:
|
||||
# beta: LOKI_URL=http://10.10.0.2:3100/loki/api/v1/push ALLOY_NODE=beta
|
||||
# prod: LOKI_URL=http://10.10.0.2:3100/loki/api/v1/push ALLOY_NODE=prod
|
||||
# desktop: LOKI_URL=http://10.10.0.2:3100/loki/api/v1/push ALLOY_NODE=dev
|
||||
ALLOY_NODE=prod LOKI_URL=http://10.10.0.2:3100/loki/api/v1/push \
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@
|
|||
# Per-node config comes from the environment (an .env file next to this, or
|
||||
# exported before `up`):
|
||||
# ALLOY_NODE this node's label: prod | beta | dev
|
||||
# LOKI_URL push endpoint. On beta: http://127.0.0.1:3100/loki/api/v1/push
|
||||
# Elsewhere (over wg0): http://10.10.0.2:3100/loki/api/v1/push
|
||||
# LOKI_URL push endpoint. All nodes push over the mesh:
|
||||
# http://10.10.0.2:3100/loki/api/v1/push
|
||||
#
|
||||
# Deploy on a node:
|
||||
# ALLOY_NODE=prod LOKI_URL=http://10.10.0.2:3100/loki/api/v1/push \
|
||||
|
|
|
|||
Loading…
Reference in a new issue