Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add loki and promtail to observability #11

Merged
merged 2 commits into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:

jobs:
build_and_run:
runs-on: ubuntu-8
runs-on: ubuntu-latest

steps:
- name: Checkout
Expand Down
17 changes: 17 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,23 @@ services:
depends_on:
- prometheus

loki:
image: grafana/loki:3.1.1
restart: unless-stopped
volumes:
- ./loki:/etc/loki
ports:
- 3200:3200
command: -config.file=/etc/loki/config.yaml

promtail:
image: grafana/promtail:3.1.1
restart: unless-stopped
volumes:
- ./promtail:/etc/promtail
- /var/run/docker.sock:/var/run/docker.sock # Mount Docker socket to read container logs
command: -config.file=/etc/promtail/config.yaml

volumes:
l1data:
consensus:
Expand Down
Loading
Loading