Skip to content

Development

rozetko edited this page Mar 13, 2019 · 3 revisions

Install from source

Note, that <GRAFANA_PATH>/data/plugins directory will NOT be present until grafana-server was started at least once!

Also possible to create directory manually by typing:

mkdir -p data/plugins
  • Navigate to /plugins directory in <GRAFANA_PATH>/data
cd $GRAFANA_PATH/data/plugins
  • Clone the repository
git clone https://github.com/hastic/hastic-grafana-app.git
  • Navigate to /hastic-grafana-app directory
cd $GRAFANA_PATH/data/plugins/hastic-grafana-app
  • Install necessary dependencies
npm install
  • Build hastic grafana app
npm run build
  • Restart grafana-server
    • For grafana installed via Standalone Linux Binaries:
      • Stop any running instances of grafana-server
      • Start grafana-server by: $GRAFANA_PATH/bin/grafana-server
    • For grafana installed via Package Manager:
      • type in systemctl restart grafana-server