Skip to content

Commit

Permalink
Increasing threshold of disk usage alarm to 90
Browse files Browse the repository at this point in the history
Earlier threshold of 45% was too low, increasing it to 90%
Closes-Bug: 1593172

Change-Id: I688357b3dbcd7444bb00013e46ade18e31c86177
  • Loading branch information
bansalnikhil committed Jun 21, 2016
1 parent 7775494 commit 7b1ed9b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/opserver/plugins/alarm_disk_usage/main.py
Expand Up @@ -22,7 +22,8 @@ def __call__(self, uve_key, uve_data):
for db_usage in db_usage_list:
used_space = db_usage["disk_space_used_1k"]
available_space = db_usage["disk_space_available_1k"]
use_space_threshold = available_space * self._threshold
total_space = used_space + available_space
use_space_threshold = total_space * self._threshold
if used_space > use_space_threshold:
or_list.append(AllOf(all_of=[AlarmElement(\
rule=AlarmTemplate(oper=">",
Expand Down

0 comments on commit 7b1ed9b

Please sign in to comment.