alloy components (/config/config.alloy):
- container discovery w/ label filtering
- log capture (includes metadata like
container_idandservice_name) - push log lines to loki over http (and mutual tls, for experimentation)
navigate to root directory of this repo...
- create the certs necessary for comms between alloy and nginx:
docker run --rm \
--entrypoint sh \
-v "$PWD/certs:/certs" \
-v "$PWD/generate-certs.sh:/usr/local/bin/generate-certs.sh:ro" \
alpine/openssl:latest -c /usr/local/bin/generate-certs.sh- start the stack:
docker compose uptodo: add loki data source to grafana config
