From 04edce4614c8176d6d013c52524f743db8d0787e Mon Sep 17 00:00:00 2001
From: Carl Bergquist <carl@grafana.com>
Date: Thu, 6 Dec 2018 14:14:46 +0100
Subject: [PATCH] change default port for loki (#46)

* changes default port for loki

80 is a privileged port on linux which requires root access.
Which makes it harder to get started locally.

closes #40

* use grafana/grafana:master since it contains more fixes
---
 README.md                       | 2 +-
 docs/loki-local-config.yaml     | 3 +++
 docs/promtail-local-config.yaml | 2 +-
 3 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md
index 9f63039f..43fbacca 100644
--- a/README.md
+++ b/README.md
@@ -36,7 +36,7 @@ Grafana is Loki's UI, so you'll also want to run one of those:
 $ docker run -ti -p 3000:3000 -e "GF_EXPLORE_ENABLED=true" grafana/grafana:master
 ```
 
-In the Grafana UI (http://localhost:3000), log in with "admin"/"admin", add a new "Grafana Logging" datasource for `http://host.docker.internal:80`, then go to explore and enjoy!
+In the Grafana UI (http://localhost:3000), log in with "admin"/"admin", add a new "Grafana Logging" datasource for `http://host.docker.internal:3100`, then go to explore and enjoy!
 
 ## Usage Instructions
 
diff --git a/docs/loki-local-config.yaml b/docs/loki-local-config.yaml
index 6b9889e9..5d797f0a 100644
--- a/docs/loki-local-config.yaml
+++ b/docs/loki-local-config.yaml
@@ -1,5 +1,8 @@
 auth_enabled: false
 
+server:
+  http_listen_port: 3100
+
 ingester:
   lifecycler:
     interface_names:
diff --git a/docs/promtail-local-config.yaml b/docs/promtail-local-config.yaml
index 8c271d60..11eb46e0 100644
--- a/docs/promtail-local-config.yaml
+++ b/docs/promtail-local-config.yaml
@@ -6,7 +6,7 @@ positions:
   filename: /tmp/positions.yaml
 
 client:
-  url: http://localhost/api/prom/push
+  url: http://localhost:3100/api/prom/push
 
 scrape_configs:
 - job_name: system
-- 
GitLab