monocker icon indicating copy to clipboard operation
monocker copied to clipboard

Minimise Notifications count

Open tamimology opened this issue 8 months ago • 2 comments

When using the LABEL_ENABLE: 'true' in the container, and labeling the needed containers to be monitored with monocker.enable: true the notification is received as follows

WhatsApp Image 2023-10-25 at 19 52 29

rather, I believe it should only show how many containers are being monitored without sending a separate notification for each monitored container (as taken from logs to be able to remove what is not needed in my opinion).

2023-10-25T01:30:09.445778237Z 
2023-10-25T01:30:09.446831215Z > [email protected] start
2023-10-25T01:30:09.447008570Z > node index.js
2023-10-25T01:30:09.447103200Z 
2023-10-25T01:30:14.039916156Z -------------------------------------------------------
2023-10-25T01:30:14.044394725Z  Monocker - MONitor dOCKER container states
2023-10-25T01:30:14.045216807Z  Developed by Matt Petersen - Brisbane Australia
2023-10-25T01:30:14.045753541Z  
2023-10-25T01:30:14.046333911Z  Version: 2.7.0
2023-10-25T01:30:14.046916435Z -------------------------------------------------------
2023-10-25T01:30:14.047785779Z  
2023-10-25T01:30:14.048902320Z Monitoring started 
2023-10-25T01:30:14.049112795Z      - Messaging platform: pushover
2023-10-25T01:30:14.049217411Z      - Polling period: 10 seconds 
2023-10-25T01:30:14.049431976Z      - Only offline state monitoring: false
2023-10-25T01:30:14.049559614Z      - Only include labelled containers: true 
2023-10-25T01:30:14.049655489Z      - Do not monitor 'Exited': false
2023-10-25T01:30:14.049748950Z      - Disable Startup Messages: false
2023-10-25T01:30:14.658897679Z      - Currently monitoring 19 (running) containers

This will prevent spamming the notification platform in case of more containers are being monitored. specially, everytime monocker is loaded

tamimology avatar Oct 25 '23 08:10 tamimology