Grafana: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
| Line 6: | Line 6: | ||
=Installation= |
=Installation= |
||
<pre> |
<pre> |
||
wget |
wget https://grafanarel.s3.amazonaws.com/builds/grafana_2.6.0_amd64.deb |
||
sudo dpkg -i xzvf grafana_2.6.0_amd64.deb |
|||
tar xzvf grafana-1.8.1.tar.gz |
|||
sudo service grafana start |
|||
cd grafana |
|||
mv config.sample.js config.js |
|||
</pre> |
</pre> |
||
Revision as of 15:24, 5 February 2016
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 https://grafanarel.s3.amazonaws.com/builds/grafana_2.6.0_amd64.deb sudo dpkg -i xzvf grafana_2.6.0_amd64.deb sudo service grafana start
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