You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a container that needs high CPU utilization at times, but limit the "cpus" for it.
Run the container.
Run this command in while loop in shell script and print output to some file. check_docker --connection /var/run/docker.sock --containers all --cpu 80:95
My Setup:
My server has 2 CPUs.
My container needs high CPU utilization at start because of many supervisor services getting auto started at once, but I have limited the "cpus" to "0.75".
Output at times, initially:
CRITICAL: {containername} cpu is 103%
|{containername}_cpu=103;80;95;0;100
Reason behind the output:
It seems that when CPU utilization exceeds the limit slightly, it gets under control i.e. there is some margin.
Issue:
The documentation(README file) only talks about the values from 0-100, not beyond that.
In this case, we should ideally set the warning:critical to something like 110:125 instead.
The text was updated successfully, but these errors were encountered:
Hmm, that is an issue I had not considered. Thanks for sharing.
I just want to ensure my change makes sense to you. All I am doing is updating the help string and documentation to remove the suggestion of a 0-100% range. That seems like it should be enough as well as being a bit more accurate since I do allow values bigger than 100.
Steps to Reproduce:
check_docker --connection /var/run/docker.sock --containers all --cpu 80:95
My Setup:
Output at times, initially:
Reason behind the output:
It seems that when CPU utilization exceeds the limit slightly, it gets under control i.e. there is some margin.
Additional logs:
Issue:
The documentation(README file) only talks about the values from 0-100, not beyond that.
In this case, we should ideally set the warning:critical to something like 110:125 instead.
The text was updated successfully, but these errors were encountered: