Kolla-Ansible Prometheus + Grafana Monitoring Stack Design Prompt
Design, size, and troubleshoot the Kolla-Ansible in-cluster monitoring stack — Prometheus, node/cAdvisor/mysqld/rabbitmq/openstack exporters, Alertmanager, and Grafana — including scrape targets, retention vs. TSDB disk, alert rules for control-plane health, and fixing targets that show as down.
- Target user
- Operators running containerized OpenStack via Kolla-Ansible
- Difficulty
- Advanced
- Tools
- Claude, ChatGPT, Cursor
The prompt
You are a senior operator who has deployed and tuned the Kolla-Ansible monitoring stack (`enable_prometheus: "yes"`, `enable_grafana: "yes"`) on production OpenStack. You know which exporters Kolla ships (`prometheus-node-exporter`, `prometheus-cadvisor`, `prometheus-mysqld-exporter`, `prometheus-haproxy-exporter`, `prometheus-rabbitmq-exporter`, `prometheus-openstack-exporter`, `prometheus-alertmanager`), how they register as scrape targets, and how to extend rules without forking Kolla. I will provide: - Cluster inventory (node roles and counts) and enabled OpenStack services - `globals.yml` monitoring vars (which exporters are enabled, `prometheus_*` retention/storage settings) - TSDB disk capacity on the monitoring node(s) and current metric/series volume - The goal or symptom (green-field design, target `down`, disk filling, missing dashboards, alert gaps) Your job: 1. **Target inventory** — enumerate the scrape jobs Kolla generates for the enabled exporters, the port each listens on, and how Prometheus discovers them (Kolla renders `prometheus.yml` from inventory). Flag any enabled OpenStack service that has no corresponding exporter/metric coverage. 2. **Retention & sizing** — compute active series and ingested samples/sec, then size TSDB disk for the chosen `prometheus_tsdb_retention_time`. Show the storage math and give a safe retention that fits the disk with headroom; recommend remote-write/Thanos only if long retention is actually required. 3. **Alert rules** — write PromQL alert rules for the failures that actually page: control-plane API down (via HAProxy/blackbox), RabbitMQ queue depth and partitions, MariaDB/Galera cluster size and replication, node disk/mem/CPU saturation, and hypervisor/placement capacity exhaustion. Add sane `for:` durations to avoid flapping. 4. **Config override** — show how to inject custom rules and extra scrape configs via `/etc/kolla/config/prometheus/` and reconfigure with `kolla-ansible reconfigure -t prometheus` without editing Kolla's shipped templates. 5. **Grafana** — provision the OpenStack/node/RabbitMQ/MariaDB dashboards, wire Prometheus + (if enabled) the logging datasource, and lock down the Grafana admin credential and VIP exposure. 6. **Troubleshooting** — for a target showing `down`, give the ordered diagnosis: exporter container up, port reachable from the Prometheus host, scrape config rendered, and firewall/security-group path — with the exact `docker`, `curl`, and PromQL/`/targets` checks. Output as: (a) scrape-target table (job, container, port, discovery), (b) retention sizing table with the math, (c) a ready-to-load alert-rules file, (d) config-override + reconfigure commands, (e) Grafana provisioning notes, (f) a `target down` troubleshooting runbook. Use `<vip>` and `<mon-host>` placeholders, never real hostnames. Bias toward fewer, high-signal alerts tied to user-visible impact over noisy per-metric thresholds.
Run this prompt with AI
Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.
Related prompts
-
Kolla-Ansible passwords.yml Vault Rotation Runbook Prompt
Plan and execute a safe rotation of Kolla-Ansible service credentials in passwords.yml — RabbitMQ, database, Keystone, and service users — across a running deployment without a full outage or leaving services on stale secrets.
-
Kolla-Ansible Central Logging (Fluentd → OpenSearch) Design Prompt
Design and troubleshoot the Kolla-Ansible central logging pipeline — Fluentd collectors, OpenSearch storage, and OpenSearch Dashboards — including index lifecycle, retention sizing, multiline parsing, and recovering a red cluster that has stopped ingesting control-plane logs.
-
Kolla-Ansible Custom Container Image Build & Source Override Prompt
Build, customize, and pin Kolla container images with kolla-build — source vs. binary install type, template-override blocks for extra packages/patches/plugins, local-registry push, and a reproducible tag strategy so custom images survive upgrades and never drift against a moving latest tag.
-
OpenStack Keepalived/HAProxy VIP Failover Design Prompt
Design and validate the Keepalived VRRP + HAProxy control-plane VIP in a Kolla-Ansible OpenStack cloud — clean failover, no split-VIP, correct backend health checks — so API traffic survives losing a controller without dropped or mis-routed requests.
More OpenStack prompts & error guides
Browse every OpenStack prompt and troubleshooting guide in one place.
Reading prompts? Get all 500 in one free PDF
500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.
- 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
- Instant PDF download — yours free, forever
- Plus one practical AI-workflow email a week (no spam)
Single opt-in · unsubscribe anytime · no spam.