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.

45 lines
1.0 KiB

5 years ago
# tsdb-kit
TSDB-kit is a node.js library and CLI-tool for querying timeseries-datasources.
5 years ago
2 years ago
## Features
5 years ago
2 years ago
- 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.
5 years ago
2 years ago
## Supported datasources
### Direct
2 years ago
* Prometheus
2 years ago
### Grafana
5 years ago
* Influxdb
* Graphite
* Prometheus
4 years ago
* PostgreSQL / TimescaleDB / MySQL
5 years ago
* ElasticSearch
2 years ago
Please write us at ping@corpglory.com if you want your datasource to be supported
2 years ago
## Usage
### Lib (TODO)
### CLI
For now, CLI supports only direct Prometheus queries
For example:
2 years ago
`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`
2 years ago
2 years ago
## Development (TODO)
5 years ago
## Projects based on library
* [grafana-data-exporter](https://github.com/CorpGlory/grafana-data-exporter)
* [Hastic](https://github.com/hastic/hastic-server)