JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 13671
  • Score
    100M100P100Q168277F

A Javascript client for Prometheus query API

Package Exports

  • prometheus-query

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (prometheus-query) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Welcome to prometheus-query-js 👋

![NPM version](https://npmjs.org/package/prometheus-query"><img src="https://img.shields.io/npm/v/prometheus-query.svg?style=flat-square) Version License: MIT Twitter: samuelberthe

A Javascript client for Prometheus query and admin API.

⚠️ This library does not export metrics. Please use prom-client instead.

✨ Features

  • Thin & minimal low-level HTTP client to interact with Prometheus's API
  • Works both on the browser and node.js
  • UMD compatible, you can use it with any module loader
  • Supports query and admin APIs

🚀 Install

NodeJS

npm install prometheus-query

Browser

💡 Usage

✅ Run tests

npm run test

Contribute

The Prometheus Query client is open source and contributions from community (you!) are welcomed.

There are many ways to contribute: writing code, documentation, reporting issues...

Author

👤 Samuel Berthe

Show your support

Give a ⭐️ if this project helped you!

![support us](https://img.shields.io/badge/become-a patreon%20us-orange.svg?cacheSeconds=2592000)