|
|
@ -14,7 +14,7 @@ See also: |
|
|
|
Server needs Grafana's API key (http://<your_grafana_url>/org/apikeys) to query data from Grafana datasources. |
|
|
|
Server needs Grafana's API key (http://<your_grafana_url>/org/apikeys) to query data from Grafana datasources. |
|
|
|
API key role needs only `Viewer` access. |
|
|
|
API key role needs only `Viewer` access. |
|
|
|
|
|
|
|
|
|
|
|
### Docker installation |
|
|
|
### Docker |
|
|
|
|
|
|
|
|
|
|
|
Example of running hastic-server in Docker: |
|
|
|
Example of running hastic-server in Docker: |
|
|
|
|
|
|
|
|
|
|
@ -23,7 +23,7 @@ docker build -t hastic-server . |
|
|
|
docker run -d --name hastic-server -p 80:8000 -e HASTIC_API_KEY=<your_grafana_api_key> hastic-server |
|
|
|
docker run -d --name hastic-server -p 80:8000 -e HASTIC_API_KEY=<your_grafana_api_key> hastic-server |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
### Linux installation |
|
|
|
### Linux |
|
|
|
|
|
|
|
|
|
|
|
#### Environment variables |
|
|
|
#### Environment variables |
|
|
|
|
|
|
|
|
|
|
@ -38,16 +38,22 @@ You need in your system: |
|
|
|
* [python3 python3-pip](https://www.python.org/downloads/) |
|
|
|
* [python3 python3-pip](https://www.python.org/downloads/) |
|
|
|
* curl gnupg git make g++ |
|
|
|
* curl gnupg git make g++ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Intallation |
|
|
|
|
|
|
|
```bash |
|
|
|
|
|
|
|
pip3 install pandas seglearn scipy tsfresh |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
git clone https://github.com/hastic/hastic-server.git |
|
|
|
|
|
|
|
cd ./hastic-server/server |
|
|
|
|
|
|
|
npm install |
|
|
|
|
|
|
|
npm run build |
|
|
|
|
|
|
|
|
|
|
|
Example of running hastic-server on Debian / Ubuntu host: |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Run |
|
|
|
```bash |
|
|
|
```bash |
|
|
|
$ pip3 install pandas seglearn scipy tsfresh |
|
|
|
|
|
|
|
$ export HASTIC_API_KEY=<your_grafana_api_key> |
|
|
|
$ export HASTIC_API_KEY=<your_grafana_api_key> |
|
|
|
$ export HASTIC_PORT=<port_you_want_to_run_server_on> |
|
|
|
$ export HASTIC_PORT=<port_you_want_to_run_server_on> |
|
|
|
|
|
|
|
|
|
|
|
$ git clone https://github.com/hastic/hastic-server.git |
|
|
|
cd ./hastic-server/server |
|
|
|
$ cd hastic-server/server |
|
|
|
npm start |
|
|
|
$ npm install && npm run build |
|
|
|
|
|
|
|
$ npm start |
|
|
|
|
|
|
|
``` |
|
|
|
``` |
|
|
|