Build a baseline and assess capacity
Before you start, complete the prerequisites and confirm every exporter target is up.
Collect your baseline
Itential doesn’t publish job thresholds, so you collect 30 days of your own data first. Thirty days evens out weekly cycles. You tune every job alert from it.
The baseline comes from Prometheus, not from job history in MongoDB. The exporters don’t backfill earlier activity, so the baseline starts when you install them. Wait for 30 days of representative data, including month-end or other peaks, before you turn on demand-based alerts.
The alert rules compute the baseline from their own recorded data, which starts the day you load them. Load the rules file at the start of this phase, without connecting Alertmanager, and keep at least 35 days of retention. Use production data with no gaps from exporter outages or Prometheus data loss. Until 30 days have passed, treat the baseline as provisional. With short history, the rules report demand as within baseline, so read the within-baseline alerts as “host CPU is high, cause unknown”. To alert on demand sooner, use a fixed p99.
If you can’t wait, estimate the values from Operations Manager job history, and enter them as the fixed p99 for the demand alerts. Replace them when you have 30 days of data.
Load the rules file
Load the decision-matrix rules file now, without connecting Alertmanager, so the recording rules collect the same 30 days. Refresh the baseline each quarter.
The values are percentiles over the last 30 days. Read the p50 and p99 values from the dashboard. The dashboard doesn’t show p95, so run the matching query after the table for the CPU rows. You can also run any query to check a dashboard value.
For example:
- A typical busy minute p50 of 4 means a typical busy minute starts four jobs.
- A heavy busy minute p99 of 40 sets the demand alert at 1.5 × 40 = 60 jobs a minute.
- A heavy busy minute p99 of 600 tasks means the busiest 1% of minutes start 600 or more tasks.
- A host CPU p95 of 55 means the busiest host stays at or below 55% for 95% of the 30 days, which leaves room before the 70% warning tier. A value of 78 is inside the 70% to 85% warning band, with little room to grow.
- A Workflow Engine CPU p95 of 40 means the Workflow Engine has spare capacity. A value of 95 means it is close to its thread ceiling, so more tasks queue instead of run faster.
The following queries use PromQL. In a different stack, run the equivalent query over the same metrics and the same 30-day window.
Typical busy minute, jobs:
Heavy busy minute, jobs:
Heavy busy minute, tasks:
Host CPU, p95, busiest host:
Workflow Engine CPU, p95, as a percent of its thread ceiling. Replace 1 with your thread count:
Also record your current task_worker_thread_count and task_worker_rate_limit, so you know where tuning starts.
Prometheus 3 shows the notice “metric might not be a counter, name does not end in _total” for the itential_* counters. The notice is informational. The exporter names its counters without _total, and rate() and increase() still work.
Record the other recommended metrics
Record a 30-day p95 value for each of the following metrics. Use them later to set alert thresholds. Each metric has its own query. Exporter metric names vary by version, so confirm each name in Prometheus first.
Redis queue latency, in ms
Queue health against the 1 ms and 10 ms tiers. A value of 0.4 is healthy. A value of 3 is above the warning tier.
MongoDB reads per second
Database read load. A value of 800 means reads stay at or below 800 a second for 95% of the 30 days. Compare it with job demand to see how reads grow with load.
MongoDB writes per second
Write load from job and task documents. A value of 300 means writes stay at or below 300 a second. If writes double while job starts stay flat, workflows have become heavier.
Network I/O per host, in Mbit/s
Network headroom on the busiest host. A value of 120 on a 1 Gbit/s link is about 12% used, which leaves plenty of room. A value of 800 is close to the link limit.
Disk IOPS per host
Disk headroom, most important on MongoDB hosts. A value of 1,500 against a volume rated for 3,000 IOPS is half the rated limit. Near the rating, database latency rises.
Gateway server and NSO server CPU
Downstream headroom. A value of 85 means tasks waiting on the server might slow down even while Platform is idle. Replace <gateway-or-nso-hosts> with a regex for those servers’ instance labels.
Gateway server and NSO server memory
Downstream memory headroom. A value of 60 leaves room. A value of 90 risks swapping or out-of-memory errors under a burst. Replace <gateway-or-nso-hosts> as you did for CPU.
Host memory used
Memory headroom against the 75%, 85%, and 95% tiers. A value of 60 leaves room before the 75% warning tier. A value of 80 is past the warning tier at peak. Replace <itential-hosts> with a regex for your Platform servers.
Pronghorn Core CPU, as percent of one core
Headroom on the main thread that worker threads can’t help. A value of 40 is spare capacity. A value of 90 means Pronghorn Core is near its limit, so reduce API and trigger load or add Platform nodes.
Workflow Engine memory, in GB
A value of 1.5 is 1.5 GB at peak, well within host memory. A value that climbs week over week at the same job volume points to heavier workflows or a leak.
Assess capacity
After you record the baseline, assess capacity from two things together: how much work arrives and how much headroom is left. Neither needs a job or task to finish.
- Demand is above baseline when jobs or tasks started per minute exceed 1.5 times the 30-day p99.
- Host CPU shows how much capacity the server has left.
- Workflow Engine CPU shows whether the workers are the ceiling. It’s
100 × Workflow Engine CPU cores ÷ task_worker_thread_count, so 100% means every worker thread uses a full core.
A busy Node.js process reaching 100% for a few minutes is normal. Act on Workflow Engine CPU only when it stays at 90% or more for 15 minutes. Between 70% and 90%, watch the trend.
Decision matrix
Compare processes
Host CPU shows how much capacity the server has left. Per-process CPU shows whether one process is the ceiling. Read both.
- A Node.js process runs on one main thread, so one process rarely exceeds about one core.
- The Workflow Engine runs the task worker threads, so with
task_worker_thread_countset to4, its ceiling is about 400% of one core. Divide by the thread count before you compare with the tiers.
The decision matrix and the alert rules read Workflow Engine CPU as a percent of its thread ceiling. The dashboard panel shows a percent of one core, so convert before you compare:
Per-process CPU, as a percent of one core:
Workflow Engine CPU as a percent of its thread ceiling, busiest node. Replace 1 with your thread count.
Which thread is busy:
Before you change anything, find out whether anyone sees slow jobs. High process CPU with healthy Redis queue latency and normal API latency is a busy process, not a saturated one.