4 releases (breaking)

0.4.0 Apr 23, 2019
0.3.0 Apr 7, 2019
0.2.0 Mar 28, 2019
0.1.0 Mar 22, 2019

#103 in #prometheus

Apache-2.0

63KB
1.5K SLoC

prometheus-query

Asynchronous Prometheus library for the Prometheus V1 HTTP API. This library is nightly-only, and built using experimental futures-0.3 and async/await.

Status

This code is a WIP, and does not have rustdoc, examples, or unit/integration tests. It has two components:

  • A library that defines an async interface for making queries or commands
  • A cli that uses this library

Queries

The following query types are supported by the library:

  • Instant
  • Range
  • Series
  • Label names
  • Label values
  • Targets
  • Alertmanagers
  • Status
  • Config
  • Flags

Commands

The following commands are supported by the library:

  • Delete series
  • Snapshot
  • Clean tombstones

CLI

The CLI exposes the following queries/commands:

  • Instant
  • Range
  • Series
  • Label names
  • Label values
  • Targets
  • Alertmanagers
  • Status
  • Config
  • Flags
  • Delete series
  • Snapshot
  • Clean tombstones

Dependencies

~11–22MB
~332K SLoC