Skip to content
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
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ on:
jobs:
linux:
runs-on: ubuntu-latest
services:
athenna_loki:
image: grafana/loki:2.9.1
volumes:
- ./loki-config.yaml:/etc/loki/loki-config.yaml
ports:
- '3100:3100'
strategy:
matrix:
node-version:
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -136,3 +136,6 @@ build

# MacOS folder mapper file
.DS_Store

# Docker volumes
.docker
27 changes: 27 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
version: '3'

services:
athenna_loki:
image: grafana/loki:2.9.1
ports:
- "3100:3100"
volumes:
- .docker/loki_data:/tmp/loki
- ./loki-config.yaml:/etc/loki/loki-config.yaml
command:
- "-config.file=/etc/loki/loki-config.yaml"

athenna_grafana:
image: grafana/grafana:9.3.2
ports:
- "3000:3000"
depends_on:
- athenna_loki
environment:
GF_SECURITY_ADMIN_PASSWORD: "admin"
volumes:
- grafana-storage:/var/lib/grafana

volumes:
loki-data:
grafana-storage:
35 changes: 35 additions & 0 deletions loki-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
auth_enabled: false

server:
http_listen_port: 3100
grpc_listen_port: 9096
log_level: debug

common:
instance_addr: 127.0.0.1
path_prefix: /tmp/loki
storage:
filesystem:
chunks_directory: /tmp/loki/chunks
rules_directory: /tmp/loki/rules
replication_factor: 1
ring:
kvstore:
store: inmemory

query_range:
results_cache:
cache:
embedded_cache:
enabled: true
max_size_mb: 100

schema_config:
configs:
- from: 2020-10-24
store: tsdb
object_store: filesystem
schema: v13
index:
prefix: index_
period: 24h
Loading