Skip to main content
APA
Sponsored byCAST AI — Kubernetes cost optimizationBetter Stack — Uptime monitoring and log managementVictoriaMetrics — Fast, open-source time series database and drop-in Prometheus replacement.

Hadoop logoHadoop Prometheus Alert Rules

15 Prometheus alerting rules for Hadoop.Exported via hadoop/jmx_exporter.These rules cover critical and warning conditions — copy and paste the YAML into your Prometheus configuration.

⚠️

Alert thresholds depend on the nature of your applications. Some queries may have arbitrary tolerance thresholds. Building an efficient monitoring platform takes time. 😉

6.3.Hadoop logohadoop/jmx_exporter(15 rules)

wget https://raw.githubusercontent.com/samber/awesome-prometheus-alerts/refs/heads/master/dist/rules/hadoop/jmx_exporter.yml
critical

6.3.1.Hadoop Name Node Down

The Hadoop NameNode service is unavailable.

  # When targets are managed via service discovery, a disappeared target goes stale rather than reporting up==0,
  # so this alert may not fire. Prefer application-level availability metrics if available.
  # Rename job="hadoop-namenode" to match the actual job name in your Prometheus scrape config.
- alert: HadoopNameNodeDown
  expr: up{job="hadoop-namenode"} == 0
  for: 5m
  labels:
    severity: critical
  annotations:
    summary: Hadoop Name Node Down (instance {{ $labels.instance }})
    description: "The Hadoop NameNode service is unavailable.\n  VALUE = {{ $value }}\n  LABELS = {{ $labels }}"
critical

6.3.2.Hadoop Resource Manager Down

The Hadoop ResourceManager service is unavailable.

  # When targets are managed via service discovery, a disappeared target goes stale rather than reporting up==0,
  # so this alert may not fire. Prefer application-level availability metrics if available.
  # Rename job="hadoop-resourcemanager" to match the actual job name in your Prometheus scrape config.
- alert: HadoopResourceManagerDown
  expr: up{job="hadoop-resourcemanager"} == 0
  for: 5m
  labels:
    severity: critical
  annotations:
    summary: Hadoop Resource Manager Down (instance {{ $labels.instance }})
    description: "The Hadoop ResourceManager service is unavailable.\n  VALUE = {{ $value }}\n  LABELS = {{ $labels }}"
critical

6.3.3.Hadoop HDFS Missing Blocks

HDFS has one or more blocks with no surviving replica, meaning permanent data loss has occurred.

- alert: HadoopHDFSMissingBlocks
  expr: max without(job,name)(hadoop_namenode_missingblocks) > 0
  for: 5m
  labels:
    severity: critical
  annotations:
    summary: Hadoop HDFS Missing Blocks (instance {{ $labels.instance }})
    description: "HDFS has one or more blocks with no surviving replica, meaning permanent data loss has occurred.\n  VALUE = {{ $value }}\n  LABELS = {{ $labels }}"
warning

6.3.4.Hadoop Node Manager CPU High

YARN NodeManager CPU utilization is above 80%, which can degrade container scheduling and task execution on this node.

- alert: HadoopNodeManagerCPUHigh
  expr: max without(job,name)(100*hadoop_nodemanager_nodecpuutilization) > 80
  for: 15m
  labels:
    severity: warning
  annotations:
    summary: Hadoop Node Manager CPU High (instance {{ $labels.instance }})
    description: "YARN NodeManager CPU utilization is above 80%, which can degrade container scheduling and task execution on this node.\n  VALUE = {{ $value }}\n  LABELS = {{ $labels }}"
warning

6.3.5.Hadoop Resource Manager vCore Usage High

YARN ResourceManager has allocated more than 80% of cluster vCores, indicating the cluster is nearly out of CPU scheduling capacity.

- alert: HadoopResourceManagerVCoreUsageHigh
  expr: max without(job,name)(100*hadoop_resourcemanager_allocatedvcores/clamp_min(hadoop_resourcemanager_availablevcores+hadoop_resourcemanager_allocatedvcores,1)) > 80
  for: 15m
  labels:
    severity: warning
  annotations:
    summary: Hadoop Resource Manager vCore Usage High (instance {{ $labels.instance }})
    description: "YARN ResourceManager has allocated more than 80% of cluster vCores, indicating the cluster is nearly out of CPU scheduling capacity.\n  VALUE = {{ $value }}\n  LABELS = {{ $labels }}"
warning

6.3.6.Hadoop Resource Manager Memory High

The Hadoop ResourceManager is approaching its memory limit.

- alert: HadoopResourceManagerMemoryHigh
  expr: 100 * hadoop_resourcemanager_allocatedmb / clamp_min(hadoop_resourcemanager_availablemb + hadoop_resourcemanager_allocatedmb, 1) > 80
  for: 15m
  labels:
    severity: warning
  annotations:
    summary: Hadoop Resource Manager Memory High (instance {{ $labels.instance }})
    description: "The Hadoop ResourceManager is approaching its memory limit.\n  VALUE = {{ $value }}\n  LABELS = {{ $labels }}"
warning

6.3.7.Hadoop HBase Region Server Heap Low

HBase Region Servers are running low on heap space.

