loki

Reference for the `loki` adapter.

loki · adapter · run nanook doc loki for the same content in your terminal.

Pushes metrics as log lines to Grafana Loki.

Options

OptionTypeDefaultDescription
urlstringrequired 🔒Loki push URL
tenantstring— 🔒optional X-Scope-OrgID tenant header
timeoutstring10request timeout in seconds

Examples

Local Loki instance

[[adapters]]
kind = "loki"
[adapters.opts]
url = "http://localhost:3100/loki/api/v1/push"

Multi-tenant Loki with tenant header

[[adapters]]
kind = "loki"
[adapters.opts]
url = "http://loki.internal/loki/api/v1/push"
tenant = "ops"