Skip to content

Commit

Permalink
PMM-9315 Add a query example
Browse files Browse the repository at this point in the history
  • Loading branch information
ademidoff committed Nov 8, 2024
1 parent 0e807dd commit 42780b0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build/ansible/roles/loki/files/Dockerfile.loki
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@ EXPOSE 3100
# -H "Content-Type: application/json" \
# -d '{"streams": [{ "stream": { "foo": "bar2" }, "values": [ [ "1730718238000000000", "fizzbuzz" ] ] }]}' \
# "http://localhost:3100/loki/api/v1/push"

# To query the data:
# curl -X GET -k -G -H "Content-Type: application/json" --data-urlencode 'query=rate({job="nginx"}[10s])' "http://localhost:3100/loki/api/v1/query"

0 comments on commit 42780b0

Please sign in to comment.