- alert: HadoopHBaseRegionServerHeapLow
  expr: hadoop_hbase_region_server_heap_bytes / hadoop_hbase_region_server_max_heap_bytes > 0.8 and hadoop_hbase_region_server_max_heap_bytes > 0
  for: 10m
  labels:
    severity: warning
  annotations:
    summary: Hadoop HBase Region Server Heap Low (instance {{ $labels.instance }})
    description: "HBase Region Servers are running low on heap space.\n  VALUE = {{ $value }}\n  LABELS = {{ $labels }}"
warning

6.3.8.Hadoop Node Manager Memory High

YARN NodeManager has allocated more than 80% of its available memory, risking container scheduling failures on this node.

- alert: HadoopNodeManagerMemoryHigh
  expr: max without(job,name)(100*hadoop_nodemanager_allocatedgb/clamp_min(hadoop_nodemanager_availablegb+hadoop_nodemanager_allocatedgb,1)) > 80
  for: 15m
  labels:
    severity: warning
  annotations:
    summary: Hadoop Node Manager Memory High (instance {{ $labels.instance }})
    description: "YARN NodeManager has allocated more than 80% of its available memory, risking container scheduling failures on this node.\n  VALUE = {{ $value }}\n  LABELS = {{ $labels }}"
warning

6.3.9.Hadoop HDFS Disk Space Low

Available HDFS disk space is running low.

- alert: HadoopHDFSDiskSpaceLow
  expr: 100 * hadoop_namenode_capacityremaining / clamp_min(hadoop_namenode_capacitytotal, 1) < 20
  for: 15m
  labels:
    severity: warning
  annotations:
    summary: Hadoop HDFS Disk Space Low (instance {{ $labels.instance }})
    description: "Available HDFS disk space is running low.\n  VALUE = {{ $value }}\n  LABELS = {{ $labels }}"
critical

6.3.10.Hadoop Map Reduce Task Failures

There is an unusually high number of MapReduce task failures.

- alert: HadoopMapReduceTaskFailures
  expr: increase(hadoop_mapreduce_task_failures_total[1h]) > 100
  for: 10m
  labels:
    severity: critical
  annotations:
    summary: Hadoop Map Reduce Task Failures (instance {{ $labels.instance }})
    description: "There is an unusually high number of MapReduce task failures.\n  VALUE = {{ $value }}\n  LABELS = {{ $labels }}"
warning

6.3.11.Hadoop Data Node Out Of Service

The Hadoop DataNode is not sending heartbeats.

- alert: HadoopDataNodeOutOfService
  expr: hadoop_namenode_numdeaddatanodes > 0
  for: 10m
  labels:
    severity: warning
  annotations:
    summary: Hadoop Data Node Out Of Service (instance {{ $labels.instance }})
    description: "The Hadoop DataNode is not sending heartbeats.\n  VALUE = {{ $value }}\n  LABELS = {{ $labels }}"
warning

6.3.12.Hadoop YARN Container Allocation Failures

There is a significant number of YARN container allocation failures.

- alert: HadoopYARNContainerAllocationFailures
  expr: increase(hadoop_yarn_container_allocation_failures_total[1h]) > 10
  for: 10m
  labels:
    severity: warning
  annotations:
    summary: Hadoop YARN Container Allocation Failures (instance {{ $labels.instance }})
    description: "There is a significant number of YARN container allocation failures.\n  VALUE = {{ $value }}\n  LABELS = {{ $labels }}"
warning

6.3.13.Hadoop HBase Region Count High

The HBase cluster has an unusually high number of regions.

  # 5000 is a rough default; region count scales with your cluster size and data volume — adjust based on your workload.
- alert: HadoopHBaseRegionCountHigh
  expr: hadoop_hbase_region_count > 5000
  for: 15m
  labels:
    severity: warning
  annotations:
    summary: Hadoop HBase Region Count High (instance {{ $labels.instance }})
    description: "The HBase cluster has an unusually high number of regions.\n  VALUE = {{ $value }}\n  LABELS = {{ $labels }}"
warning

6.3.14.Hadoop HBase Write Requests Latency High

HBase Write Requests are experiencing high latency.

  # 0.5s threshold is a rough default; acceptable write latency depends on your storage backend and write workload — adjust based on your baseline.
- alert: HadoopHBaseWriteRequestsLatencyHigh
  expr: hadoop_hbase_write_requests_latency_seconds > 0.5
  for: 10m
  labels:
    severity: warning
  annotations:
    summary: Hadoop HBase Write Requests Latency High (instance {{ $labels.instance }})
    description: "HBase Write Requests are experiencing high latency.\n  VALUE = {{ $value }}\n  LABELS = {{ $labels }}"
warning

6.3.15.Hadoop HDFS Volume Failures

One or more HDFS DataNode storage volumes have failed since the DataNode last started, which is an early sign of failing disks.

- alert: HadoopHDFSVolumeFailures
  expr: max without(job,name)(hadoop_namenode_volumefailurestotal) > 0
  for: 10m
  labels:
    severity: warning
  annotations:
    summary: Hadoop HDFS Volume Failures (instance {{ $labels.instance }})
    description: "One or more HDFS DataNode storage volumes have failed since the DataNode last started, which is an early sign of failing disks.\n  VALUE = {{ $value }}\n  LABELS = {{ $labels }}"