From ff551e0f6202b65205dd892065b2e7c574c8c12f Mon Sep 17 00:00:00 2001 From: ekzyis Date: Tue, 28 Jan 2025 16:44:29 +0100 Subject: [PATCH] disk_free --- schema.sql | 10 +++++++++- status | 12 ++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/schema.sql b/schema.sql index 0a80005..7c6926e 100644 --- a/schema.sql +++ b/schema.sql @@ -18,4 +18,12 @@ CREATE TABLE host_mem ( host_id INT NOT NULL REFERENCES host(id), -- available memory in kB mem_avail INT NOT NULL -); \ No newline at end of file +); + +CREATE TABLE host_disk ( + id SERIAL PRIMARY KEY, + created_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT CURRENT_TIMESTAMP, + host_id INT NOT NULL REFERENCES host(id), + -- free disk space in kB + disk_free INT NOT NULL +); diff --git a/status b/status index 01a2be7..9b9349c 100755 --- a/status +++ b/status @@ -27,3 +27,15 @@ psql -w <