Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

grafana-alloy-loki

diagram

alloy components (/config/config.alloy):

  • container discovery w/ label filtering
  • log capture (includes metadata like container_id and service_name)
  • push log lines to loki over http (and mutual tls, for experimentation)

running with docker

navigate to root directory of this repo...

  1. 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
  1. start the stack:
docker compose up

missing

todo: add loki data source to grafana config

About

logging with alloy & loki

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages