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
740213fef6
|
2 years ago | |
---|---|---|
.vscode | 4 years ago | |
spec | 2 years ago | |
src | 2 years ago | |
.gitignore | 4 years ago | |
.npmignore | 2 years ago | |
.travis.yml | 5 years ago | |
LICENSE | 4 years ago | |
README.md | 2 years ago | |
bin.tsconfig.json | 2 years ago | |
jest.config.js | 4 years ago | |
lib.tsconfig.json | 2 years ago | |
package.json | 2 years ago | |
webpack.config.js | 2 years ago | |
yarn.lock | 2 years ago |
README.md
tsdb-kit
TSDB-kit is a node.js library and CLI-tool for querying timeseries-datasources.
Features
- 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
Direct
- Prometheus
Grafana
- Influxdb
- Graphite
- Prometheus
- PostgreSQL / TimescaleDB / MySQL
- ElasticSearch
Please write us at ping@corpglory.com if you want your datasource to be supported
Usage
Lib (TODO)
CLI
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