036 cache, capacity
This commit is contained in:
@@ -0,0 +1,68 @@
|
||||
drop table if exists vmreports.host;
|
||||
create table vmreports.host(
|
||||
"Name" varchar(255) NULL,
|
||||
"Model" varchar(255) NULL,
|
||||
"Cluster" varchar(255) NULL,
|
||||
"Cluster_v2" varchar(255) NULL,
|
||||
"Maintenance" varchar(255) NULL,
|
||||
|
||||
"CPU_Cores" float NULL,
|
||||
"CPU_Sockets" float NULL,
|
||||
"CPU_Speed" float NULL,
|
||||
"RAM_Total" float NULL,
|
||||
"RAM_Used" float NULL,
|
||||
"CPU_Used" float NULL,
|
||||
"CPU_Used_AVG" float NULL,
|
||||
"CPU_Contention_95" float NULL,
|
||||
"Object_UUID" uuid NOT NULL,
|
||||
ts timestamptz NOT NULL
|
||||
,CONSTRAINT PK_host PRIMARY KEY (ts, "Object_UUID")
|
||||
);
|
||||
grant all on vmreports.host to nifi;
|
||||
--alter table vmreports.host ADD "Cluster_v2" varchar(255) NULL;
|
||||
/*
|
||||
{
|
||||
"type": "record",
|
||||
"name": "vmreports.host",
|
||||
"namespace": "org.apache.nifi",
|
||||
"fields": [
|
||||
{"name":"Object_UUID", "type":{"type": "string", "logicalType": "uuid"}},
|
||||
{"name":"ts","type":{"type": "long", "logicalType": "local-timestamp-millis"}},
|
||||
{"name":"Name", "type":["string" ,"null"]},
|
||||
{"name":"Model", "type":["string" ,"null"]},
|
||||
{"name":"Cluster", "type":["string" ,"null"]},
|
||||
{"name":"Cluster_v2", "type":["string" ,"null"]},
|
||||
{"name":"Maintenance", "type":["string" ,"null"]},
|
||||
|
||||
{"name":"CPU_Cores", "type":["float" ,"null"]},
|
||||
{"name":"CPU_Sockets", "type":["float" ,"null"]},
|
||||
{"name":"CPU_Speed", "type":["float" ,"null"]},
|
||||
{"name":"RAM_Total", "type":["float" ,"null"]},
|
||||
{"name":"RAM_Used", "type":["float" ,"null"]},
|
||||
{"name":"CPU_Used", "type":["float" ,"null"]},
|
||||
{"name":"CPU_Used_AVG", "type":["float" ,"null"]},
|
||||
{"name":"CPU_Contention_95", "type":["float" ,"null"]}
|
||||
]
|
||||
}
|
||||
*/
|
||||
|
||||
/*
|
||||
{
|
||||
"*": {
|
||||
"objId":"[&1].Name",
|
||||
"1":"[&1].Model",
|
||||
"2":"[&1].Cluster",
|
||||
"3":"[&1].Cluster_v2",
|
||||
"4":"[&1].Maintenance",
|
||||
"5":"[&1].CPU_Cores",
|
||||
"6":"[&1].CPU_Sockets",
|
||||
"7":"[&1].CPU_Speed",
|
||||
"8":"[&1].RAM_Total",
|
||||
"9":"[&1].RAM_Used",
|
||||
"10":"[&1].CPU_Used",
|
||||
"11":"[&1].CPU_Used_AVG",
|
||||
"12":"[&1].CPU_Contention_95",
|
||||
"objUUID":"[&1].Object_UUID"
|
||||
}
|
||||
}
|
||||
*/
|
||||
Reference in New Issue
Block a user