Skip to main content

How to Check the Health of Apache Airflow® with the Health Endpoint

· 4 min read
Jagdish Kumawat
Founder @ Dewiride

Apache Airflow® is several programs working together, and any one of them can stop while the UI still opens. The health endpoint answers one question for all of them: is each part alive? It needs no sign-in, so a script, a monitoring tool or you with curl can ask it. This guide asks it, and reads the answer field by field, on Airflow 3.4.0.

Syntax​

Syntax
curl -s <airflow URL>/api/v2/monitor/health
PartWhat it means
curl -sSends a GET request and prints the answer, without the progress meter
<airflow URL>Where the API server runs, such as http://localhost:8080
/api/v2/monitor/healthThe health endpoint of the REST API

Airflow's security model explains why it needs no token: the endpoint "should be publicly accessible" because "other systems would want to retrieve that information".

Prerequisites​

  • Apache Airflow® running, for example with airflow standalone.

Step 1: Ask for the Health​

My API server is on http://127.0.0.1:8085:

Terminal
curl -s http://127.0.0.1:8085/api/v2/monitor/health
Output (start)
{"metadatabase":{"status":"healthy"},"scheduler":{"status":"healthy","latest_scheduler_heartbeat":"2026-12-01T05:47:37.111984+00:00","detailed_status":"healthy","instances":[{"hostname":"my-computer.l...

The terminal: curl to /api/v2/monitor/health returns one long line of JSON, starting with metadatabase status healthy and scheduler status healthy.

The answer is JSON on a single line, which is hard to read.

Step 2: Make It Readable​

Pipe it through Python's built-in JSON formatter:

Terminal
curl -s http://127.0.0.1:8085/api/v2/monitor/health | python3 -m json.tool
Output
{
"metadatabase": {
"status": "healthy"
},
"scheduler": {
"status": "healthy",
"latest_scheduler_heartbeat": "2026-12-01T05:47:37.111984+00:00",
"detailed_status": "healthy",
"instances": [
{
"hostname": "my-computer.local",
"latest_scheduler_heartbeat": "2026-12-01T05:47:37.111984+00:00"
}
]
},
"triggerer": {
"status": "healthy",
"latest_triggerer_heartbeat": "2026-12-01T05:47:36.264547+00:00",
"detailed_status": "healthy",
"instances": [
{
"hostname": "my-computer.local",
"latest_triggerer_heartbeat": "2026-12-01T05:47:36.264547+00:00",
"team_names": []
}
]
},
"dag_processor": {
"status": "healthy",
"latest_dag_processor_heartbeat": "2026-12-01T05:47:36.489841+00:00",
"detailed_status": "healthy",
"instances": [
{
"hostname": "my-computer.local",
"latest_dag_processor_heartbeat": "2026-12-01T05:47:36.489841+00:00",
"bundle_names": null
}
]
}
}

The same health answer formatted by python3 -m json.tool: metadatabase, scheduler, triggerer and dag_processor, each with status healthy, its latest heartbeat and one instance.

python3 -m json.tool reads JSON and prints it indented. All four parts say healthy.

Step 3: Read the Answer​

FieldWhat it tells you
metadatabase.statushealthy when Airflow can connect to its database
scheduler, triggerer, dag_processorOne section per component
statushealthy if at least one running instance of that component is alive
latest_…_heartbeatThe last time the component reported in. Running components report regularly, so it's always recent
instancesEach running copy of the component, with the computer it runs on

Airflow's health check documentation explains "alive": an instance counts as alive when its latest heartbeat falls within the component's health-check threshold. A component that stopped stops sending heartbeats, so after that threshold its status turns unhealthy.

The UI shows the same four parts in the Health row of its Welcome page.

Common Mistakes​

MistakeWhat happensDo this instead
Checking only the scheduler's statusEach component has its own, so the triggerer or Dag processor can be unhealthy while the scheduler is fineCheck all four
Treating no answer as "unhealthy"No answer means the API server itself isn't reachableCheck that Airflow is running and the address is right

Troubleshooting​

SymptomLikely causeFix
curl prints nothingThe API server isn't running, or another address or portCheck the Uvicorn running on line in Airflow's output
A component is unhealthyIt stopped sending heartbeatsLook at that component's lines in Airflow's output

FAQ​

Does the health endpoint need a token?​

No. It's one of the few endpoints Airflow leaves open on purpose.

Can a monitoring tool use it?​

Yes. That's what it's for: any tool that can make an HTTP request can poll it.

Conclusion​

One curl to /api/v2/monitor/health, without signing in, returned the status of the metadata database, the scheduler, the triggerer and the Dag processor, all healthy, with each component's latest heartbeat. python3 -m json.tool made the answer readable.

Additional Resources​

Apache®, Apache Airflow and Airflow® are either registered trademarks or trademarks of The Apache Software Foundation in the United States and/or other countries. No endorsement by The Apache Software Foundation is implied by the use of these marks.