mirror of
https://github.com/danbulant/mysqlExporter
synced 2026-06-19 14:41:34 +00:00
Add hostname
This commit is contained in:
parent
5f0f6fb7ff
commit
f991be1432
2 changed files with 3 additions and 2 deletions
3
index.js
3
index.js
|
|
@ -39,7 +39,8 @@ app.get("/", (req, res) => {
|
|||
|
||||
app.get("/database", (req, res) => {
|
||||
res.json({
|
||||
name: config.mysql.database
|
||||
name: config.mysql.database,
|
||||
host: config.mysql.host
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -171,7 +171,7 @@
|
|||
|
||||
var d = new Date();
|
||||
date.innerHTML = "Generated " + d.toString() + ".<br>Number of tables: " + Object.keys(tables)
|
||||
.length;
|
||||
.length + "<br>Host: " + db.host;
|
||||
})()
|
||||
</script>
|
||||
</body>
|
||||
|
|
|
|||
Loading…
Reference in a new issue