Enhance monitoring features and UI:
- Add detailed CPU core monitoring option for better performance control - Update monitoring settings in app configuration - Improve parallel task execution for resource usage monitoring - Modify Telegram notification service to skip alerts from svchost processes - Add "Memory %" column to process table in HTML and update related JavaScript - Create performance test scripts for API response time evaluation
This commit is contained in:
@@ -77,6 +77,15 @@ namespace ResourceMonitorService.Services
|
||||
return;
|
||||
}
|
||||
|
||||
// Ignore alerts from svchost processes
|
||||
if (alert.Component.Contains("svchost", StringComparison.OrdinalIgnoreCase) ||
|
||||
alert.Message.Contains("svchost", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
_logger.LogInformation("Skipping Telegram alert for svchost process: {Component} - {Message}",
|
||||
alert.Component, alert.Message);
|
||||
return;
|
||||
}
|
||||
|
||||
var message = FormatAlertMessage(alert, _telegramSettings.MessageTemplate);
|
||||
|
||||
foreach (var chatId in _telegramSettings.ChatIds)
|
||||
@@ -110,6 +119,15 @@ namespace ResourceMonitorService.Services
|
||||
if (_botClient == null || !_telegramSettings.IsEnabled || !_telegramSettings.SendResolutionNotifications)
|
||||
return;
|
||||
|
||||
// Ignore alerts from svchost processes
|
||||
if (alert.Component.Contains("svchost", StringComparison.OrdinalIgnoreCase) ||
|
||||
alert.Message.Contains("svchost", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
_logger.LogInformation("Skipping Telegram resolution notification for svchost process: {Component} - {Message}",
|
||||
alert.Component, alert.Message);
|
||||
return;
|
||||
}
|
||||
|
||||
var message = FormatAlertMessage(alert, _telegramSettings.ResolutionTemplate);
|
||||
|
||||
foreach (var chatId in _telegramSettings.ChatIds)
|
||||
|
||||
Reference in New Issue
Block a user