diff --git a/schema.sql b/schema.sql index 9c556c3..0a80005 100644 --- a/schema.sql +++ b/schema.sql @@ -11,3 +11,11 @@ CREATE TABLE host_uptime ( -- uptime in seconds uptime INT NOT NULL ); + +CREATE TABLE host_mem ( + id SERIAL PRIMARY KEY, + created_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT CURRENT_TIMESTAMP, + host_id INT NOT NULL REFERENCES host(id), + -- available memory in kB + mem_avail INT NOT NULL +); \ No newline at end of file diff --git a/status b/status index 27fffe4..01a2be7 100755 --- a/status +++ b/status @@ -15,3 +15,15 @@ psql -w <