For the complete documentation index, see llms.txt. This page is also available as Markdown.

Loki

Connect Loki to the Pagerly SRE Agent to query and search logs.

What the Agent Can Do

  • Query logs using LogQL syntax

  • Search by labels, time range, and patterns

  • Discover available log labels and streams

Setup Instructions

  1. Get your Loki endpoint URL:

    • Grafana Cloud: Go to My Account > Grafana Cloud > Loki Details > copy URL and generate API key

    • Self-hosted: Your Loki instance URL (default port 3100)

  2. If authentication is required, get a bearer token or basic auth credentials

  3. Paste your Loki URL and credentials in the Pagerly dashboard

Required Credentials

Field
Description
Example

Loki URL

Your Loki endpoint URL

https://logs-prod-us-central1.grafana.net

Bearer Token (optional)

Required for Grafana Cloud

β€”

Context Prompt Tips

"Our logs use app=myservice label. Production logs have env=prod. Error logs are level=error."

Docs

Last updated