Difference between revisions of "Grafana"

From air
Jump to navigation Jump to search
Line 14: Line 14:
 
==With [[Docker]]==
 
==With [[Docker]]==
 
See https://hub.docker.com/r/grafana/grafana/
 
See https://hub.docker.com/r/grafana/grafana/
  +
  +
=Installation for 3.0.0 Beta=
  +
==On [[Debian]]==
  +
<pre>
  +
wget https://grafanarel.s3.amazonaws.com/builds/grafana_3.0.0-beta21459801392_amd64.deb
  +
sudo dpkg -i xzvf grafana_3.0.0-beta21459801392_amd64.deb
  +
sudo service grafana-server start
  +
</pre>
   
 
=Utilisation=
 
=Utilisation=

Revision as of 23:12, 10 April 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 for 2.6

On Debian

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-server start

With Docker

See https://hub.docker.com/r/grafana/grafana/

Installation for 3.0.0 Beta

On Debian

wget https://grafanarel.s3.amazonaws.com/builds/grafana_3.0.0-beta21459801392_amd64.deb
sudo dpkg -i xzvf grafana_3.0.0-beta21459801392_amd64.deb
sudo service grafana-server start

Utilisation

Naviguer sur http://localhost:3000

Le username:password est admin:admin

Le fichier de configuration est :

Editer le fichier de configuration afin d'activer HTTPS en mode production.

sudo service grafana-server restart

Monitoring de le l'infrastructure avec Telegraf, InfluxDB et Grafana

TODO

Monitoring de machines EC2 avec AWS Cloudwatch et Grafana

Pour monitorer les machines qui hébergent les serveurs (Mosquitto, ...) sur AWS EC2:

Obsolete

Installation for 1.8

Edit config.js

    datasources: {
      demo: {
        type: 'influxdb',
        url: "http://localhost:8086/db/demo",
        username: 'root',
        password: 'root'
      },
    },

Run sur 1.8

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

Grafana @ AIR