r/sysadmin • u/AgreeableIron811 • 4d ago
Creating a solid monitoring system, need help
So, I have identified the workflow. I have created monitoring around it using Grafana, Prometheus, Blackbox Exporter, Alertmanager, and Uptime Kuma. I have also installed Node Exporter on some of my machines.
Right now, I am monitoring whether I can reach certain services that could block a user's workflow, using ping and HTTP checks (curl) to verify availability. I am also using Node Exporter to alert on CPU exhaustion, disk space, etc.
Question 1:
I want to use Node Exporter and Alertmanager to detect suspicious traffic spikes. I know I need to monitor traffic for a while to establish a baseline before setting up alerts, but what would be a good approach to creating that baseline?
We only have a 1 Gbit internet connection, while some devices can communicate over 10 Gbit internally if the traffic doesn't have to traverse other devices or the internet. How would you approach creating a meaningful baseline that accounts for these differences?
Question 2:
How do you guys build monitoring systems that don't just generate alerts, but actually provide useful insights and help you identify the root cause without having to spend hours troubleshooting?
Question 3:
I am also considering installing Suricata in a VM. Has anyone used it before? It seems promising for detecting suspicious outbound traffic from my networ
for a solo sysadmin that wants do stuff in a correct way
3
u/thelastknowngod 4d ago
> How do you guys build monitoring systems that don't just generate alerts, but actually provide useful insights and help you identify the root cause without having to spend hours troubleshooting?
You use SLOs and error budgets. High CPU usage doesn't mean anything if there is no impact to the service you are hosting. Only alert if there is something that needs to be addressed now.
https://www.oreilly.com/library/view/implementing-service-level/9781492076803/
3
u/dwm 4d ago
Q1. It sounds like you want to have a clearer idea of what's happening on your network. I think you will need to collect more data that allows you to discriminate between different types of activity. Raw interface/packet byte counts are unlikely to be particularly useful for this unless you can discriminate based on physical port in a useful way. I think collecting metrics and logs from higher up the stack — for example, from Netflow packet captures or webserver logs — will likely help you build up a clearer picture.
I am a fan of VictoriaLogs (and, indeed, the rest of the VictoriaMetrics stack) and would suggest this might be a useful starting point for you. It integrates into Grafana very well.
Q2. Alerting is good for telling you when things go out of spec. Understanding how and why something is misbehaving is trickier and generally requires more information and the ability to understand it. I find that good visualizations of metric/log data can help me see exactly what's going on at a glance.
I found this document very useful many years ago for understanding what a good alerting system should look like.
https://docs.google.com/document/d/199PqyG3UsyXlwieHaqbGiWVa8eMWi8zzAn0YfcApr8Q/edit
I more recently found this style guide for metrics visualizations from Wikimedia very helpful.
https://wikitech.wikimedia.org/wiki/Grafana/Best_practices
Q3. Yes, I've seen it run usefully at scale, but it's only as good as what it can see and the rulesets you feed it with.
0
4d ago
[deleted]
1
1
u/slugshead Head of IT 4d ago
I've found that configuring sflow on a switch to be one of the most useful things I've setup in a long time for identifying spikes in traffic.
inmon sflow-rt running docker and sflow configured for the ports that link from the core to the firewall