I’m trying to install grafana and graphite on raspberry pi so I can have a local server to collect and visualize data. Using the grafana cloud is nice but not my ultimate goal.
I found installing grafana easy but graphite not so much. I’m not a web server person or linux admin and the blogs I found seem to assume that I must be those people. I need some help here.
If I understand correctly, grafana is the software that can visualize data it pulls from data storages such as graphite. So it is useless without a data storage such as graphite.
I have an account with grafana cloud service and have written my script to log data to graphite and constructed some dashboards in grafana. So I understand the work flow on the cloud and I am a programmer. What I don’t understand is replicating this experience on a local install.
Here is a blog post I am following:
I didn’t follow the apache deployment. Instead I tried the nginx path here:
https://graphite-api.readthedocs.io/en/latest/deployment.html
I was able to deploy but after saving a conf file and nginx failed to start.
● nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2021-09-26 09:00:33 PDT; 20s ago
Docs: man:nginx(8)
Process: 14596 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)
Sep 26 09:00:33 SN1-SBNV-TEST systemd[1]: Starting A high performance web server and a reverse proxy server…
Sep 26 09:00:33 SN1-SBNV-TEST nginx[14596]: nginx: [emerg] a duplicate default server for 0.0.0.0:80 in /etc/nginx/sites-enabl
Sep 26 09:00:33 SN1-SBNV-TEST nginx[14596]: nginx: configuration file /etc/nginx/nginx.conf test failed
Sep 26 09:00:33 SN1-SBNV-TEST systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
Sep 26 09:00:33 SN1-SBNV-TEST systemd[1]: nginx.service: Failed with result ‘exit-code’.
Sep 26 09:00:33 SN1-SBNV-TEST systemd[1]: Failed to start A high performance web server and a reverse proxy server.
Is it saying that some other processes is serving port 80 instead of nginx? It started fine right after install. Only got error after I saved config file per graphite doc.
Any help is appreciated!