prometheus-query

Prometheus HTTP query client


Keywords
metrics, prometheus
License
Apache-2.0

Documentation

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