Grafana Loki HTTP API

Query and push logs to Grafana Loki. Endpoints include `/loki/api/v1/push` (log ingestion), `/loki/api/v1/query` and `/query_range` (LogQL), `/loki/api/v1/labels`, `/loki/api/v1/series`, `/loki/api/v1/tail` (websocket streaming), plus ruler, status, and admin endpoints. Prometheus-style label model applied to log streams.

Grafana Loki HTTP API is one of 20 APIs that Grafana publishes on the APIs.io network.

Tagged areas include Observability, Loki, Logs, and LogQL. The published artifact set on APIs.io includes API documentation.

API entry from apis.yml

apis.yml Raw ↑
aid: grafana-com:loki-http-api
name: Grafana Loki HTTP API
tags:
- Observability
- Loki
- Logs
- LogQL
humanURL: https://grafana.com/docs/loki/latest/reference/loki-http-api/
properties:
- url: https://grafana.com/docs/loki/latest/reference/loki-http-api/
  type: Documentation
- url: https://github.com/grafana/loki
  type: SourceCode
description: Query and push logs to Grafana Loki. Endpoints include `/loki/api/v1/push` (log ingestion),
  `/loki/api/v1/query` and `/query_range` (LogQL), `/loki/api/v1/labels`, `/loki/api/v1/series`, `/loki/api/v1/tail`
  (websocket streaming), plus ruler, status, and admin endpoints. Prometheus-style label model applied
  to log streams.