A Guide to Monitor Linux Server using Prometheus and Grafana

https://lemmyfly.org/post/7749

A Guide to Monitor Linux Server using Prometheus and Grafana - lemmyfly.org

running a lemmy instance has learned me a lot about devops already! I love playing around with this, the lemmy instance was a great reason. lemmyfly.org [http://lemmyfly.org] doesn’t have a lot of traffic yet, I think it can handle some more. Currently running on 2 vcpu/4gb ram. After chatting to my devops colleague at work I wanted to set up a Grafana dashboard with metrics on the server. Seems it’s pretty pretty doable! - I installed prometheus node_exporter on my lemmy server [https://devopscube.com/monitor-linux-servers-prometheus-node-exporter/] - I created a second server at my VPS. Very cheap, and don’t think I’ll be running the Prometheus/Grafana 24/7 so I’ll just create a snapshot of it, destroy the server and re-create when wanted - Created an internal private network so the instances can communicate without exposing ports to the public - Installed Prometheus on the new prometheus server [https://devopscube.com/install-configure-prometheus-linux/] - Installed Grafana [https://grafana.com/docs/grafana/latest/setup-grafana/installation/debian/] - log in to Grafana, admin:admin then change password - Go to the Grafana home dashboard, click on + sign and click on Import. In Import via grafana.com [http://grafana.com], put the dashboard id 1860 and click on Load. - Done! Last 2 hours in the garden with a beer on the side, WFH FTW [https://lemmyfly.org/pictrs/image/5cb1ff42-c452-4a39-b49c-e5beca49cade.png]

Uuuh I absolutely love grafana. Worked half a year with it for my job. I am happy it worked out great for you.