prorm API Reference
    Preparing search index...

    Class PrometheusStore

    PrometheusStore wraps Prometheus's read-only HTTP query API (PromQL instant/range queries plus series/label metadata lookups) behind the NoSqlStore lifecycle. It performs no writes - Prometheus ingests data by scraping targets, not by client-side pushes.

    Implements

    Index
    name: "prometheus" = 'prometheus'

    The name of the store (e.g. 'mongodb', 'redis', 'dynamodb')

    library: "fetch" = 'fetch'

    The client library being used

    • Runs a PromQL instant query at a single point in time via GET /api/v1/query. Returns the data payload (result type + result).

      Parameters

      • promql: string
      • Optionaltime: string | number

      Returns Promise<any>

    • Runs a PromQL range query over [start, end] at step resolution via GET /api/v1/query_range. Returns the data payload (matrix result).

      Parameters

      • promql: string
      • options: RangeQueryOptions

      Returns Promise<any>

    • Finds series matching one or more PromQL series selectors via GET /api/v1/series. Returns the array of matching label sets.

      Parameters

      • match: string | string[]

      Returns Promise<any>

    • Lists the distinct values of a label via GET /api/v1/label/<label>/values. Returns the array of values.

      Parameters

      • label: string

      Returns Promise<any>