xObserve

  1. Variable
  2. Loki

Loki is a great product developed by Grafana, it’s like Prometheus but for logs. It’s a great tool to have in your observability stack.

In this doc, let’s see how to query variables from Loki.

Configture loki datasource

Create loki datasource is really easy:

loki-datasource

Query variables

Query variables from loki is very similar to Prometheus. So you can refer to Make dashboard more dynamic for more details.

Final result

loki-final1