Skip to content

Prometheus Write Input

Lorenzo Mangani edited this page Jan 21, 2022 · 13 revisions


Prometheus Remote Write

cLoki implements experimental support for the Prometheus Remote Write API (Protobuf WriteRequest format)

API Endpoints

  • api/v1/prom/remote/write
  • api/prom/remote/write (alias)

image

Testing

Use the promremote client to test the input.

promremote -t=__name__:foo_bar -t=biz:baz -d=now,1415.92

Usage

Write

Store data from Prometheus instances using the remote_write API

# Remote write configuration
remote_write:
  - url: "http://cloki:3100/api/v1/write"

Read

Stored Metrics can be accessed using the cloki (unwrap_value) function. PromQL support is in our roadmap.

image

Clone this wiki locally