Grafana
Jump to navigation
Jump to search
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