Skip to content

Commit

Permalink
monodb/pgsql-health: fix alarm saying PostgreSQL
Browse files Browse the repository at this point in the history
  • Loading branch information
kreatoo committed Jul 18, 2024
1 parent 5a751a0 commit 7ee74ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/monodb/pgsql-health.sh
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ function check_active_connections() {
if [[ $difference -ge $increase ]]; then
write_active_connections
if [ -f "$file" ]; then
alarm "[PostgreSQL - $IDENTIFIER] [:red_circle:] Number of Active Connections has passed $((CONN_LIMIT_PERCENT + (increase * 10)))% - It is now $used_conn ($used_percentage%)"
alarm "[PGSQL Health - $IDENTIFIER] [:red_circle:] Number of Active Connections has passed $((CONN_LIMIT_PERCENT + (increase * 10)))% - It is now $used_conn ($used_percentage%)"
fi
increase=$((difference + 1))
fi
Expand Down

0 comments on commit 7ee74ad

Please sign in to comment.