Difference between revisions of "Grafana"
Jump to navigation
Jump to search
Line 4: | Line 4: | ||
Requires a web server (Apache HTTPD, Nginx, ...) or Express (see below with [[Node.js]]) |
Requires a web server (Apache HTTPD, Nginx, ...) or Express (see below with [[Node.js]]) |
||
+ | =Installation= |
||
+ | <pre> |
||
+ | wget http://grafanarel.s3.amazonaws.com/grafana-1.8.1.tar.gz |
||
+ | tar xzvf grafana-1.8.1.tar.gz |
||
+ | mv grafana-1.8.1 grafana |
||
+ | cd grafana |
||
+ | mv config.sample.js config.js |
||
+ | </pre> |
||
+ | =Installation= |
||
+ | Edit config.js |
||
+ | <pre> |
||
+ | datasources: { |
||
+ | demo: { |
||
+ | type: 'influxdb', |
||
+ | url: "http://localhost:8086/db/demo", |
||
+ | username: 'root', |
||
+ | password: 'root' |
||
+ | }, |
||
+ | }, |
||
+ | </pre> |
||
+ | =Run= |
||
− | |||
+ | Add serveGrafana.js in ./grafana |
||
<pre> |
<pre> |
||
var connect = require('connect') |
var connect = require('connect') |
||
Line 15: | Line 36: | ||
app.use(serveStatic('.', {'index': ['index.html', 'index.htm']})) |
app.use(serveStatic('.', {'index': ['index.html', 'index.htm']})) |
||
app.listen(8080) |
app.listen(8080) |
||
+ | console.log('Serving Grafana Dashboard on http://localhost:8080'); |
||
</pre> |
</pre> |
||
Line 21: | Line 43: | ||
node serveGrafana.js |
node serveGrafana.js |
||
</pre> |
</pre> |
||
+ | |||
+ | Browse http://localhost:8080 |
||
+ | |||
+ | =Links= |
||
+ | * Grafana + [[InfluxDB]] + [[Collectd]] : http://vincent.composieux.fr/article/grafana-monitor-metrics-collected-by-collectd-into-influxdb |
Revision as of 21:53, 1 December 2014
An open source, feature rich metrics dashboard and graph editor for Graphite, InfluxDB & OpenTSDB Requires a web server (Apache HTTPD, Nginx, ...) or Express (see below with Node.js)
Installation
wget http://grafanarel.s3.amazonaws.com/grafana-1.8.1.tar.gz tar xzvf grafana-1.8.1.tar.gz mv grafana-1.8.1 grafana cd grafana mv config.sample.js config.js
Installation
Edit config.js
datasources: { demo: { type: 'influxdb', url: "http://localhost:8086/db/demo", username: 'root', password: 'root' }, },
Run
Add serveGrafana.js in ./grafana
var connect = require('connect') var serveStatic = require('serve-static') var app = connect() app.use(serveStatic('.', {'index': ['index.html', 'index.htm']})) app.listen(8080) console.log('Serving Grafana Dashboard on http://localhost:8080');
npm install connect serve-static node serveGrafana.js
Browse http://localhost:8080