Adding Monitoring System Manually to Your SaaS Project
The monitoring system is a very necessary tool for early detection and rapid solutions, and in certain cases to avoid and prevent disruption of service, and therefore the loss of material and image nature. Today we will analyze in detail how and using what tools we add monitoring to our projects.
What is project monitoring
Project Monitoring refers to the process of keeping track of all project-related metrics including team performance and task duration, identifying potential problems and taking corrective actions necessary to ensure that the project is within scope, on budget and meets the specified deadlines. To simply put, project monitoring is overseeing all tasks and keeping an eye on project activities to make sure you’re implementing the project as planned.
The process of project monitoring begins during the planning phase of the custom software development project. During this phase, it is important to define how the project success will look like and how the goals can be measured using KPIs (Key performance indicators).
We can distinguish (conditionally) the main areas of monitoring:
- Resource monitoring
- Application Monitoring
- Application business logic monitoring
It is critically important to keep under control the state of the CPU, RAM, disk space since the lack of these resources is guaranteed to lead to application inoperability. It is also important to keep under control and monitor the dynamics of resource consumption in order to be able to prevent problems.
Also, monitoring the dynamics of resource consumption will help to more accurately select the quantitative characteristics of resources, and, accordingly, get the best efficiency.
It is important to understand what is monitored and why, what metrics are especially important for understanding the application’s performance and what you need to configure alerts for (e.g.: the number of requests per second, the response time of the service, the number of successful and unsuccessful requests, database queries).
Application business logic monitoring
Monitoring business logic helps to understand if there are problems in the application’s flow, and also makes it possible to collect statistics that can be used to analyze the operation of the service.
The roll-out of the monitoring system on internal resources and the reason why this was the best solution
This approach to configuring monitoring systems can be used, for example, when a project is already deployed on the company's internal resources or on the virtual machines of a cloud provider, the monitoring solution of which was not suitable for one reason or another.
To deploy a monitoring system it is necessary: to select monitoring tools (in our case it is Zabbix, Prometheus + Grafana, ELK stack), configure the server (virtual machine) and configure this very software (monitoring tools).
This is one of the open sources for monitoring. Reasons for choosing:
Moderate resource consumption
- Extensive documentation, quick setup
- Flexible template system
We use Zabbix to monitor machine resources and database status. Check the examples below.
Example inbound/outbound traffic graph
CPU load graph example
Example transaction database chart
Prometheus is a convenient monitoring tool but requires a more thorough approach to installing and configuring components.
Prometheus monitoring system components:
- Server Prometheus: collects and stores in its own database certain objects (metrics) of the target monitoring object. Allows using the PromQL query language to search and visualize the necessary metrics. Allows the user to monitor both the application (for this application must be able to generate a list of metrics), and third-party systems (the status of servers, databases, and so on) to obtain metrics which require “exporters” - applications that accumulate metrics and export them in an understandable Server Prometheus format. At the moment there are already a lot of exporters for existing technologies (exporters for monitoring machines, databases, load balancers and so on).
Check the examples below.
Request and visualization example on Server Prometheus
- Grafana: The component that can be used to build convenient visualizations.
Check the examples below.
Visualization of resources used (for each service)
System resource utilization visualization
- Prometheus Alertmanager is a component that allows you to flexibly configure alerts and send alerts via email, Telegram, Slack and others. Alerts are configured in the configuration file (YAML) and define a set of rules for metrics.
Project Diagram with Monitoring Services Enabled
How to install and prepare scripts for recovery disaster
To install monitoring systems, it is best to use official documentation:
After installation and configuration, if you did not use configuration management tools (Ansible, puppet ..), it would be better to make a system cast or a script to automatically deploy all elements of monitoring systems in case of emergency recovery.
In conclusion, project monitoring is important in making the project management plan work to meet your project objectives. It is a part of the project and project management, not an addition to it. Given the data about the team, the project and the prediction of overdue, project managers can customize the project plan and address issues before they happen. With project monitoring, you can identify the most efficient way to manage your resources and continually assess your project status, so you can ensure your project success. We hope that our case came in handy to you, though if you have no time to work on adding a project monitoring system, our dedicated development team is ready to assist!
Interested in this expertise?
Get in touch with us and let's discuss your case. We will gladly share our knowledge and experience with you and find the most suitable option for you.