Skip to content

Prometheus Write Input

Lorenzo Mangani edited this page Aug 7, 2022 · 13 revisions


Prometheus Remote Write

qryn 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://qryn:3100/api/v1/write"

Read

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

sum(rate({type="clickhouse"}[5m])) by (call)

image

Examples: LogQL Range Aggregations

Clone this wiki locally