Apache CloudStack monitoring with Topologix
Infrastructure & Networking
Apache CloudStack read like OpenStack, read only: one integration is one management server API endpoint. On Infrastructure → Hypervisors each CloudStack cluster is a cluster row, with its zone and pod: its hosts (Up / Disconnected / Alert / Down, maintenance and disabled shown with the resource state), the hosts' measured CPU and memory use, CloudStack's own allocation figures beside them, N+1, the primary storage pools with their storage path (an NFS export, an iSCSI IQN and LUN, a Ceph RBD pool), the zone's secondary storage, system VMs and virtual routers, the capacity rows of listCapacity and the accounts and projects with their resource limits. The VMs reach the Servers page, the per-VM history, right-sizing and Top VMs, each with its disks → pool → storage path. Findings: a host Down / Disconnected / Alert, a console proxy / secondary storage VM or a virtual router not Running, a capacity row over the thresholds you set, and CloudStack's own alerts, mirrored as warnings (amber). There is no VM action in Topologix for CloudStack: nothing is ever started, stopped or changed.
Requirements
- A proxy agent (1.361.0 or later) on the network that reaches the management server — or the Topologix server itself when it can reach it.
- An API key and secret key of an account with the built-in Read-Only Admin - Default role (CloudStack 4.15 or later; root admin,
list*APIs only). In the CloudStack UI: Accounts → add an account with that role → Users → Generate keys. A domain or user key works too, but then hosts, clusters, pods, storage pools, capacity, system VMs and routers are not readable — the coverage says “partial” and names each refused read, never an empty cloud. - Every request is signed (HMAC-SHA1,
signatureVersion=3with anexpires10 minutes ahead) — the secret key never leaves the proxy, only the signature does. The proxy's clock must be roughly right. - The commands sent (all
list*, paged withpagesize=500andlistall=true; project resources read a second time withprojectid=-1):listCapabilities,listZonesMetrics,listPods,listClustersMetrics,listHostsMetrics(type=Routing),listStoragePoolsMetrics,listImageStores,listCapacity,listSystemVms,listRouters,listAccounts,listProjects,listNetworks(count only),listVirtualMachines,listVolumesandlistAlerts. Thelist*Metricscommands (CloudStack 4.9 or later) answer used and allocated figures and CloudStack's own threshold flags in one call; on an older server — or a role without them — the plainlistZones/listClusters/listHosts/listStoragePoolsare used instead (the coverage names which answered). - Cadence: the cloud read every minute; the VMs and volumes every 5 minutes; CloudStack's alerts every 5 minutes.
1 · Set up the integration
- Open the Integrations pageClick Integrations and pick Apache CloudStack from the catalogue (Infrastructure & Networking).
- Enter the API URL and the keysAPI URL: the management server's API endpoint, e.g.
https://cloud.example.com/client/api(/client/apiis added when absent). API key and Secret key of the read-only account — both are sealed at rest. Untick Verify TLS certificate only for a self-signed lab server. - ThresholdsCapacity warning % (default 75) and Capacity critical % (default 85) — the defaults are CloudStack's own notification and disable thresholds; Alerts window (hours) (default 24): CloudStack alerts sent within it are mirrored. The form shows each value in effect and whether it is saved or the default. Pick the Default proxy.
- Create, then TestClick Create, reopen the integration and click Test. It names the CloudStack version and the zones, counts the hosts (or says they are not readable and why) and whether the
list*Metricscommands answered.
2 · Add it to a flow
- Add a metric node, pick this integration and a Target: a Zone (its name or id; empty = the whole cloud — hosts up / down / in maintenance, measured CPU / memory, allocated CPU / memory / primary storage, public IPs, system VMs not running) or Alerts (the derived alerts and CloudStack's own — they drive the node's health dot).
- Each canvas source does its own cloud read when it is polled — prefer one per zone and a longer interval on a large cloud; the Hypervisors page reads the cloud anyway.
Good to know
- Per-VM figures: CPU % as CloudStack reports it (
cpuused); memory used =memorykbs − memoryintfreekbswhen the guest reports it; network and disk KB/s and disk IOPS are the deltas of the cumulative counters (networkkbsread/write,diskkbsread/write,diskioread/write) between two VM passes — a VM's first pass, a counter reset (the VM restarted or moved) or a gap over an hour gives no rate rather than a spike. - VMware clusters: a host of a VMware cluster whose vCenter is integrated too is the same machine — it is shown once, as the vCenter host (matched by the ESXi management IP, CloudStack's
ipaddress); the CloudStack cluster still counts it and lists it as “shown as the vCenter host”. - A Stopped VM has no host in CloudStack, so it is listed on the Servers page and in the VM list but not on a cluster.
- A stopped virtual router of a network with no running VM is normal (CloudStack stops it): it is a warning, never critical; a router in
Erroris critical. - CloudStack's alerts carry free text: they are redacted with the organisation's rules (the logs scope) on the proxy before they leave the network, and again on the server.
- No error text ever carries the API key, the secret key or a signature.
More Infrastructure & Networking integrations
See it on your own infrastructure
Book a demo and we will walk you through Topologix with your systems in mind: on our cloud, or self-hosted in your own network.