##// END OF EJS Templates
loki: temp solution to run loki locally
super-admin -
Show More
@@ -5,7 +5,8 b' x-logging: &custom-logging'
5 # NOTE: loki logging driver ONLY works for host type networks...
5 # NOTE: loki logging driver ONLY works for host type networks...
6 driver: loki
6 driver: loki
7 options:
7 options:
8 loki-url: "http://loki:3100/loki/api/v1/push"
8 #loki-url: "http://loki:3100/loki/api/v1/push"
9 loki-url: "http://127.0.0.1:3100/loki/api/v1/push"
9 loki-retries: "5"
10 loki-retries: "5"
10 loki-timeout: "1s"
11 loki-timeout: "1s"
11 loki-max-backoff: "800ms"
12 loki-max-backoff: "800ms"
@@ -291,6 +292,7 b' services:'
291 - confvolume:/etc/rhodecode/conf
292 - confvolume:/etc/rhodecode/conf
292 - logvolume:/var/log/rhodecode
293 - logvolume:/var/log/rhodecode
293 - rc_reposvolume:/var/opt/rhodecode_repo_store
294 - rc_reposvolume:/var/opt/rhodecode_repo_store
295 - rc_datavolume:/var/opt/rhodecode_data
294
296
295 logging:
297 logging:
296 *custom-logging
298 *custom-logging
@@ -11,7 +11,8 b' x-logging: &custom-logging'
11 # debug: sudo journalctl -u docker.service | grep loki
11 # debug: sudo journalctl -u docker.service | grep loki
12 driver: loki
12 driver: loki
13 options:
13 options:
14 loki-url: "http://loki:3100/loki/api/v1/push"
14 #loki-url: "http://loki:3100/loki/api/v1/push"
15 loki-url: "http://127.0.0.1:3100/loki/api/v1/push"
15 loki-retries: "5"
16 loki-retries: "5"
16 loki-timeout: "1s"
17 loki-timeout: "1s"
17 loki-max-backoff: "800ms"
18 loki-max-backoff: "800ms"
@@ -103,8 +103,10 b' services:'
103 loki:
103 loki:
104 image: grafana/loki:2.7.1
104 image: grafana/loki:2.7.1
105 restart: always
105 restart: always
106 # ports:
106 ports:
107 # - "3100:3100"
107 # Loki port is the only one that needs explicitly
108 # be exposed because of logging driver host-only woking mode
109 - "3100:3100"
108 # - "9095:9095"
110 # - "9095:9095"
109 command: [
111 command: [
110 "-config.file=/etc/loki/loki-config.yaml"
112 "-config.file=/etc/loki/loki-config.yaml"
@@ -5,7 +5,8 b' x-logging: &custom-logging'
5 # NOTE: loki logging driver ONLY works for host type networks...
5 # NOTE: loki logging driver ONLY works for host type networks...
6 driver: loki
6 driver: loki
7 options:
7 options:
8 loki-url: "http://loki:3100/loki/api/v1/push"
8 #loki-url: "http://loki:3100/loki/api/v1/push"
9 loki-url: "http://127.0.0.1:3100/loki/api/v1/push"
9 loki-retries: "5"
10 loki-retries: "5"
10 loki-timeout: "1s"
11 loki-timeout: "1s"
11 loki-max-backoff: "800ms"
12 loki-max-backoff: "800ms"
@@ -5,7 +5,8 b' x-logging: &custom-logging'
5 # NOTE: loki logging driver ONLY works for host type networks...
5 # NOTE: loki logging driver ONLY works for host type networks...
6 driver: loki
6 driver: loki
7 options:
7 options:
8 loki-url: "http://loki:3100/loki/api/v1/push"
8 #loki-url: "http://loki:3100/loki/api/v1/push"
9 loki-url: "http://127.0.0.1:3100/loki/api/v1/push"
9 loki-retries: "5"
10 loki-retries: "5"
10 loki-timeout: "1s"
11 loki-timeout: "1s"
11 loki-max-backoff: "800ms"
12 loki-max-backoff: "800ms"
General Comments 0
You need to be logged in to leave comments. Login now