diff --git a/schema.sql b/schema.sql index 7c6926e..7ceca61 100644 --- a/schema.sql +++ b/schema.sql @@ -27,3 +27,11 @@ CREATE TABLE host_disk ( -- free disk space in kB disk_free INT NOT NULL ); + +CREATE TABLE host_cpu ( + id SERIAL PRIMARY KEY, + created_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT CURRENT_TIMESTAMP, + host_id INT NOT NULL REFERENCES host(id), + -- cpu load for last minute + cpu_load_1m FLOAT NOT NULL +); diff --git a/status b/status index 9b9349c..e8cbeb7 100755 --- a/status +++ b/status @@ -39,3 +39,15 @@ psql -w <