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 7b487f9fbb 1.2.0-beta2 2 years ago
.vscode small fxs 4 years ago
spec QueryService refactoring: 2 years ago
src init CLI arguments 2 years ago
.gitignore jest tests back + vscode 4 years ago
.npmignore upd npmignore 2 years ago
.travis.yml add src 5 years ago
LICENSE Update LICENSE 4 years ago
README.md upd readme 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 1.2.0-beta2 2 years ago
webpack.config.js shabang to bin 2 years ago
yarn.lock init CLI arguments 2 years ago

README.md

tsdb-kit

Node.js library and CLI-tool for querying timeseries-datasources from backend directly or using Grafana as proxy.

User gets a unified interface to all datasources. Library gives single output format: fields order, time units, etc.

Supported direct datasources

  • Prometheus

Supported Grafana datasources

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

Please write us at ping@corpglory.com if you want your datasource to be supported

CLI usage

For now, CLI supports only direct Prometheus queries without auth

Example:

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

Projects based on library