You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rozetko 67ac4e073f 2.0.4 1 year ago
.vscode small fxs 4 years ago
spec tests for Grafana SQL aggregation macros 1 year ago
src fix grafana errors not caught by tsdb-kit 1 year ago
.gitignore jest tests back + vscode 4 years ago
.npmignore upd npmignore 2 years ago
.travis.yml add src 4 years ago
LICENSE Update LICENSE 4 years ago Prometheus: support auth 2 years ago
bin.tsconfig.json fix bin build 2 years ago
jest.config.js jest tests back + vscode 4 years ago
lib.tsconfig.json fix bin build 2 years ago
package.json 2.0.4 1 year ago
webpack.config.js shabang to bin 2 years ago
yarn.lock init CLI arguments 2 years ago


TSDB-kit is a node.js library and CLI-tool for querying timeseries-datasources.


  • can query datasources directly or using Grafana as proxy
  • can be used as a lib from your node.js-code or as a CLI-tool
  • user gets a unified interface to all datasources. Library gives single output format: fields order, time units, etc.

Supported datasources


  • Prometheus


  • Influxdb
  • Graphite
  • Prometheus
  • PostgreSQL / TimescaleDB / MySQL
  • ElasticSearch

Please write us at if you want your datasource to be supported


Lib (TODO)


For now, CLI supports only direct Prometheus queries

For example:

npx @corpglory/tsdb-kit -U http://localhost:9090 -q '100-(avg by (instance) (irate(node_cpu_seconds_total{mode="idle"}[5m])) * 100)' -u my_user -p my_password

Development (TODO)

Projects based on library