Area: Observability Issues
Sub-Area: Metrics and Monitoring
Applies to: Cloud
Issue
Remote Executor deployments expose more Prometheus metrics on the /metrics endpoint than the documented ones (ingestion requests, ingestion errors, resource metrics). Their purpose is unclear, which makes it hard to build monitoring and alerting for production Remote Executors.
You Might Be Asking
- What do the less documented datahub_executor_worker_* metrics represent?
- How can I detect if my Remote Executor is alive but its processing is stuck?
- Why are some metrics always zero in my environment?
- Which metrics should I monitor for production alerting?
Cause
The executor registers many metrics. Each metric name is datahub_executor_ plus the lower-cased registry key, so worker metrics start with datahub_executor_worker_ (for example datahub_executor_worker_ingestion_requests). Below, metrics whose full name is confirmed are written in full. For the others, the list gives the short name. Search your own /metrics output for that name to find the full one.
Several metrics count only specific events, so a zero value is often normal.
Prometheus clients usually add suffixes such as _total to counters and _count or _sum to summaries. Check the exact names on your own /metrics output.
Solution
Read the metrics endpoint
The executor serves Prometheus/OpenMetrics metrics on port 9087 by default (DATAHUB_EXECUTOR_METRICS_PORT). Port 8080 is not the metrics port. For example:
curl http://<executor-host>:9087/metrics
On Kubernetes, forward the port and then curl it:
kubectl port-forward <pod> 9087:9087
curl localhost:9087/metrics
See Remote Executor Monitoring.
Documented metrics
-
datahub_executor_worker_ingestion_requests: total jobs received. -
datahub_executor_worker_ingestion_errors: failed jobs. -
datahub_executor_memory_*,_cpu_*,_disk_*,_net_*: resource metrics.
Ingestion metrics
-
ingestion_requests (Counter, full name
datahub_executor_worker_ingestion_requests): ingestion requests received and processed. -
ingestion_errors (Counter, full name
datahub_executor_worker_ingestion_errors): errors processing ingestion requests. - ingestion_fetch_signal_requests (Summary): times the executor's poll of DataHub for signals, such as cancel requests, on its running ingestion tasks. The executor polls only while an ingestion task is running on it. Zero means no ingestion has run on that executor. It does not mean nothing was cancelled.
- ingestion_fallback_fetch_requests (Summary): times fetches of an execution request from DataHub when the queued message held a truncated request, because it was too large to send inline. It does not indicate a failed primary path.
-
datahub_executor_worker_ingestion_visibility_timeout (Counter, label
pool_name): number of tasks skipped due to the SQS visibility timeout. -
datahub_executor_worker_thread_pool_active_threads and datahub_executor_worker_thread_pool_max_threads, and datahub_executor_worker_thread_pool_active_weight and datahub_executor_worker_thread_pool_max_weight (gauges, label
thread_pool_name): active and maximum threads and weight of the thread pools.
Assertion metrics
-
assertion_evaluate_started_total and assertion_evaluate_completed_total (result is COMPLETED, EMIT_FAILED, ERROR, SKIP_UNKNOWN_TYPE or SKIP_DELETED): compare the
rate()of the two to detect orphaned evaluations. Useresult=EMIT_FAILEDto detect DataHub rejecting results. - assertion_evaluate_in_flight (Gauge): evaluations running now.
-
datahub_executor_worker_assertion_evaluate_requests (Summary): times
evaluate_assertion. The assertion executor's worker calls it for every request submitted to its thread pool, unless the executor is stopping. It records when an evaluation finishes. A count of zero means no evaluation has finished: none were called, or they are still running or hung. Investigate a zero count while assertion requests keep arriving.
System metrics
-
credentials_refresh_requests (Counter, label
pool_name): counts refreshes of the temporary AWS credentials for the executor's SQS queue. It does not count database or source credentials. It stays at zero on Kafka-channel pools. -
discovery_ping_requests (label
pool_name): times each discovery status ping. A separate thread sends the ping everyDATAHUB_EXECUTOR_DISCOVERY_INTERVALseconds (default 30). Failed pings are also timed, and failures are counted separately indiscovery_ping_errors. If the backend does not support discovery, the metric never rises. -
monitoring_push_requests: times the executor's push of its own metrics. The executor sends them gzip-compressed by HTTP POST to
<telemetry base URL>/telemetry/push/<executor identity>with the DataHub authorization header. No Prometheus PushGateway is involved. - datahub_executor_worker_config_fetcher_requests (Summary): count and time spent fetching executor configs from DataHub.
- monitor_bootstrap_execute_requests: count and time spent executing metric bootstrap requests.
- monitor_training_executor_requests: number of evaluate requests handled by the monitor training executor.
Detect an executor that is alive but stuck
A discovery ping stall is not a reliable sign of a frozen application. Discovery pings run on their own thread and keep rising while ingestion or assertion work is stuck. A stall shows only that the discovery thread or the whole process stopped. The ping also does not check task intake, so a fresh status alone does not prove the executor is taking work.
To find stuck work, use these signals instead:
- For assertions, compare
assertion_evaluate_started_totalwithassertion_evaluate_completed_total, and watchassertion_evaluate_in_flight. - For ingestion, comparing requests with errors measures failures, not stuck work. Use the next step to see what is running.
- In the UI, open Data Sources > Executors. For each pool it shows the active executors, each executor's last reported time, status (Active or Stale), and the ingestion tasks running now.
- For pod-level checks, Kubernetes probes or ECS health checks can use the liveness and readiness files
/tmp/worker_liveness_heartbeatand/tmp/worker_readiness_heartbeat.
If you restart a busy executor, its running runs are aborted. Don't automate restarts on a quiet log.