Skip to content

feat: add health check API endpoint#516

Merged
ECWireless merged 4 commits intomainfrom
feat/add-api-health-endpoint
Jan 30, 2026
Merged

feat: add health check API endpoint#516
ECWireless merged 4 commits intomainfrom
feat/add-api-health-endpoint

Conversation

@ECWireless
Copy link
Copy Markdown
Collaborator

For now, this only checks the subgraph, but we can expand as we see fit.

AI Summary

This pull request introduces a new API health check endpoint in the pages/api/health.tsx file. The endpoint checks the status of the application's subgraph by querying its health and returns a JSON response indicating whether the service is healthy or degraded.

API health check implementation:

  • Added a new health API route that queries the subgraph for indexing errors and returns a health status response with a timestamp and check results. (pages/api/health.tsx)

Copilot AI review requested due to automatic review settings January 30, 2026 03:52
@ECWireless ECWireless linked an issue Jan 30, 2026 that may be closed by this pull request
@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Jan 30, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
explorer-arbitrum-one Ready Ready Preview, Comment Jan 30, 2026 10:06pm

Request Review

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces a new health check API endpoint to monitor the application's subgraph status. The endpoint queries the subgraph's _meta field to detect indexing errors and returns a JSON response with health status (healthy/degraded) and timestamp.

Changes:

  • Added a new /api/health endpoint that checks subgraph health by querying for indexing errors
  • Returns HTTP 200 with "healthy" status when no errors exist, or HTTP 503 with "degraded" status when errors are detected

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-project-automation github-project-automation bot moved this from In Review to Todo in Explorer Revamp Jan 30, 2026
@ECWireless ECWireless moved this from Todo to In Review in Explorer Revamp Jan 30, 2026
@ECWireless ECWireless merged commit 56680af into main Jan 30, 2026
7 of 8 checks passed
@ECWireless ECWireless deleted the feat/add-api-health-endpoint branch January 30, 2026 22:36
@github-project-automation github-project-automation bot moved this from In Review to Done in Explorer Revamp Jan 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

Add app monitoring and alerts

3 participants