Skip to content

Commit

Permalink
pgsqlHealth: fix active queries alarmcheckup
Browse files Browse the repository at this point in the history
  • Loading branch information
kreatoo committed Feb 18, 2025
1 parent 21a797c commit be9a914
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pgsqlHealth/pgsql.go
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ func runningQueries() {
common.AlarmCheckDown("postgres_num_running_queries", fmt.Sprintf("Number of running queries: %d/%d", activeQueriesCount, DbHealthConfig.Postgres.Limits.Query), false, "", "")
} else {
common.PrettyPrintStr("Number of running queries", true, fmt.Sprintf("%d/%d", activeQueriesCount, DbHealthConfig.Postgres.Limits.Query))
common.AlarmCheckUp("postgres_num_running_queries", fmt.Sprintf("Number of running queries is now: %d/%d", activeQueriesCount, DbHealthConfig.Postgres.Limits.Query), true)
common.AlarmCheckUp("postgres_num_running_queries", fmt.Sprintf("Number of running queries is now: %d/%d", activeQueriesCount, DbHealthConfig.Postgres.Limits.Query), false)
}
}

Expand Down

0 comments on commit be9a914

Please sign in to comment.