ChronixDB / chronix.grafana

The plugin for Grafana to integrate Chronix
Apache License 2.0
22 stars 4 forks source link

Installation doesn't work #23

Closed phxql closed 7 years ago

phxql commented 7 years ago

Hi, I can't get the Chronix Datasource to work.

Steps i have done:

  1. Installed Grafana
  2. cd grafana-3.1.1-1470047149/public/app/plugins/datasource/
  3. git clone git@github.com:ChronixDB/chronix.grafana.git
  4. Start grafana: ./bin/grafana-server
  5. Add Chronix datasource

The following error appears in a red bubble: "Plugin Error Error loading http://localhost:3000/public/app/plugins/datasource/chronix/module.js"

What am I doing wrong?

phxql commented 7 years ago

I think i got it working with:

  1. Install plugin in grafana-3.1.1-1470047149/public/app/plugins/datasource/chronix
  2. run npm install
  3. run npm run build
  4. move contents from dist folder to grafana-3.1.1-1470047149/public/app/plugins/datasource/chronix
FlorianLautenschlager commented 7 years ago

@defaude could you confirm this?

defaude commented 7 years ago

Ya, the install doc is still b0rked. Will update that right away :)

phxql commented 7 years ago

Thanks, will try that!

defaude commented 7 years ago

No need to do the whole npm jazz if you just want to use chronix.grafana. Since there's a dist folder in the checked out repo, Grafana will automagically use that content.

defaude commented 7 years ago

Next step: Tell the Grafana Marketplace to use the tags / releases from this repo ;)

FlorianLautenschlager commented 7 years ago

Prior to this we have to do some "basic" stuff :sweat_smile:

defaude commented 7 years ago

@phxql works now?

phxql commented 7 years ago

Nope.

Installed grafana, created data/plugins and ran a git clone in that. (the git workspace is now in /home/moe/tmp/grafana-3.1.1-1470047149/data/plugins/chronix.grafana/)

On the datasource screen in Grafana the Chronix datasource isn't listed.

defaude commented 7 years ago

Aaah wait. The whole "copy to data/plugins/" thing should read as "copy to your grafana installation's plugin directory" ;)

On Linux (depending how you've installed it), the plugins directory might be /var/lib/grafana/plugins - what happens if you clone Chronix.grafana into that directory?

phxql commented 7 years ago
INFO[11-16|11:08:32] Path Plugins                             logger=settings path=data/plugins
  1. cd data/plugins
  2. git clone git@github.com:ChronixDB/chronix.grafana.git
  3. Works

Thanks! Should i provide a pull request for the readme?

FlorianLautenschlager commented 7 years ago

Yeah, feel free!

FlorianLautenschlager commented 7 years ago

@phxql could you please provide a pr closing this issue?

phxql commented 7 years ago

Readme has already been updated (1c1bf1983885759193150e2995bcd0049029e1e0). Issue is resolved.