mirror of
https://github.com/danbulant/mysqlExporter
synced 2026-07-06 11:50:51 +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) => {
|
app.get("/database", (req, res) => {
|
||||||
res.json({
|
res.json({
|
||||||
name: config.mysql.database
|
name: config.mysql.database,
|
||||||
|
host: config.mysql.host
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -171,7 +171,7 @@
|
||||||
|
|
||||||
var d = new Date();
|
var d = new Date();
|
||||||
date.innerHTML = "Generated " + d.toString() + ".<br>Number of tables: " + Object.keys(tables)
|
date.innerHTML = "Generated " + d.toString() + ".<br>Number of tables: " + Object.keys(tables)
|
||||||
.length;
|
.length + "<br>Host: " + db.host;
|
||||||
})()
|
})()
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue