{"repo":"samber/prometheus-query-js","free":true,"listed":false,"github":"https://github.com/samber/prometheus-query-js","clone":"git clone https://github.com/samber/prometheus-query-js.git","description":"📊 A Javascript client for Prometheus query API","language":"TypeScript","stars":74,"topics":["prometheus","metrics","tsdb","timeseries","query","client","api","javascript","admin","series"],"license":"MIT","category":"analytics","readme_excerpt":"Welcome to prometheus-query 👋 A Javascript client for Prometheus query API. ✨ 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 ⚠️ This library does not export metrics. Please use prom-client instead. For building shiny Charts, you may like this chartjs plugin: samber/chartjs-plugin-datasource-prometheus. Sponsored by: 100% OpenTelemetry-native observability platform Simple to use, built on open standards, and designed for full cost control 🚀 Install NodeJS Upgrade from v2 to v3 - prometheus-query-js has been recoded into Typescript. - Type definitions. - API update: - PrometheusQuery is not the default export anymore. - PrometheusQuery has been renamed as PrometheusDriver . - See examples Browser 💡 Quick start Instant query Output: Range query Output: List series matching query Output: List all active alerts Output: Authenticated query Using basic auth: Using cookies: Proxy Hook HTTP requests and responses 🔐 Security advisory If you open a Prometheus instance on Internet, it would be a good idea to block some routes. Start by blocking /api/v1/admin . I'm pretty sure allowing only /api/v1/query and /api/v1/query range will match your needs. Also don't use Prometheus as a multitenant timeseries database! At your own risk... 😘 🤝 Contributing The Prometheus Query client is open source and contributions from the com","default_branch":null,"files":null,"tree":[],"storefront":"/r/samber","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/samber/prometheus-query-js/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}