Document recently merged monitoring and stale-telemetry runtime behavior in unclaimed public and in-app Help guides: - docs/FAQ.md and docs/UNIFIED_RESOURCES.md (with byte-for-byte mirrors under frontend-modern/public/docs/): document GuestDrawer stale primary-provider metric deferral into inline History last-known values (keeping live linked-agent disk readings current when disksFromAgent is active) and static total disk capacity preservation (<total> disk) from #5391 (13e38a9f3d), and add the missing stable Machines (/standalone/machines) stale Pulse Agent telemetry summary to FAQ "No data showing?" (c4981ed295) while keeping preview-only standaloneVms out of stable guides. - docs/api/SCHEDULER_HEALTH.md and docs/monitoring/PROMETHEUS_METRICS.md: document retired running-poll slot release without successor cadence reads (#5399) and lock-free Proxmox offline-grace, cache expiry, and History expiry logging plus non-blocking tombstone expiry deferral (#5382, #5394, #5403,76b8427c39). - scripts/tests/test_stale_reading_help_docs.py and scripts/tests/test_watchdog_help_docs.py: bind the updated Help prose to live frontend and Go source markers. Contract-Neutral: Documentation, Help-mirror, and doc-regression test alignment only with no runtime, UI, API, or subsystem contract delta. Change-source: pulse-maintainer
27 KiB
📊 Prometheus Metrics
Pulse exposes metrics at /metrics (default port 9091).
Example scrape target:
http://127.0.0.1:9091/metrics
This listener is separate from the main UI/API port (7655) and binds to loopback by default. Use PULSE_METRICS_BIND_ADDRESS only when a scraper must reach Pulse from another host.
When PULSE_METRICS_TOKEN is set, Pulse refuses to serve that bearer token on a non-loopback plaintext listener unless PULSE_METRICS_ALLOW_INSECURE_REMOTE=true is explicitly set. Prefer a local Prometheus agent, SSH tunnel, VPN-private scrape path, or TLS/mTLS reverse proxy for remote scraping.
| Variable | Description | Default |
|---|---|---|
PULSE_METRICS_PORT |
Metrics listener port. | 9091 |
PULSE_METRICS_BIND_ADDRESS |
Metrics listener bind address. Keep loopback unless a protected remote scraper needs direct access. | 127.0.0.1 |
PULSE_METRICS_TOKEN |
Optional bearer token required for /metrics. |
(empty) |
PULSE_METRICS_ALLOW_INSECURE_REMOTE |
Explicit opt-in to serve PULSE_METRICS_TOKEN on a non-loopback plaintext listener. Use only behind a trusted private network or TLS-terminating proxy. |
false |
In Docker and Kubernetes you must expose 9091 explicitly if you want to scrape it from outside the container/pod, and the container/pod should set PULSE_METRICS_BIND_ADDRESS to the intended listener address.
Helm note: the current chart exposes only port 7655, so Prometheus scraping requires an additional Service that targets 9091 (and a matching ServiceMonitor).
🌐 HTTP Ingress
| Metric | Type | Description |
|---|---|---|
pulse_http_request_duration_seconds |
Histogram | Latency buckets by method, route, status. |
pulse_http_requests_total |
Counter | Total requests by method, route, status. |
pulse_http_request_errors_total |
Counter | Error totals by method, route, status_class (client_error, server_error, none). |
pulse_http_deprecated_api_usage_total |
Counter | Requests routed through deprecated API compatibility paths by feature and route. |
On builds that report registered route patterns, route identifies the
pattern (for example /api/state or /api/orgs/{id}) rather than the
requested path. Requests that match no pattern, including frontend pages and
assets, are recorded as unmatched. Earlier builds use a normalised request
path. The fixed paths in the agent example below work with both. method is
a standard HTTP method, or other on builds that report registered patterns.
🔄 Polling & Nodes
| Metric | Type | Description |
|---|---|---|
pulse_monitor_poll_duration_seconds |
Histogram | Per-instance poll latency. |
pulse_monitor_poll_total |
Counter | Success/error counts per instance (result label). |
pulse_monitor_poll_errors_total |
Counter | Poll failures by error_type. |
pulse_monitor_poll_last_success_timestamp |
Gauge | Unix timestamp of last success. |
pulse_monitor_poll_staleness_seconds |
Gauge | Seconds since the last successful connection poll, measured at scrape time. |
pulse_monitor_poll_queue_depth |
Gauge | Total tasks still in active scheduler queues at scrape time. |
pulse_monitor_poll_inflight |
Gauge | In-flight polls by instance_type. |
pulse_monitor_node_poll_duration_seconds |
Histogram | Per-node poll latency. |
pulse_monitor_node_poll_total |
Counter | Success/error counts per node (result label). |
pulse_monitor_node_poll_errors_total |
Counter | Node poll failures by error_type. |
pulse_monitor_node_poll_last_success_timestamp |
Gauge | Unix timestamp of last node success. |
pulse_monitor_node_poll_staleness_seconds |
Gauge | Seconds since the last successful node poll, measured at scrape time. |
Check whether polling is still running
Use your existing scrape. A successful scrape means Pulse served metrics, not that polling succeeded.
First match the Pulse server and the monitored connection. With Prometheus's
default honor_labels: false, the instance label on scraped poll metrics
identifies the Pulse scrape target. Pulse's own instance label is renamed
to exported_instance and identifies the monitored connection. Filter on
both, especially if two Pulse servers use the same connection name. For
example, check the scrape and the PVE poll results separately over the same
window, replacing the example labels with yours:
up{job="pulse", instance="pulse-a.example:9091"}
pulse_monitor_poll_total{
job="pulse", instance="pulse-a.example:9091",
instance_type="pve", exported_instance="home-pve"
}
Keep the result series separate. For a PBS connection, select its pbs
type and name. For the per-node counters, also select the expected node.
If the scrape failed (up is 0) or the matching up series is missing,
you cannot tell from a flat poll graph whether collection stopped. If you
preserve exporter labels (honor_labels: true) or relabel metrics, inspect
the actual series labels instead. A poll metric's instance may then be the
connection name, not a label you can match to up.
The staleness gauges above measure age on every scrape, including when polls
stop finishing. They show -1 after an observed failure before the first
success; the corresponding last-success timestamp is absent until a success.
The age and timestamp for each label set on a scrape use the same successful
completion. A delayed older result still counts as a poll but does not move
that completion backwards. An older exporter may update the age gauges only
when a result is recorded, so its gauges can stay at zero during a stall. For queries that work
with either exporter, subtract the last successful poll time from query time:
- Per connection:
time() - pulse_monitor_poll_last_success_timestamp - Per node:
time() - pulse_monitor_node_poll_last_success_timestamp
Look at the connections and nodes you still expect Pulse to poll. Paused or removed targets can retain old series. Allow for the configured cadence, including adaptive polling, and normal poll duration. An age that keeps rising means no new success has been recorded. An absent series is not an age of zero: the exporter may not have recorded the required observation since startup, or Prometheus may not have a current scrape. Check expected series and scrape gaps separately.
If the age keeps rising during successful scrapes, plot the matching
pulse_monitor_poll_total for each connection, split by result. For a
Proxmox node, use pulse_monitor_node_poll_total instead. Compare several
scrapes of the same source without a Pulse restart. Choose a window longer
than its usual time between results, including poll duration and retry
backoff. Do not fill absent series with zero. For example, the
result="error" series may not exist until the first failure is recorded.
| What you see | What it means |
|---|---|
No new success, but the result="error" counter rises |
Pulse is still recording outcomes for that source. Check why its polls are failing. |
| No new outcomes across several sources that normally poll in that window, despite fresh scrapes | Check for intentional pauses and normal backoff. If neither explains the gap, note when the last readings advanced and whether the monitored systems were still responding. Flat counters alone do not distinguish slow polls from stopped work. |
When comparing runs before and after an update, check the same connections and nodes in both windows. A new poll timestamp does not prove every guest or backup datastore refreshed. Check agent requests separately. When measuring memory, treat a gap in collection or reporting as unverified work rather than a memory saving.
Check whether agent requests finished
If you already scrape Pulse, graph this alongside the poll results, over the same window and for the same Pulse scrape target. It uses existing traffic. Do not re-register an agent or send a test report to make a counter move.
pulse_http_requests_total{
job="pulse", instance="pulse-a.example:9091", method="POST",
route=~"/api/auto-register|/api/agents/(agent|host|docker)/report"
}
Keep the lines separate by route and status. /api/auto-register includes
Proxmox registration checks and is not a telemetry report.
/api/agents/agent/report and its older /api/agents/host/report alias are
separate lines. /api/agents/docker/report is the Docker and Podman report
stream, including when the same Pulse Agent also reports machine readings.
Compare the lines your installation normally produces. New machine reports
can keep arriving while Docker reports stop, so do not add the routes together.
An increasing 2xx counter shows HTTP success for that route. It does not tell you whether a registration was confirmed, which agent reported, or whether a particular reading changed. Check Last seen and the readings for the same machine or Docker host in Pulse.
Choose a window that covers the agents' normal request intervals. With fresh scrapes and no Pulse restart, a flat line shows no increase for that route and status between samples. A missing line gives you no reading, not zero. An HTTP request still waiting to return has not been counted. These counters alone cannot tell you whether requests stopped reaching Pulse or stopped finishing. If an agent's existing log shows timeouts at the same time, keep that timing with the poll results. If scrapes failed or are missing, do not infer a stall from a flat graph.
Neither this graph nor a fresh reading proves that alert rules ran. If a threshold alert is already open, you can check its evaluation time in the same window without changing a rule or sending a test notification.
🧠 Scheduler Health
| Metric | Type | Description |
|---|---|---|
pulse_scheduler_queue_due_soon |
Gauge | Tasks still queued that are due now or within 12 seconds, measured at scrape time. |
pulse_scheduler_queued_poll_overdue_seconds |
Gauge | Seconds past the scheduled time of the most overdue timestamped poll still queued across running schedulers; zero if none. |
pulse_scheduler_queue_depth |
Gauge | Tasks still queued at scrape time, by instance_type. |
pulse_scheduler_queue_wait_seconds |
Histogram | Wait time between task readiness and execution. |
pulse_scheduler_claimed_poll_overdue_seconds |
Gauge | Seconds past one poll task timeout for the most overdue claimed poll, by stage. Zero if no claimed poll is over that budget. |
pulse_scheduler_poll_planning_age_seconds |
Gauge | Seconds the oldest active poll planning pass has spent reading rosters, building the plan or putting work on the queue. Process-wide, without labels. Zero means no measurable planning wait, not healthy monitoring. |
pulse_scheduler_dead_letter_depth |
Gauge | Terminal poll entries still parked in running schedulers at scrape time, by instance_type and instance. |
pulse_scheduler_breaker_state |
Gauge | 0=Closed, 1=Half-Open, 2=Open, -1=Unknown. |
pulse_scheduler_breaker_failure_count |
Gauge | Consecutive failure count. |
pulse_scheduler_breaker_retry_seconds |
Gauge | Seconds left until the last recorded breaker retry deadline, measured at scrape time. Zero if that deadline has passed or none was recorded for this breaker. |
The queue gauges count waiting tasks across the running schedulers, not work already claimed by a worker or parked in the dead-letter queue. A stopped scheduler drops out of these queue gauges even if a blocked worker has not returned yet; check the claimed-poll gauges for that worker. Older builds publish the last recorded queue sample: a flat due-soon gauge on those builds does not show that nothing has become due.
The overdue age can grow while the due-soon count stays flat. Check it
on successive fresh scrapes: it measures delay before a worker claims
the poll, from the scheduled time, not from the worker's timeout budget.
It excludes future retries and queue entries without a scheduled time.
The value has no connection or workspace labels. If the series is missing,
or you need to check one workspace, use queue.oldestOverdueSeconds in a
Scheduler Health snapshot
when available. Neither a zero age nor an empty queue establishes that
collection ran or recovered.
Dead-letter depth adds the entries from running schedulers with the same labels. After a connection recovers, or after its scheduler is stopped or replaced, its old entries no longer contribute. A label with no remaining entries reads zero for up to five minutes after its last positive scrape, then Pulse omits the series. Neither zero nor an absent series proves collection is running; compare with the poll result counters and freshness in the same window.
When expected results stop, check the two claimed-poll stages on successive scrapes:
waiting_for_slot: a due poll left the scheduler queue but is still waiting for a process-wide worker slot (POLL_TASK_WORKERS). The budget starts at the poll's scheduled time. If the connection or check is removed while its claim is still waiting for a slot, the dispatcher releases the retired claim without starting provider setup or changing thePOLL_TASK_WORKERSlimit and moves on to another due target. An explicit replacement keeps its own due time, while a poll already admitted torunningkeeps its claim until it returns. Both local per-monitor workers and the process dispatcher also re-check claim retirement at the execution boundary before provider setup, so a target removed or replaced after dequeue or slot admission skips starting an obsolete poll while keeping the replacement's own schedule.running: a worker took the poll but has not returned, including task preparation, provider calls, rescheduling and recovery logging. A worker stays visible in this stage while occupied in panic recovery logging even after releasing its queue claim. When an already-admittedrunningpoll returns after its monitor context or queue claim was retired, the worker releases its slot without starting another provider cadence read to plan a successor while keeping any explicit replacement's schedule intact. The budget starts at worker admission. An execution deadline can expire before the work actually returns.
If pulse_scheduler_queued_poll_overdue_seconds and both claimed-poll stages
stay at zero while expected poll counters stop moving, check
pulse_scheduler_poll_planning_age_seconds on successive scrapes. A rising age
means an unfinished poll planning pass is still blocked reading provider
rosters, building the plan, or queuing tasks before any work reaches the queue.
When a monitor is retired while a planning pass is reading rosters, Pulse
abandons the returned plan once cancellation is observed instead of queuing
tasks or running post-plan statistics and alert reconciliation, while keeping
the still-running pass visible in pulse_scheduler_poll_planning_age_seconds
until it returns. Zero means no active planning wait is measured at scrape time,
not that polling is healthy or that the watchdog heartbeat or alert rules ran.
Use this signal with the result counters. A returned error waiting for its next retry is not overdue work. The gauges cover claimed polls across the Pulse process, not individual connections or tasks still in the queue. Zero does not prove polling is healthy, and a missing series is not zero. This does not measure agent reports or rule evaluation, decide that a target is down, or send an alert.
Check whether backoff still explains the wait
On fresh scrapes, check pulse_scheduler_breaker_retry_seconds for the
same expected connection as the poll results. A positive value means
the recorded deadline is still ahead. It can count down to zero with the
breaker still recorded as open: a scrape does not admit or run a poll.
An elapsed deadline means this breaker delay no longer explains the wait,
not that a worker is free or that collection recovered. Check poll
results and the overdue stages above before drawing that conclusion.
A missing series is not zero. Breaker series can outlive a removed
connection, so check only targets you still expect Pulse to poll.
Older exporters can keep reporting the last recorded positive value even
after the deadline. If using an older exporter or checking a connection
in a particular workspace, compare instances[].breaker.retryAt with
updatedAt for the same connection key in a
saved scheduler snapshot.
A future deadline is the earliest time the breaker could allow a probe.
A missing deadline or a failed snapshot does not establish a retry or a
healthy connection. Allow for the normal poll interval before judging a gap.
Do not reset the breaker, change settings or restart Pulse to make a result appear.
⚡ Diagnostics Cache
| Metric | Type | Description |
|---|---|---|
pulse_diagnostics_cache_hits_total |
Counter | Cache hits. |
pulse_diagnostics_cache_misses_total |
Counter | Cache misses. |
pulse_diagnostics_refresh_duration_seconds |
Histogram | Refresh latency. |
🚨 Alert Lifecycle
| Metric | Type | Description |
|---|---|---|
pulse_alerts_active |
Gauge | Active alerts by level and type. |
pulse_alerts_fired_total |
Counter | Total alerts fired by level and type. |
pulse_alerts_resolved_total |
Counter | Total alerts resolved by type. |
pulse_alerts_acknowledged_total |
Counter | Total alerts acknowledged. |
pulse_alerts_suppressed_total |
Counter | Alerts suppressed by reason (quiet_hours, rate_limit, duplicate, etc.). |
pulse_alerts_rate_limited_total |
Counter | Alerts suppressed due to rate limiting. |
pulse_alert_duration_seconds |
Histogram | Time from alert fire to resolve (by type). |
Check whether an open threshold alert was reevaluated
An alert can be evaluated again without firing or clearing. The lifecycle
metrics above do not count each evaluation. For a threshold alert that is
already open, read /api/alerts/active in your signed-in Pulse browser. Take
two readings on the same Pulse server and workspace, allowing for the normal
interval of that rule's polls or agent reports. Match the alert by both id
and startTime, since another firing of the same rule can reuse the ID.
Compare metricStatus.observedAt for that alert. If it moves forward during
your observation window, Pulse evaluated that threshold again. The value does
not have to change. For example, a temperature alert can stay open at 78 °C
with an alert level of 80 °C and a clear level of 75 °C. lastSeen still dates
the last breach, even when the live observedAt advances.
If the time does not advance, the alert is missing, or there is no live
metricStatus (for example, just after a restart), this check does not
establish progress. It does not prove a stall either. A failed request is not
an empty alert list. This only checks the selected rule, not all alerts or
whether a destination accepted a notification. Keep the full response private.
Do not change thresholds or cause an alert just to run this check.
Operational Trust
Operational Trust metrics use closed low-cardinality labels. They never label series with resource, operational-record, evidence, actor, provider-instance, or notification-destination IDs.
| Metric | Type | Description |
|---|---|---|
pulse_operational_trust_observation_to_open_seconds |
Histogram | Time from the first canonical observation to an open operational record. |
pulse_operational_trust_open_to_notification_enqueue_seconds |
Histogram | Time from an open transition to durable notification enqueue. |
pulse_operational_trust_evidence_observations_total |
Counter | Evidence observations by bounded source and state (current, stale, unknown, partial, unavailable, partial_permission, denied, or other). |
pulse_operational_trust_identity_correlations_total |
Counter | Resource correlation outcomes (attached, standalone, ambiguous, unresolved, or other). |
pulse_operational_trust_protection_posture_evaluations_total |
Counter | Protection posture evaluations by state. |
pulse_operational_trust_protection_posture_evaluation_failures_total |
Counter | Posture evaluation failures by bounded reason. |
pulse_operational_trust_notification_delivery_total |
Counter | Transition-linked delivery outcomes (queued, retry, sent, failed, dead_letter, cancelled, or other). |
pulse_operational_trust_active_count_mismatch_total |
Counter | Detected disagreement between the canonical active records and attention projection. |
pulse_operational_trust_action_offers_total |
Counter | Action-offer projections by eligibility. |
pulse_operational_trust_action_verification_total |
Counter | Verification outcomes, including confirmed, contradicted, inconclusive, timed out, and not attempted. |
Example rollout alerts:
increase(pulse_operational_trust_active_count_mismatch_total[15m]) > 0increase(pulse_operational_trust_notification_delivery_total{outcome="dead_letter"}[15m]) > 0increase(pulse_operational_trust_action_verification_total{outcome=~"contradicted|timed_out"}[30m]) > 0
AI Runtime & Patrol
AI and Patrol metrics initialize lazily when the server records its first AI loop, Patrol, or attention observation. A missing series before Patrol runs is not a scrape failure.
| Metric | Type | Description |
|---|---|---|
pulse_ai_agentic_iterations_total |
Counter | Agentic LLM loop turns by provider and model. |
pulse_ai_strict_resolution_block_total |
Counter | Actions blocked because the target resource was not resolved, by tool and action. |
pulse_ai_routing_mismatch_block_total |
Counter | Operations blocked for targeting a parent host instead of a child resource, by tool, target_kind, and child_kind. |
pulse_ai_phantom_detected_total |
Counter | Detected phantom execution claims by provider and model. |
pulse_patrol_run_total |
Counter | Patrol runs by trigger and type (full or scoped). |
pulse_patrol_circuit_block_total |
Counter | Patrol runs blocked by the AI provider circuit breaker. |
pulse_patrol_finding_rejected_total |
Counter | Findings rejected by threshold validation, by resource_type and metric. |
pulse_patrol_investigation_outcome_total |
Counter | Patrol investigation completions by outcome. |
pulse_patrol_fix_verification_total |
Counter | Patrol fix verification results by result. |
pulse_patrol_triage_flags |
Histogram | Deterministic triage flags produced per Patrol run. |
pulse_patrol_triage_quiet_total |
Counter | Patrol runs recorded as quiet infrastructure with no triage flags and no active findings. |
pulse_patrol_scoped_dropped_total |
Counter | Scoped Patrol runs dropped because another run was already in progress. |
pulse_patrol_scoped_dropped_final_total |
Counter | Scoped Patrol runs permanently dropped after exhausting retries. |
pulse_patrol_stream_resume_outcome_total |
Counter | Patrol event-stream subscriber resume outcomes by outcome. |
pulse_patrol_stream_resync_reason_total |
Counter | Synthetic Patrol stream snapshots by reason. |
pulse_patrol_stream_replay_events_total |
Counter | Patrol stream events replayed to resuming subscribers. |
pulse_patrol_stream_replay_batch_size |
Histogram | Patrol stream replay batch size per subscriber sync. |
pulse_patrol_stream_subscriber_drop_total |
Counter | Patrol stream subscribers dropped by reason. |
pulse_patrol_attention_items |
Gauge | Current Patrol attention item count by canonical lifecycle state. |
pulse_patrol_attention_oldest_age_seconds |
Gauge | Age in seconds of the oldest active Patrol attention item. |
pulse_patrol_attention_acknowledgement_latest_seconds |
Gauge | Elapsed seconds from first observation to the newest current acknowledgement. |
pulse_patrol_calm_evaluation_timestamp_seconds |
Gauge | Unix timestamp of the latest canonical Patrol calm-day evaluation. |
Database, Discovery & Access
Database and RBAC metrics initialize lazily on their first wrapped database or RBAC event. Discovery metrics register at startup.
| Metric | Type | Description |
|---|---|---|
pulse_db_query_duration_seconds |
Histogram | Wrapped SQLite query execution time by database and operation. |
pulse_db_slow_queries_total |
Counter | Wrapped database queries at or above 100 ms by database and operation. |
pulse_discovery_scans_total |
Counter | Network discovery scans by result. |
pulse_discovery_scan_duration_seconds |
Histogram | Network discovery scan duration in seconds. |
pulse_discovery_last_scan_servers |
Gauge | Servers found in the most recent discovery scan. |
pulse_discovery_last_scan_errors |
Gauge | Errors encountered in the most recent discovery scan. |
pulse_rbac_managers_active |
Gauge | Active tenant RBAC manager instances in cache. |
pulse_rbac_role_mutations_total |
Counter | RBAC role mutations by action (create, update, delete, deprovision, assign). |
pulse_rbac_integrity_checks_total |
Counter | RBAC integrity checks by result (healthy, unhealthy). |
Unified Agent Metrics (127.0.0.1:9191/metrics)
The pulse-agent binary exposes its own Prometheus endpoint on each monitored host, separate from the Pulse server listener on port 9091. By default it binds to 127.0.0.1:9191 and can be changed with --health-addr or disabled with --health-addr "" or PULSE_HEALTH_ADDR=off (see Agent Security).
| Metric | Type | Description |
|---|---|---|
pulse_agent_info |
Gauge | Agent metadata labeled by version, host_enabled, docker_enabled, and kubernetes_enabled. |
pulse_agent_up |
Gauge | Agent liveness (1 = up, 0 = down). |
pulse_agent_module_enabled |
Gauge | Whether each agent module is configured to run (1 or 0). |
pulse_agent_module_ready |
Gauge | Whether each configured agent module initialized successfully (1 or 0). |
pulse_agent_destination_configured |
Gauge | Configured Pulse report destinations by module, destination, and role. |
pulse_agent_destination_delivery_up |
Gauge | Whether the most recent report delivery to a Pulse destination succeeded (1 or 0), by module, destination, and role. |
pulse_hostagent_command_approval_grant_rejections_total |
Counter | Approval-required commands rejected by the host agent due to invalid approval grants, by reason. |
🚨 Alerting Examples
- High Error Rate:
rate(pulse_http_request_errors_total[5m]) > 0.05 - Overdue node poll with a recorded success:
time() - pulse_monitor_node_poll_last_success_timestamp > 300. Five minutes is an example, not a default for every cadence. The check does not alert on a missing series. Use the poll and scrape checks above. - Breaker Open:
pulse_scheduler_breaker_state == 2