Skip to main content

Overview

Prometheus is the primary metrics backend for Xloud environments. It collects time-series metrics from compute nodes, storage clusters, and deployed services through scrape targets and service discovery. Alertmanager receives rule evaluation results from Prometheus and routes alert notifications — including webhook signals that trigger Xloud Orchestration auto-scaling policies. Prometheus replaces legacy telemetry stacks (Ceilometer/Aodh) for metric collection and alarm-based scaling in Xloud deployments.
Prerequisites
  • Prometheus 2.40 or later deployed (included in XIMP monitoring stack)
  • Alertmanager 0.25 or later
  • Node exporter deployed on all instances to be monitored
  • Network access from the Prometheus host to scrape targets on port 9100 (node exporter)

Architecture


Prometheus Configuration

Base Configuration

prometheus.yml

Service Discovery via Xloud API

Use the openstack_sd_configs scrape configuration to automatically discover instances by project and assign labels from instance metadata:
scrape-config-discovery.yml
Tag instances with role=web, role=app, or role=db via instance metadata to enable role-based Prometheus label filtering and targeted alert rule evaluation.

Alert Rules

Infrastructure Alert Rules

/etc/prometheus/rules/infrastructure.yml

Auto-Scaling Alert Rules

Wire these alert rules into Alertmanager webhook receivers to drive Xloud Orchestration scaling policies:
/etc/prometheus/rules/autoscaling.yml

Alertmanager Configuration

alertmanager.yml

Useful Queries


Validation

Navigate to http://<prometheus-host>:9090:
  1. Open Status → Targets — all scrape targets show UP state
  2. Open Alerts — configured rules appear with their evaluation state
  3. Run a query: enter up in the expression bar and click Execute
All expected targets appear with state UP and no scrape errors.

Next Steps

Grafana Dashboards

Build operational dashboards using Prometheus as a data source

Auto-Scaling

Wire Alertmanager webhooks into Orchestration scaling policy signal URLs

Wazuh SIEM

Complement Prometheus metrics with Wazuh security event monitoring

XIMP Monitoring

Explore the built-in XIMP monitoring stack that includes Prometheus