We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 857f4e9 commit 9437d25Copy full SHA for 9437d25
1 file changed
server/monitor-types/mysql.js
@@ -51,15 +51,13 @@ class MysqlMonitorType extends MonitorType {
51
// Backwards compatible: just check connection and return row count
52
const result = await this.mysqlQuery(monitor.databaseConnectionString, query, password);
53
heartbeat.ping = dayjs().valueOf() - startTime;
54
+ heartbeat.status = UP;
55
heartbeat.msg = result;
56
}
57
} catch (error) {
58
- log.error("mysql", "Database query failed:", error.message);
59
throw new Error(`Database connection/query failed: ${error.message}`);
60
61
-
62
- heartbeat.status = UP;
63
64
65
/**
0 commit comments