Loki Query via Grafana (Relative Times) TaskSet

Icon 1 1 Troubleshooting Commands

Icon 2 Contributed by stewartshea

Icon 2 Codecollection: rw-generic-codecollection


This CodeBundle queries Loki (via Grafana) using relative times like 30m, 2h, or 2d, which are automatically converted to nanosecond timestamps. If HEADERS is provided, '-K ./HEADERS' is appended for authentication. If POST_PROCESS is provided, the command output is piped to that command (e.g., jq).

Tasks:
  • TASK_TITLE