From 0e807ddd0dda895488a8f04ec05b91177f11935c Mon Sep 17 00:00:00 2001 From: Alex Demidoff Date: Fri, 8 Nov 2024 16:20:00 +0300 Subject: [PATCH] PMM-9315 Expose Loki on port 3100 --- build/ansible/roles/loki/files/Dockerfile.loki | 11 +++++++++++ build/ansible/roles/loki/files/config.yml | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/build/ansible/roles/loki/files/Dockerfile.loki b/build/ansible/roles/loki/files/Dockerfile.loki index 4f187d4221..1b9c23d567 100644 --- a/build/ansible/roles/loki/files/Dockerfile.loki +++ b/build/ansible/roles/loki/files/Dockerfile.loki @@ -14,3 +14,14 @@ COPY build/ansible /opt/ansible RUN ansible-playbook -vvv -i 'localhost,' -c local /opt/ansible/pmm-docker/loki.yml USER pmm + +EXPOSE 3100 + +# To launch it: +# `docker run -d --name loki --platform=linux/amd64 -p 3100:3100 -p 443:8443 perconalab/pmm-server:loki-3.2` + +# To upload data to Loki: +# curl -X POST -k \ +# -H "Content-Type: application/json" \ +# -d '{"streams": [{ "stream": { "foo": "bar2" }, "values": [ [ "1730718238000000000", "fizzbuzz" ] ] }]}' \ +# "http://localhost:3100/loki/api/v1/push" diff --git a/build/ansible/roles/loki/files/config.yml b/build/ansible/roles/loki/files/config.yml index 8e8f7c674b..9b17cb14d0 100644 --- a/build/ansible/roles/loki/files/config.yml +++ b/build/ansible/roles/loki/files/config.yml @@ -7,7 +7,7 @@ server: grpc_server_max_concurrent_streams: 1000 common: - instance_addr: 127.0.0.1 + instance_addr: 0.0.0.0 path_prefix: /srv/loki storage: filesystem: