Back to the fundamentals: are you actually monitoring your cloud?
Part 1 of Monitoring an on-prem OpenStack cloud
- Are you actually monitoring your cloud? (this post)
- What to monitor in an OpenStack cloud
- Monitoring OpenStack with Zabbix
Having a monitoring server up and running doesn't mean your cloud is actually monitored. So let's go back to the basics for a bit.
What is monitoring?#
Monitoring is collecting the data you need to investigate problems, to predict them, and to know how healthy your environment is. It's also what your scaling plans should be based on.
The important word there is "need". You don't collect everything. If your servers have BMCs, you probably don't care about the CPU or memory usage of the BMC board itself, so don't collect it.
You also keep the data for a while. You want to be able to look back at the trends, both to answer "when did this start?" and to know whether you'll run out of capacity before the next hardware order arrives.
Alerting isn't strictly part of monitoring, but you don't want to run without it. Without alerts, things break and nobody tells you.
For metrics, the usual tools are Zabbix, Prometheus with Grafana, and Nagios. For logs it's Loki, the ELK stack and Fluentd. There's also a whole commercial market on top of those.
What to collect#

You'll often hear metrics, logs and traces called the three pillars of observability.
Metrics are things like CPU, memory, disk and service stats. That's most of what you monitor on a host, and there are plenty of agents that collect them (node_exporter, the Zabbix agent, Nagios plugins).
Logs used to go to some rsyslog server where you'd grep them after something broke. Now they're a proper monitoring source. You collect and transform them (Logstash, Fluentd), then store and aggregate them (Loki, or Elasticsearch with Kibana) so you can search them and alert on them.
Traces follow a single request through every part of the system it touches. I won't get into those here.
When monitoring fails you#
If you run a cloud, you've probably had a customer tell you their VM was down before you knew about it. It's embarrassing, and it usually comes down to one of two things.
In the first case you know why it happened, but nobody got alerted. The data was there and nothing fired. This is also where priority comes in. What should wake someone up at 3am, and what can wait until the morning?
The second case is worse. You don't know why it happened, and you don't have the metrics to find out. The VM was slow, but you never collected the OSD latencies on your Ceph disks, so you can't tell what caused it.
That usually leads to someone asking "should we just collect everything?" I don't think that's the answer. Monitoring helps you spot an anomaly, but it won't always tell you the cause. So when you pick metrics, pick ones that would help explain a problem as well as ones that detect it. Once you know the cause, you can put something in place so it doesn't happen again.
How people monitor clouds today#

A lot of clouds are still monitored ad hoc. You inherit an environment along with whatever monitoring it came with, and every time something breaks, someone writes a script that calls a REST API and pushes the result into the monitoring tool. A few years later there are hundreds of these scripts and nobody knows what's covered and what isn't. Please don't do this. There are proper, standard options now.
On the open-source side:
- Monasca is OpenStack's own monitoring project, but it's been marked inactive since 2024.1, so I wouldn't start anything new on it.
- Zabbix, which is my favourite. It scales well, handles hybrid clouds, and when the stock templates don't quite fit you can add your own checks on top. Templates plus a few custom checks is a good setup (there's more on that in part 3).
- Prometheus and Grafana are very common, especially if you already run Kubernetes. You run the OpenStack exporter next to your controllers, then graph and alert on it in Grafana.
- For logs, Loki or ELK. Kolla-Ansible sets up central logging with Fluentd feeding Elasticsearch and Kibana (OpenSearch in newer releases).
There are also commercial products like IBM Instana and Datadog. They're good, but they get expensive at cloud scale, which is a big reason a lot of on-prem operators end up on Zabbix.
Whichever one you choose, move off the ad-hoc scripts and onto one standard setup. That still won't cover everything, though. A cloud isn't just a pile of servers, and every host can look fine while the cloud itself is broken. That needs its own set of checks, and that's what the next post is about.