Skip to content

Commit d6977ff

Browse files
authored
Merge pull request #113 from AthennaIO/develop
feat: implement new Loki driver
2 parents 76efdb4 + 5d00b1e commit d6977ff

File tree

12 files changed

+326
-99
lines changed

12 files changed

+326
-99
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ on:
1111
jobs:
1212
linux:
1313
runs-on: ubuntu-latest
14+
services:
15+
athenna_loki:
16+
image: grafana/loki:2.9.1
17+
volumes:
18+
- ./loki-config.yaml:/etc/loki/loki-config.yaml
19+
ports:
20+
- '3100:3100'
1421
strategy:
1522
matrix:
1623
node-version:

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,3 +136,6 @@ build
136136

137137
# MacOS folder mapper file
138138
.DS_Store
139+
140+
# Docker volumes
141+
.docker

docker-compose.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
version: '3'
2+
3+
services:
4+
athenna_loki:
5+
image: grafana/loki:2.9.1
6+
ports:
7+
- "3100:3100"
8+
volumes:
9+
- .docker/loki_data:/tmp/loki
10+
- ./loki-config.yaml:/etc/loki/loki-config.yaml
11+
command:
12+
- "-config.file=/etc/loki/loki-config.yaml"
13+
14+
athenna_grafana:
15+
image: grafana/grafana:9.3.2
16+
ports:
17+
- "3000:3000"
18+
depends_on:
19+
- athenna_loki
20+
environment:
21+
GF_SECURITY_ADMIN_PASSWORD: "admin"
22+
volumes:
23+
- grafana-storage:/var/lib/grafana
24+
25+
volumes:
26+
loki-data:
27+
grafana-storage:

loki-config.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
auth_enabled: false
2+
3+
server:
4+
http_listen_port: 3100
5+
grpc_listen_port: 9096
6+
log_level: debug
7+
8+
common:
9+
instance_addr: 127.0.0.1
10+
path_prefix: /tmp/loki
11+
storage:
12+
filesystem:
13+
chunks_directory: /tmp/loki/chunks
14+
rules_directory: /tmp/loki/rules
15+
replication_factor: 1
16+
ring:
17+
kvstore:
18+
store: inmemory
19+
20+
query_range:
21+
results_cache:
22+
cache:
23+
embedded_cache:
24+
enabled: true
25+
max_size_mb: 100
26+
27+
schema_config:
28+
configs:
29+
- from: 2020-10-24
30+
store: tsdb
31+
object_store: filesystem
32+
schema: v13
33+
index:
34+
prefix: index_
35+
period: 24h

0 commit comments

Comments
 (0)