Skip to content

Commit

Permalink
PMM-9315 Expose Loki on port 3100
Browse files Browse the repository at this point in the history
  • Loading branch information
ademidoff committed Nov 8, 2024
1 parent f44d7a9 commit 0e807dd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions build/ansible/roles/loki/files/Dockerfile.loki
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 1 addition & 1 deletion build/ansible/roles/loki/files/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 0e807dd

Please sign in to comment.