From 5ed7fcb570050a2c529434a3b512a39f8974e6d4 Mon Sep 17 00:00:00 2001 From: geleeroyale Date: Mon, 9 Oct 2023 12:30:42 +0000 Subject: [PATCH 1/2] ake script executable --- install-loki-docker-log-driver.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 install-loki-docker-log-driver.sh diff --git a/install-loki-docker-log-driver.sh b/install-loki-docker-log-driver.sh old mode 100644 new mode 100755 From e4c38a4efcd1421f088a90096f2094646679d76d Mon Sep 17 00:00:00 2001 From: geleeroyale Date: Mon, 9 Oct 2023 14:33:53 +0200 Subject: [PATCH 2/2] Update install-loki-docker-log-driver.sh --- install-loki-docker-log-driver.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install-loki-docker-log-driver.sh b/install-loki-docker-log-driver.sh index 6688e74..f954057 100755 --- a/install-loki-docker-log-driver.sh +++ b/install-loki-docker-log-driver.sh @@ -12,7 +12,11 @@ docker plugin install grafana/loki-docker-driver:2.9.1 --alias loki --grant-all- # Step 4: Check if /etc/docker/daemon.json exists and has the required content REQUIRED_CONTENT='{ "debug": true, - "log-driver": "loki" + "log-driver": "loki", + "log-opts": { + "loki-url": "https://:@logs-us-west1.grafana.net/loki/api/v1/push", + "loki-batch-size": "400" + } }' if [[ -e /etc/docker/daemon.json ]]; then