Skip to content

Commit f00725b

Browse files
committed
#115 Deploy Loki
1 parent 85df97d commit f00725b

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
apiVersion: 1
22
datasources:
3+
34
- name: Prometheus
45
label: Prometheus
56
type: prometheus
67
access: proxy
78
url: http://${ITMO_DATING_PROMETHEUS_HOST}:9090
89
isDefault: true
10+
11+
- name: Loki
12+
label: Loki
13+
type: loki
14+
access: proxy
15+
url: http://${ITMO_DATING_LOKI_HOST}:3100

compose.yml

+9
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,13 @@ services:
177177
- prometheus-data:/prometheus
178178
tty: true
179179
hostname: prometheus.dating.se.ifmo.ru
180+
loki:
181+
image: grafana/loki
182+
command: -config.file=/etc/loki/local-config.yaml
183+
volumes:
184+
- loki-data:/loki
185+
tty: true
186+
hostname: loki.dating.se.ifmo.ru
180187
grafana:
181188
image: ghcr.io/secs-dev/itmo-dating-grafana:latest
182189
build:
@@ -185,6 +192,7 @@ services:
185192
GF_SECURITY_ADMIN_USER: ${ITMO_DATING_GRAFANA_ADMIN_USER?:err}
186193
GF_SECURITY_ADMIN_PASSWORD: ${ITMO_DATING_GRAFANA_ADMIN_PASSWORD?:err}
187194
ITMO_DATING_PROMETHEUS_HOST: prometheus.dating.se.ifmo.ru
195+
ITMO_DATING_LOKI_HOST: loki.dating.se.ifmo.ru
188196
volumes:
189197
- grafana-data:/var/lib/grafana
190198
tty: true
@@ -201,4 +209,5 @@ volumes:
201209
minio-data:
202210
consul-data:
203211
prometheus-data:
212+
loki-data:
204213
grafana-data:

0 commit comments

Comments
 (0)