Sobes.tech
Junior — Middle

Have you used tools for system status monitoring and performance analysis?

sobes.tech AI

Answer from AI

Yes, to monitor the system's status and analyze its metrics, I used tools such as Prometheus for collecting metrics and Grafana for data visualization. I also employed built-in Python tools, such as the logging module for logging and psutil for resource monitoring (CPU, memory). This helps to identify bottlenecks in a timely manner and prevent failures.

Example of using psutil to get CPU load:

import psutil
cpu_percent = psutil.cpu_percent(interval=1)
print(f"CPU load: {cpu_percent}%")