Grafana: Difference between revisions

From air
Jump to navigation Jump to search
Line 11: Line 11:
</pre>
</pre>


=Installation=
=Installation for 1.8=
Edit config.js
Edit config.js
<pre>
<pre>

Revision as of 15:25, 5 February 2016

http://grafana.org/

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 for 1.8

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

Links