G.V.P.
P GOVERNMENT FIRST GRADE COLLEGE HAGARIBOMMANAHALLI
A PROJECT REPORT
SMART API HEALTH MONITOR
Submitted by:B.M Sumantha, [Link] Under the guidance of:Nagaraja G B
Introduction
• A Smart API Health Monitor is a lightweight
system designed to track the availability and
performance of APIs in real-time.
• It continuously checks API endpoints at regular
intervals and records key metrics such as response
status and latency. Unlike basic monitoring tools,
this system focuses on detecting meaningful
failures instead of reacting to temporary issues.
• The goal is to build a reliable and efficient
monitoring solution with minimal complexity.
Objectives of the Project
The main objectives of this project are:
1. To monitor API availability at regular intervals
2. To measure response time and detect slow performance
3. To implement smart failure detection using thresholds
4. To log API performance data for analysis
5. To send alerts only when necessary
6. To build a simple yet effective monitoring system
Scope of the Project
The scope of this project includes:
1. Monitoring multiple APIs
2. Detecting failures based on consecutive errors
3. Identifying slow responses using latency thresholds
4. Maintaining logs for system behavior tracking
5. Sending alerts for critical issues
This system is suitable for developers and small teams to monitor service
reliability.
Modules of the System
The system is divided into the following modules:
1. API Checker Module
2. Logging Module
3. Alert Module
4. Configuration Module
5. Main Controller Module
Each module handles a specific responsibility to maintain clean and
scalable design.
API Checker Module
This module is responsible for:
• Sending HTTP requests to APIs
• Measuring response time (latency)
• Capturing status codes
• Handling errors and timeouts
• It ensures accurate monitoring of API health.
Logging Module
The logging system records all API activity in a structured
format.
Each log entry contains:
1. Timestamp
2. API name
3. Status code
4. Response time
5. State (OK / SLOW / FAIL)
Logs are stored in a CSV file for simplicity and easy analysis.
Alert Module
The alert system notifies users about critical issues.
Alerts are triggered when:
• An API fails 3 consecutive times.
• API response is consistently slow.
This avoids unnecessary alerts and focuses only on real
problems.
Technologies Used
Layer Technology
Frontend HTML, CSS, JavaScript
Backend Python (Flask)
API Requests Requests Library
Database MySQL
Advantages of the System:
[Link] and easy to implement
[Link] real failures (not temporary issues)
[Link] false alerts using thresholds
[Link] useful logs for analysis
[Link] be extended with advanced features
Limitations:
[Link] graphical dashboard
[Link] to basic alerting system
[Link] local storage (CSV only)
[Link] designed for large-scale system
Conclusion
• The Smart API Health Monitor provides a simple yet effective
solution for tracking API performance and availability.
• By focusing on meaningful failure detection and controlled
alerting, the system avoids unnecessary complexity while
delivering practical value.
• This project demonstrates how clean design and focused
implementation can solve real-world problems efficiently.
SMART API HEALTH MONITOR
Thank you