$ apt-get install graphite-web graphite-carbon mysql-server python-mysqldb python-pymysql apache2 libapache2-mod-wsgi apt-transport-https ssl-cert
Docs : http://docs.grafana.org/installation/debian/
Install : https://statusengine.org/tutorials/Grafana-Bionic/
$ git clone https://github.com/python-diamond/Diamond.git && cd Diamond && python setup.py install
&& apt-get install python-pip -y && pip install diamond && pip install configobj && apt install -y supervisor
$ cp /etc/diamond/diamond.conf.example /etc/diamond/diamond.conf
We should add config file config-diamond.
$ nano /etc/diamond/diamond.conf
Add supervisor settings :
$ sudo nano /etc/supervisor/conf.d/diamond.conf
[program:diamond]
#directory = /etc/init.d/
command = diamond
autostart=true
autorestart=true
$ sudo systemctl restart supervisor && systemctl enable supervisor
Testing:
tail -f /var/log/diamond/archive.log