Grafana: Difference between revisions
Jump to navigation
Jump to search
(Created page with "http://grafana.org/ An open source, feature rich metrics dashboard and graph editor for Graphite, InfluxDB & OpenTSDB") |
No edit summary |
||
(17 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
[[Image:Grafana-Dashboard-IoT.png|thumb|right|400px|Grafana for IoT Dashboard]] |
|||
http://grafana.org/ |
http://grafana.org/ |
||
An open source, feature rich metrics dashboard and graph editor for [[Graphite]], [[InfluxDB]] & [[OpenTSDB]] |
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]]== |
|||
<pre> |
|||
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 |
|||
</pre> |
|||
==With [[Docker]]== |
|||
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.1.1-1470047149_amd64.deb |
|||
sudo apt-get install -y adduser libfontconfig |
|||
sudo dpkg -i grafana_3.1.1-1470047149_amd64.deb |
|||
sudo service grafana-server start |
|||
sudo service grafana-server status |
|||
sudo update-rc.d grafana-server defaults 95 10 |
|||
</pre> |
|||
Changer le mot de passe admin dans /etc/grafana/grafana.ini |
|||
<pre> |
|||
sudo vi /etc/grafana/grafana.ini |
|||
</pre> |
|||
ligne 122, section security |
|||
<pre> |
|||
[security] |
|||
admin_user = admin |
|||
admin_password = unmotdepassebiencomplique' |
|||
</pre> |
|||
Relancer le service |
|||
<pre> |
|||
sudo service grafana-server restart |
|||
sudo service grafana-server status |
|||
</pre> |
|||
Se logger sur http://localhost:3000 |
|||
=Monitoring de le l'infrastructure avec [[Telegraf]], [[InfluxDB]] et [[Grafana]]= |
|||
* Installer [[InfluxDB]] |
|||
* Installer [[Telegraf]] |
|||
* Télécharger le dashboard pour [[Telegraf]] ([https://grafana.net/dashboards/61 lien]). |
|||
* Ajouter la source de données [[Telegraf]] en [[InfluxDB]] via le menu Menu > Data Sources > Add Data Sources. |
|||
* Import ce dashboard (.json) via le menu Menu > Dashboards > Import > Upload .json File. |
|||
=Monitoring de machines EC2 avec [[AWS Cloudwatch]] et [[Grafana]]= |
|||
Pour monitorer les machines qui hébergent les serveurs ([[Mosquitto]], ...) sur AWS EC2: |
|||
* Activer [[AWS Cloudwatch]] |
|||
* Configurer [[Grafana]] pour AWS Cloudwatch ([http://docs.grafana.org/v2.6/datasources/cloudwatch/ lien]). |
|||
=Obsolete= |
|||
==Installation for 1.8== |
|||
Edit config.js |
|||
<pre> |
|||
datasources: { |
|||
demo: { |
|||
type: 'influxdb', |
|||
url: "http://localhost:8086/db/demo", |
|||
username: 'root', |
|||
password: 'root' |
|||
}, |
|||
}, |
|||
</pre> |
|||
==Run sur 1.8== |
|||
Add serveGrafana.js in ./grafana |
|||
<pre> |
|||
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'); |
|||
</pre> |
|||
<pre> |
|||
npm install connect serve-static |
|||
node serveGrafana.js |
|||
</pre> |
|||
Browse http://localhost:8080 |
|||
=Links= |
|||
* Grafana + [[InfluxDB]] + [[Collectd]] : http://vincent.composieux.fr/article/grafana-monitor-metrics-collected-by-collectd-into-influxdb |
|||
=Grafana @ AIR= |
|||
* [[Projets-2015-2016-OpenSmartCampus|OpenSmartCampus]] (RICM5 en 2015-2016) |
Latest revision as of 13:48, 2 September 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 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.1.1-1470047149_amd64.deb sudo apt-get install -y adduser libfontconfig sudo dpkg -i grafana_3.1.1-1470047149_amd64.deb sudo service grafana-server start sudo service grafana-server status sudo update-rc.d grafana-server defaults 95 10
Changer le mot de passe admin dans /etc/grafana/grafana.ini
sudo vi /etc/grafana/grafana.ini
ligne 122, section security
[security] admin_user = admin admin_password = unmotdepassebiencomplique'
Relancer le service
sudo service grafana-server restart sudo service grafana-server status
Se logger sur http://localhost:3000
Monitoring de le l'infrastructure avec Telegraf, InfluxDB et Grafana
- Installer InfluxDB
- Installer Telegraf
- Télécharger le dashboard pour Telegraf (lien).
- Ajouter la source de données Telegraf en InfluxDB via le menu Menu > Data Sources > Add Data Sources.
- Import ce dashboard (.json) via le menu Menu > Dashboards > Import > Upload .json File.
Monitoring de machines EC2 avec AWS Cloudwatch et Grafana
Pour monitorer les machines qui hébergent les serveurs (Mosquitto, ...) sur AWS EC2:
- Activer AWS Cloudwatch
- Configurer Grafana pour AWS Cloudwatch (lien).
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 + InfluxDB + Collectd : http://vincent.composieux.fr/article/grafana-monitor-metrics-collected-by-collectd-into-influxdb
Grafana @ AIR
- OpenSmartCampus (RICM5 en 2015-2016)