Skip to navigation

Prepare your environment

Prepare is the first of the five phases. You finish it when every exporter target is up and the dashboard shows data.

Prerequisites

The itential.monitoring Ansible collection installs and configures Prometheus, Alertmanager, and Grafana, and sets up the iap_exporter scrape job. Use it, or install the components yourself, then set up everything in the following table before you build the baseline or set up alerts. For installation help and further guidance, contact your Customer Success team.

Review your deployment type, such as high availability or active-standby. The collection installs exporters by host group, so every Platform, MongoDB, Redis, and gateway server host in your deployment needs the exporters for its role.

If you use a different monitoring stack, you still need the exporters. Your tool takes the place of Prometheus, Alertmanager, and Grafana.

ComponentRequirementDefault port
Itential PlatformVersion 6, with the /prometheus_metrics endpoint reachable from Prometheus. Prometheus scrapes it as the iap_exporter job. Every Platform host must use the same task_worker_thread_count, because the alert rules use one thread-count divisor for all of them.Platform HTTP port
MongoDBRuns as a replica set. The job-metrics-exporter reads job and task events from MongoDB change streams, which need an oplog.Not applicable
RedisAccepts connections from the Redis exporter host on the Redis port, 6379 by default.Not applicable
PrometheusScraping every target every 15 seconds. Keep at least 35 days of retention, because the baseline uses 30 days.9090
Prometheus AlertmanagerAdded under alerting in prometheus.yml. See Set up alerts.9093
GrafanaPrometheus as a data source and the Itential Platform Monitoring dashboard imported.3000
job-metrics-exporterVersion 1.0.1 or later, connected to the Itential MongoDB.9477
node_exporterOn every Itential host, and on gateway servers and NSO servers.9100
process_exporterOn every Platform, MongoDB, and Redis host, grouping the Itential, MongoDB, and Redis processes.9256
MongoDB exporterConnected to each MongoDB member.9216
Redis exporterConnected to each Redis instance.9121

Exporter configuration files contain the credentials the exporter uses to connect to Redis or MongoDB. Anyone who can read the files can connect to those servers. Create a dedicated account for each exporter with only the permissions it needs to read metrics, restrict read access to the files, and keep them out of source control.

Start with a 15-second scrape interval. The alert rules count starts over 1-minute windows and use 5-minute CPU rates, and Prometheus needs at least four samples in a window to evaluate it reliably. At 15 seconds, a 1-minute window holds four samples. At 30 seconds, it holds two, so one missed or delayed scrape leaves a gap in the demand figures that every demand-based alert depends on. Change the interval only if you also widen those windows.

When everything in the table is running, go to Status > Targets in Prometheus and confirm each target shows UP before you continue. For what each exporter collects, see Exporters.

Install the dashboard

The Itential Platform Monitoring dashboard is published in the Grafana dashboard marketplace. It turns the raw metrics into ready-made panels. Install it after Prometheus is scraping your targets. If you have questions about installing the dashboard, contact your Customer Success team.

1

Confirm the data source

In Grafana, confirm Prometheus is configured as a data source and that its connection test succeeds.

2

Import the dashboard

In Grafana, go to Dashboards > New > Import, enter the dashboard ID 25527, and load it. If your Grafana can’t reach grafana.com, download the dashboard JSON from the marketplace page and upload the file instead.

3

Select the data source

When Grafana prompts you, select your Prometheus data source, then import.

4

Verify the panels

Open the dashboard and set the Node filter to All. Confirm the panels on the Overview, Platform Process, Workflow Engine, Redis, and MongoDB tabs show data. A panel with no data usually means its exporter target is down, so check Status > Targets in Prometheus.

Understand the job metrics

The job metrics count events or report a level. None of them measures how long a job or task takes.

MetricTypeChanges whenLabels
itential_job_startCounterA job document is inserted into jobs.None
itential_job_errorCounterA job’s status becomes error.None
itential_job_cancelCounterA job’s status becomes canceled.None
itential_task_startCounterA task document is inserted into tasks.server_id
itential_task_error, itential_task_cancelCounterA task’s status becomes error or canceled.server_id
itential_task_completeCounterA task’s status becomes complete.server_id
itential_job_status_total, itential_task_status_totalGaugeThe current number of jobs or tasks in each status.status
itential_watcher_reconnects_totalCounterThe exporter reconnects to MongoDB to watch for job and task events.None

The exporter also exposes itential_up, itential_poll_errors_total, itential_scrape_duration_seconds, and itential_build_info. Confirm what they mean against the exporter’s documentation for your version.

Keep these points in mind when you read the metrics:

  • A counter is a running total. Use rate() for events per second and increase() for a count over a window.
  • Started means created. A job or task counts when its document is inserted, regardless of its first status. Pause and resume don’t count as separate events.
  • Errors and cancels count when the status changes.
  • Resolution is the scrape interval. At 15 seconds, you can see that jobs started within a window, but not the second each one started.
  • A 5-minute rate smooths bursts. One event stays in the window for 5 minutes, so a short burst appears as a plateau about 5 minutes wide.
  • Restarts reset counters. rate() and increase() handle the reset, but events that happen while the exporter is down aren’t counted, because the exporter holds its change-stream position in memory.
  • Job counters have no node label, so you can’t analyze jobs per node. Task counters carry server_id.

Read the dashboard

The Itential Platform Monitoring dashboard answers the capacity questions on these tabs:

  • Workflow Engine for demand
  • Overview and Platform Process for resources
  • Redis and MongoDB for the dependencies the job queues run on

The dashboard reports percentiles, written as p50, p95, and p99. A percentile is the value that many percent of measurements fall at or below. The p50 is the typical value. The p99 is a value that only 1% of measurements exceed.

QuestionPanel and tabHow to read it
How many jobs arrive?Job Rates, Started line. Workflow Engine.Events per second over a 5-minute window, from rate(...[5m]).
How heavy is a busy minute?Jobs Started per Minute and Tasks Started per Minute. Workflow Engine.Average, p10, p50, p95, p99, and peak, counted only over minutes with at least one start. The panels use increase(...[1m]).
Is work spread evenly?Task Distribution by Server, Total Tasks. Workflow Engine.Similar slices mean balanced work across nodes.
Is the metrics pipeline healthy?Watcher Reconnects. Workflow Engine.Rising reconnects over the last hour mean the exporter’s connection to MongoDB is unstable, so it might miss job and task events.
Do the hosts have room?Node CPU Busy %, Per-Core CPU Busy %, Load Average per Core, RAM, Disk. Overview.Itential’s tuning guidance is that CPU below 80% sustained is healthy, with a target of 60% to 80%. The alert rules in this topic start a warning at 70% host CPU for 5 minutes, for early awareness. For the tiers, see Exporters.
Which process is heavy?Top Applications and Adapters by CPU and Memory, Component Resource Detail. Platform Process.CPU is a percent of one core, and Itential’s 70%, 85%, and 95% tiers use that unit. A Node.js process runs on one main thread, so one process rarely exceeds about one core. It can pass 100% when worker threads are in use.
Are the job queues healthy?Queue Operations and Queue Operation Latency. Redis.Average server-side time of the commands the job queues use. The tiers are 1 ms and 10 ms.
Are the databases healthy?MongoDB tab, plus Redis memory and evictions.Replication lag, connections, memory, and cache use.

On the started-per-minute rows, p50 is the typical busy minute. An average well above p50 means load arrives in spikes. Size headroom for p95, p99, and the peak, not the average. Idle minutes are excluded, so these figures describe busy minutes only. The CPU percentiles in the baseline table include idle minutes.

Next steps