Grafana: de beaux graphs!
Publié : mer. 3 févr. 2016 10:16
Bien le bonjour!!
Bon alors, comment remplacer Munin de façon plus jolie?
Grafana!
Le trio: collectd + influxdb + grafana.
Perso j'ai utilisé ca comme tuto:
https://blog.cpy.re/monitoring-avec-col ... t-grafana/
https://sonnguyen.ws/monitor-server-wit ... d-grafana/
https://vincent.composieux.fr/article/g ... s-collectd
Une installe tout sur le même serveur en rapide sur une debian:
Prérequis:
apt-get install -y apt-transport-https
aptitude install collectd
Dans le fichier /etc/collectd/collectd.conf
# Uncomment this:
LoadPlugin network
# Uncomment/update this:
Server "127.0.0.1" "8096"
curl -sL https://repos.influxdata.com/influxdb.key | sudo apt-key add -
source /etc/os-release
test $VERSION_ID = "7" && echo "deb https://repos.influxdata.com/debian wheezy stable" | sudo tee /etc/apt/sources.list.d/influxdb.list
test $VERSION_ID = "8" && echo "deb https://repos.influxdata.com/debian jessie stable" | sudo tee /etc/apt/sources.list.d/influxdb.list
aptitude update
aptitude install influxdb
créer la base de données:
curl "http://localhost:8086/db?u=root&p=root" -d "{\"name\": \"collectd\"}"
éditer /etc/influxdb/influxdb.conf :
[collectd]
enabled = true
bind-address = ":25826" # the bind address
database = "collectd" # Name of the database that will be written to
typesdb = "/usr/share/collectd/types.db"
systemctl restart influxdb
Pour grafana:
dans le sources.list
deb https://packagecloud.io/grafana/stable/debian/ jessie main
curl https://packagecloud.io/gpg.key | sudo apt-key add -
apt-get update
apt-get install grafana
systemctl daemon-restart
systemctl restart grafana
A savoir:
webadmin pour influxdb: ipaddress:8083
Connecteur pour influxdb: ipaddress:8086
Pour grafana, ca écoute directement sur le port 3000.
Voila, avec ca rapidement un ti grafana d'installé (j'ai peut être oublié des éléments mais avec les tutos ca passe sans soucis ^^)
Un tit screen:

Bon alors, comment remplacer Munin de façon plus jolie?

Grafana!
Le trio: collectd + influxdb + grafana.
Perso j'ai utilisé ca comme tuto:
https://blog.cpy.re/monitoring-avec-col ... t-grafana/
https://sonnguyen.ws/monitor-server-wit ... d-grafana/
https://vincent.composieux.fr/article/g ... s-collectd
Une installe tout sur le même serveur en rapide sur une debian:
Prérequis:
apt-get install -y apt-transport-https
aptitude install collectd
Dans le fichier /etc/collectd/collectd.conf
# Uncomment this:
LoadPlugin network
# Uncomment/update this:
Server "127.0.0.1" "8096"
curl -sL https://repos.influxdata.com/influxdb.key | sudo apt-key add -
source /etc/os-release
test $VERSION_ID = "7" && echo "deb https://repos.influxdata.com/debian wheezy stable" | sudo tee /etc/apt/sources.list.d/influxdb.list
test $VERSION_ID = "8" && echo "deb https://repos.influxdata.com/debian jessie stable" | sudo tee /etc/apt/sources.list.d/influxdb.list
aptitude update
aptitude install influxdb
créer la base de données:
curl "http://localhost:8086/db?u=root&p=root" -d "{\"name\": \"collectd\"}"
éditer /etc/influxdb/influxdb.conf :
[collectd]
enabled = true
bind-address = ":25826" # the bind address
database = "collectd" # Name of the database that will be written to
typesdb = "/usr/share/collectd/types.db"
systemctl restart influxdb
Pour grafana:
dans le sources.list
deb https://packagecloud.io/grafana/stable/debian/ jessie main
curl https://packagecloud.io/gpg.key | sudo apt-key add -
apt-get update
apt-get install grafana
systemctl daemon-restart
systemctl restart grafana
A savoir:
webadmin pour influxdb: ipaddress:8083
Connecteur pour influxdb: ipaddress:8086
Pour grafana, ca écoute directement sur le port 3000.
Voila, avec ca rapidement un ti grafana d'installé (j'ai peut être oublié des éléments mais avec les tutos ca passe sans soucis ^^)
Un tit screen:
