Skip to main content
Version: 0.3.0

Monitoring

Monitoring is the runtime operations and observability surface for a single PADAS Core: operators watch live data movement across streams, tasks, sources, and sinks, and pivot into stream diagnostics, live event inspection, PDL querying, and system telemetry without leaving one workspace. It replaces separate Streams-only and Core-only monitoring pages—this is the unified streaming operations console for pipeline health, throughput analysis, and incident response.

The UI combines live telemetry with event visibility: tables expose EPS, drops, and latency; Query and Monitor open runtime stream tooling; the metrics tab charts resource saturation and backpressure-related signals. Together they read like a Kafka-style stream observability layer paired with SIEM-grade runtime diagnostics—grounded in production troubleshooting, not a passive dashboard.

Use the Core / Lookup tabs at the top of Monitoring to change service type. Each Lookup tab shows the service name and its host:port, the same as the Core tabs. Lookup monitoring reads the selected lookup-server's live health, the Tables / Connectors / Bindings counts, table metadata (including case fold and index types), connectors, and cache bindings. Connector columns are Name, Type, Table, Status, Error, then Last run. Consumer shows the core name and host:port; Instance UUID next to it is the core's service_instance_uuid that lookup-server uses as consumer_id. Assign bindings with Pick tables on Services → Cores. The Metrics tab on Lookup shows history charts from the UI’s local scrape (connector status swimlane, poll rates, table rows, and related padas_lookup_* / padas_http_* series)—separate from Core system telemetry. Connector authoring, Deploy, and Trigger are in the Lookup Connectors modal, opened by Connectors on Services → Lookups. Monitoring does not gain a Deployed Time column; deployed time is on the connector's assignment chips.

Runtime scope​

RuleOperational detail
Core-local metricsEvery number and row reflects the selected Core only—runtime telemetry is not normalized across engines.
Live engine behaviorReadouts come from the running Core’s APIs; Monitoring shows runtime state, not registry intent.
Per-Core varianceThroughput, drops, and EPS can differ sharply between Cores; switch the selector to compare—there is no cluster-wide aggregation.
No merged topology intentGraph placement and definitions remain authoritative under Pipelines (registry intent) and the Config icons on the same table (assign/deploy); this page answers what is happening now on disk and wire.

Monitoring workspace​

The workspace is a single operational monitoring surface: Streams, Tasks, Sources, and Sinks share one scrollable context so runtime bottlenecks surface faster—ingress pressure, stream congestion, task lag, and sink stalls appear side by side.

  • Unified topology visibility — User pipelines and internal streams (metrics, internal, and similar) sit in the same Streams lens so platform runtime observability is visible next to business event flow.
  • Core ribbon — Status, uptime, aggregate event volume, engine version, and counts (connectors, streams, tasks) give a pipeline health pulse before you drill into rows.
  • Pivot without navigation — Toggle from component tables to the system telemetry view to correlate throughput swings with CPU, memory, and internal counters.
Monitoring Core selector streams tasks sources sections and actions
Monitoring workspace.

Streams visibility​

Streams are the backbone of stream diagnostics: each row shows event flow health—rates, drops, subscriber geometry, and uptime—so downstream pressure and routing mistakes stand out.

  • Internal streams — Platform channels appear alongside application streams; they matter for metrics fan-out, control traffic, and explaining “missing” volume during deep dives.
  • Producers / consumers — Seeing who publishes and subscribes helps debug stalled consumers, orphaned sinks, or tasks not attached to the stream you expected.
  • Congestion signals — Rising dropped events, flattening EPS, or widening ingress vs egress gaps often precede stream congestion or backpressure symptoms—pair with Monitor / Query on the same stream.

Tasks, sources, and sinks extend the same story: task rows expose mode, stream wiring, pool usage, and processing latency; connector rows expose class, enablement, events in/out, EPS, and last error for connector saturation and failure triage.

Runtime metrics​

Use row metrics as live telemetry for throughput analysis and runtime troubleshooting:

SignalProduction interpretation
EPS (avg / peak)EPS collapse after a deploy often flags a failed pipeline slice, blocked stream, or silent connector; sustained low EPS vs peers hints stalled consumers or throttled ingress.
Events in / out / countThroughput imbalance (ingress high, egress flat) suggests downstream congestion or an overloaded task; the inverse may indicate idle sinks or misrouted keys.
Dropped eventsAbnormal drops plus flat EPS can mean buffer pressure or publish-side rejection; spikes during incidents deserve correlation with system telemetry and connector errors.
Avg processing (ms) (tasks)Elevated latency with stable ingest points to overloaded tasks, hot partitions, or expensive PDL on the hot path.
Last error (connectors)Shortcut to connector saturation, auth, or destination faults before log diving.

Treat these as runtime metrics that complement—not replace—live event inspection and stream querying.

Querying stream data​

Query runs PDL directly against runtime stream data: the editor, time window, refresh cadence, and row limits target the selected stream’s live tail and, where retention allows, historical segments. That makes Query the fastest path for ad-hoc diagnostics during incidents—validate parsers, filters, and eval logic on real traffic without replay tooling.

ControlWhen operators use it
Run QueryOne-shot replay-style investigation over the configured window—ideal for proving a hypothesis on retained or sliding history.
Run & CaptureSampling runs that retain result sets for tickets, comparisons, or follow-up—operational distinction: structured capture of query outcomes vs ephemeral scrolling.

WAL-backed streams with retention may expose enough history for replay investigation of recent failures; in-memory or short-retention streams emphasize near-live behavior—see Streams for durability expectations.

Results surface as event id, timestamp, and JSON payloads so teams can confirm fields before touching registry definitions.

Stream query modal PDL editor time window Run Query results
Runtime stream query.

Syntax references: PDL Quick Reference, PDL Reference.

Live monitoring​

Monitor delivers near real-time event visibility: a LIVE feed with refresh intervals, limits, stop/start controls, and inline filtering so operators watch bytes-on-wire behavior during rollout validation or parser troubleshooting.

Capture from Monitor (or related controls) seeds Testing with replay datasets—freeze production-shaped events, then iterate PDL in the Testing workspace without mutating live pipeline execution. That connects live stream observability to runtime-safe experimentation; Testing remains its own validation surface, not a nested mode inside Monitoring.

Live monitoring feed with LIVE badge stream events table
Live stream monitoring.

Registry stream inspection​

Registry opens runtime registry inspection for the stream row: canonical stream metadata—ids, status, activity timestamps, nested WAL configuration, and related fields—in tree or raw JSON, with search, copy, and download.

Use it when runtime behavior diverges from expectations: verify persistence flags, confirm WAL is enabled/disabled as designed, validate activity timestamps during deployment troubleshooting, or export evidence for change review. It complements Streams by showing what the engine currently materialized, not only what was authored.

Registry stream modal JSON tree status WAL fields
Registry stream inspection.

System metrics​

The metrics tab is the system telemetry dashboard for the same Core: preset windows (15m–7d), selectable series (CPU, memory, connector/stream/task counters, backpressure totals, processed/dropped aggregates), and synchronized charts for runtime stability analysis.

Operators correlate throughput dips with resource saturation, validate capacity after post-deploy regression windows, and tie stream congestion symptoms to host pressure or Runtime Engine resource limits. This is enterprise-grade observability layered on top of row-level pipeline diagnostics—not “CPU-only monitoring.”

System metrics charts CPU memory metric pills time range
System telemetry dashboard.

Service logs​

Service logs (journal icon in the status header and in the Metrics header for Core and Lookup) opens the selected service's own log file. Auto-refresh and Refresh sit at the right of the Core or Lookup selector, one control for the open tab. On the status tab their tooltips say when the page was updated. On the Metrics tab the same buttons' tooltips say when the last scrape finished. That Monitoring logs button stays disabled until a Core or Lookup is selected. On Services → Cores and Services → Lookups, Logs is an icon in each row's Service group, beside Remove Config; it opens that row's log file. The modal title names both the service and the job, for example Lab Core | Service logs. The console reads the file through that service's GET /api/v1/logs, so you do not need a shell on the host. Signed-in admin and user roles can open it.

The modal opens on the latest lines (From Latest, Limit 100) with Tail on. Every control change reloads the view, so there is no Refresh button:

ControlBehavior
LimitLines per page, 1–500. A page also stops at 1 MiB. Values outside the range are not sent.
FromLatest reads back from the end of the file. Start reads from the beginning.
DatePick a day in the calendar to read that day's rotated file. Use the arrows to change month and the year menu to jump years. Days after today are disabled. Clear it (×) to return to the live file.
TailShown for the live file and for today, and only while From is Latest. On: waits at the end of the file for new lines and appends them. Off: stops waiting and keeps the lines on screen. Hidden when From is Start and on a past day, and no tail request is sent. Choosing Latest again on a live day restores the previous Tail setting. A service serves at most two tail requests at once; when both are busy (for example after several quick control changes, or the modal is open in another tab), the modal waits 2 seconds and tries again without showing an error.
TimeoutHow long one tail request waits for new lines (1–5 s). Shown with Tail, and enabled only while Tail is on; a change restarts the tail.

Lines show Time, Level, Target, and Message. Each column has a filter; Level is a dropdown. The INFO, WARN, and ERROR funnel buttons to the left of Search lines work like a multi-select Level filter: click a button to turn it on, click it again to turn it off, and turn on several to show those levels together. Only the levels present in the loaded lines get a button, and the buttons are hidden when fewer than two of them are present. The buttons and the Level dropdown share one selection.

More Logs (reload icon) appears in the table header while Tail is off and the last read returned a cursor. On the live file and on today it stays available, including at the end of the file, so one click can pick up lines written since the last read. On a past day it appears only while that file still has unread lines (for example after From Start). Each click reads the next page from where the last read stopped (up to Limit lines) and adds it to the bottom without waiting. Turn Tail back on, on a live day, to keep waiting for new lines instead. A line with more JSON fields has a View row action (eye icon) that opens them in the JSON viewer. The modal shows 5 lines per page (page-size menu 5, 10, 25, 50, or 100) and opens on the first page. New lines append, so the page count grows, and the table stays on the page you are viewing. When the log file rolls, Tail continues in the next file. The table title replaces the file, date, and eof fields: the file name, the day (Live file when the name has no date, otherwise 13 Oct 2026), and the read. More lines in this file means unread lines are already on disk. On a live day, the end of this read is Waiting for new lines while Tail is on, and At the end for now while Tail is off, because more lines may still be written. End of file is only a past day whose read reached the end.

If the service has no log file configured, the modal shows file logging is off instead of lines; see Troubleshooting & Logs. A service accepts two tail requests at once. A third is 429; while Tail stays on, the modal waits 2 seconds and retries the same cursor, and the lines already loaded stay. The modal is up to 1600px wide, or 96% of the viewport.

External Prometheus scrape​

The console charts above come from the UI’s local scrape history. External Prometheus, Grafana Agent, or VictoriaMetrics should scrape each service directly:

ServiceURLAudience and scope
Corehttps://<core-host>:8998/metricsaud=padas-core, core:read
Lookuphttps://<lookup-host>:8998/metricsaud=padas-lookup, lookup:read
Cataloghttps://<catalog-host>:8997/metricsaud=padas-catalog, catalog:read
Chronoshttps://<chronos-host>:8995/metricsaud=padas-chronos, chronos:read

When that service’s auth is on, the scrape needs that JWT. Series use the padas_lookup_, padas_catalog_, and padas_chronos_ prefixes.

Response is Prometheus text (Content-Type: text/plain). For Core, the series names follow the engine _padas_metrics contract (for example padas_stream_events_in_total, padas_task_events_out_total). The same Core scrape appends padas_lookup_misses_total when the engine’s lookup client has counted a probe that returned no row. Labels are table and reason (miss, not_indexed, not_ready). That series is not on the Lookup host scrape.

Authentication (S2S JWT)​

After enrollment, the engine validates OAuth S2S JWTs (aud=padas-core). Do not use $PADAS_HOME/core/data/security/service-account.token for scrapers — that opaque file is legacy and returns 401 while S2S is active. Details: Security — Motion Engine API auth.

1. Create a reader client (recommended) — grant-ready credentials with core:read only, separate from Core enroll secrets:

  • Service Clients on the right of the Services tab strip → Add client
  • Enter a client ID (must not match a Core inventory id), copy the client secret once, download the install CA if needed, and use Copy example for Prometheus YAML

Reader clients can also target Lookup: open Service Clients from Services → Lookups (the form starts on Lookup) or pick Lookup in its service selector. Lookup clients receive aud=padas-lookup / lookup:read and a Lookup-target Prometheus example; they cannot read Core metrics. See Enable lookup enrichment.

2. Mint a short-lived token from the console authorization server (default HTTPS :9000) with that reader client:

export PADAS_HOME=/opt/padas
UI=https://<ui-host>:9000
CORE=https://<core-host>:8999
CLIENT_ID=<reader-client-id>
CLIENT_SECRET=<secret-from-console-once>
CA="$PADAS_HOME/ui/data/security/install-ca.crt"

TOKEN=$(curl -sS --cacert "$CA" -X POST "$UI/api/v1/auth/token" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "grant_type=client_credentials" \
--data-urlencode "client_id=${CLIENT_ID}" \
--data-urlencode "client_secret=${CLIENT_SECRET}" \
--data-urlencode "aud=padas-core" \
--data-urlencode "scope=core:read" \
| python3 -c "import sys,json; print(json.load(sys.stdin).get('access_token',''))")

curl -sS --cacert "$CA" -H "Authorization: Bearer $TOKEN" \
"$CORE/metrics" | head

The same request to $CORE/api/v1/metrics returns the same text. Expect 200 and lines starting with # HELP / # TYPE (or # No metrics available when the pipeline snapshot had no series). Do not use the Core enroll secret or service-account.token for scrapers.

Legacy fallback: enrolled Core client secret (not recommended for Prometheus)

If you cannot use reader clients yet, you may mint with the enrolled Core client_id and host-stored secret — that credential carries write scopes and belongs on the Core host, not on a scraper. Prefer reader clients as soon as your console build includes them.

CLIENT_ID=<enrolled-core-client-id>
SECRET=$(sudo cat "$PADAS_HOME/core/data/security/${CLIENT_ID}.client.secret")

Then use the same token curl as above.

3. Configure Prometheus (native oauth2 scrape; Prometheus ≥ 2.27) so it refreshes tokens (static Bearer files go stale). The oauth2.tls_config block is Prometheus configuration for TLS to the token endpoint; job-level tls_config applies to the metrics scrape only — both typically use the install CA you downloaded from the console.

Set server.issuerUrl (console local-config.json) to the same <ui-host> Prometheus uses for token_url (reachable from the Prometheus host, not 127.0.0.1 unless Prometheus runs on the UI machine). The UI TLS certificate must match that host (SAN). S2S background: Security — Motion Engine API auth.

Example:

scrape_configs:
- job_name: padas-core
scheme: https
metrics_path: /metrics
scrape_interval: 15s
oauth2:
client_id: "<reader-client-id>"
client_secret: "<reader-client-secret>"
token_url: "https://<ui-host>:9000/api/v1/auth/token"
scopes: ["core:read"]
endpoint_params:
aud: "padas-core"
tls_config:
ca_file: /etc/prometheus/padas-install-ca.crt
tls_config:
ca_file: /etc/prometheus/padas-install-ca.crt
static_configs:
- targets: ["<core-host>:8999"]
labels:
core_id: "<core-id>"

When you use Copy example from the console after creating a reader client, the job uses metrics_path: /api/v1/metrics (same Prometheus text as /metrics) and static_configs is prefilled from Core inventory (host, port, and id per row). One - targets block per Core; edit hosts if scrapers reach Cores on a different address than the inventory host field.

Scrape each Core as its own target. Choose scrape_interval at least about 2× the engine metrics collection interval so PromQL rate() windows stay meaningful.

If token fetch fails with a hostname mismatch on the install CA, fix issuerUrl and the UI certificate SAN first; only as a last resort for lab debugging consider insecure_skip_verify: true under oauth2.tls_config and job tls_config (not recommended in production).

note

GET /metrics, GET /api/v1/metrics, GET /api/v1/health, and GET /api/v1/ready skip JWT only for loopback clients (127.0.0.1 / ::1). Remote scrapers always need a JWT when S2S inbound auth is configured.

Troubleshooting workflows​

Playbooks are maintained centrally in Troubleshooting & Logs → Monitoring and pipeline playbooks.

warning

Monitoring is runtime-focused: it exposes live telemetry, event visibility, and stream diagnostics—it does not author registry objects or deploy topology. Make registry edits under Pipelines and assign/deploy with the Config icons on that table; use Control Tower for graph-level execution controls. Monitoring reflects runtime state, not intended topology alone.