[PR #3321] [CLOSED] Add health check endpoint #12544

Closed
opened 2025-12-29 22:22:11 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/3321
Author: @szechyjs
Created: 7/3/2019
Status: Closed

Base: developHead: health_check


📝 Commits (1)

  • 1964ab2 Add health check endpoint

📊 Changes

4 files changed (+13 additions, -0 deletions)

View changed files

📝 netbox/netbox/configuration.example.py (+3 -0)
📝 netbox/netbox/settings.py (+4 -0)
📝 netbox/netbox/urls.py (+5 -0)
📝 requirements.txt (+1 -0)

📄 Description

Fixes: #3291

Adds a health check endpoint to verify that NetBox is operational. This is very useful if NetBox is running in some kind of HA configuration behind a load balancer.

GET /health

{"databases": [{"default": {"ok": true}}], "caches": [{"default": {"ok": true}}], "storage": {"ok": true}}

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/3321 **Author:** [@szechyjs](https://github.com/szechyjs) **Created:** 7/3/2019 **Status:** ❌ Closed **Base:** `develop` ← **Head:** `health_check` --- ### 📝 Commits (1) - [`1964ab2`](https://github.com/netbox-community/netbox/commit/1964ab24f78f30f230e982dcdb956bd72682b225) Add health check endpoint ### 📊 Changes **4 files changed** (+13 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `netbox/netbox/configuration.example.py` (+3 -0) 📝 `netbox/netbox/settings.py` (+4 -0) 📝 `netbox/netbox/urls.py` (+5 -0) 📝 `requirements.txt` (+1 -0) </details> ### 📄 Description ### Fixes: #3291 Adds a health check endpoint to verify that NetBox is operational. This is very useful if NetBox is running in some kind of HA configuration behind a load balancer. ``` GET /health {"databases": [{"default": {"ok": true}}], "caches": [{"default": {"ok": true}}], "storage": {"ok": true}} ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 22:22:11 +01:00
adam closed this issue 2025-12-29 22:22:11 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#12544