Graphite and Grafana: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Thomas (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „=Instal= *apt-get install graphite-web graphite-carbon libapache2-mod-wsgi =Enable= *icinga2 feature enable graphite *systemctl restart icinga2.service =Look…“) |
Thomas (Diskussion | Beiträge) |
||
| Zeile 14: | Zeile 14: | ||
*echo Listen 8000 >> /etc/apache2/ports.conf" | *echo Listen 8000 >> /etc/apache2/ports.conf" | ||
*cp /usr/share/graphite-web/apache2-graphite.conf /etc/apache2/sites-available/graphite.conf | *cp /usr/share/graphite-web/apache2-graphite.conf /etc/apache2/sites-available/graphite.conf | ||
| − | * sed -i.org -e "/ | + | *sed -i.org -e "/VirtualHost/s/:80/:8000/" /etc/apache2/sites-available/graphite.conf |
| − | + | *a2ensite graphite | |
| − | + | =Install Grafana= | |
| − | deb https://packagecloud.io/grafana/stable/debian/ wheezy main | + | *cat <<EOF >/etc/apt/sources.list.d/grafana.list |
| − | EOF | + | *deb https://packagecloud.io/grafana/stable/debian/ wheezy main |
| − | + | *EOF | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| + | *curl -s https://packagecloud.io/gpg.key | sudo apt-key add - | ||
| + | *apt-get update | ||
| + | *systemctl start grafana-server | ||
=Links= | =Links= | ||
*http://www.credativ.de/blog/howto-icinga2-mit-graphite-und-grafana-unter-debian | *http://www.credativ.de/blog/howto-icinga2-mit-graphite-und-grafana-unter-debian | ||
Version vom 9. März 2017, 19:43 Uhr
Instal
- apt-get install graphite-web graphite-carbon libapache2-mod-wsgi
Enable
- icinga2 feature enable graphite
- systemctl restart icinga2.service
Look
- ls -l /var/lib/graphite/whisper/icinga2/
User Auth for Graphite
- graphite-manage syncdb
- chown _graphite:_graphite /var/lib/graphite/graphite.db
Module for Apache2
- a2enmod wsgi
Set Port 8000
- echo Listen 8000 >> /etc/apache2/ports.conf"
- cp /usr/share/graphite-web/apache2-graphite.conf /etc/apache2/sites-available/graphite.conf
- sed -i.org -e "/VirtualHost/s/:80/:8000/" /etc/apache2/sites-available/graphite.conf
- a2ensite graphite
Install Grafana
- cat <<EOF >/etc/apt/sources.list.d/grafana.list
- deb https://packagecloud.io/grafana/stable/debian/ wheezy main
- EOF
- curl -s https://packagecloud.io/gpg.key | sudo apt-key add -
- apt-get update
- systemctl start grafana-server