added mysql sensor item

This commit is contained in:
snoop 2017-08-28 15:20:15 +09:00
parent 066c966588
commit 2551d64abe
2 changed files with 203 additions and 16 deletions

View File

@ -45,7 +45,7 @@ public class MetaSensorItem {
this.itemType = itemType;
}
@Column(name = "KEY", nullable = true, length = 50)
@Column(name = "KEY", nullable = true, length = 100)
public String getKey() {
return key;
}
@ -54,7 +54,7 @@ public class MetaSensorItem {
this.key = key;
}
@Column(name = "NAME", nullable = true, length = 50)
@Column(name = "NAME", nullable = true, length = 100)
public String getName() {
return name;
}

View File

@ -298,21 +298,208 @@ INSERT INTO public.meta_sensor_status (id,"name") VALUES (
INSERT INTO public.meta_sensor_status (id,"name") VALUES (
2,'STOPPED');
INSERT INTO public.meta_sensor_item_type (id,create_date,description,"name") VALUES (
1,'2017-06-26 19:49:39.690','CPU blah blah blah','CPU');
INSERT INTO public.meta_sensor_item_type (id,create_date,description,"name") VALUES (
2,'2017-06-26 19:49:39.811','MEMORY blah blah blah','MEMORY');
INSERT INTO public.meta_sensor_item_type (id,create_date,description,"name") VALUES (
3,'2017-06-26 19:49:39.824','DISK blah blah blah','DISK');
INSERT INTO meta_sensor_item_type (id,create_date,description,name) VALUES (
'1','2017-06-26 19:49','CPU blah blah blah','CPU');
INSERT INTO meta_sensor_item_type (id,create_date,description,name) VALUES (
'2','2017-06-26 19:49','MEMORY blah blah blah','MEMORY');
INSERT INTO meta_sensor_item_type (id,create_date,description,name) VALUES (
'3','2017-06-26 19:49','DISK blah blah blah','DISK');
INSERT INTO meta_sensor_item_type (id,create_date,description,name) VALUES (
'4','2017-06-26 19:49','MYSQL INNODB','MYSQL.INNODB');
INSERT INTO meta_sensor_item_type (id,create_date,description,name) VALUES (
'5','2017-06-26 19:49','MYSQL NET','MYSQL.NET');
INSERT INTO meta_sensor_item_type (id,create_date,description,name) VALUES (
'6','2017-06-26 19:49','MYSQL PERFOMANCE','MYSQL.PERFOMANCE');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'1','2017-06-26 20:10','cpu.usage','CPU USAGE','1');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'2','2017-06-26 20:10','cpu.free','CPU FREE','1');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'3','2017-06-26 20:10','mem.usage','MEMORY USAGE','2');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'4','2017-06-26 20:10','mem.free','MEMORY FREE','2');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'5','2017-06-26 20:10','mysql.Innodb.buffer.pool.dump.status','mysql_Innodb_buffer_pool_dump_status','4');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'6','2017-06-26 20:10','mysql.Innodb.buffer.pool.load.status','mysql_Innodb_buffer_pool_load_status','4');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'7','2017-06-26 20:10','mysql.Innodb.buffer.pool.resize.status','mysql_Innodb_buffer_pool_resize_status','4');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'8','2017-06-26 20:10','mysql.Innodb.buffer.pool.pages.data','mysql_Innodb_buffer_pool_pages_data','4');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'9','2017-06-26 20:10','mysql.Innodb.buffer.pool.bytes.data','mysql_Innodb_buffer_pool_bytes_data','4');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'10','2017-06-26 20:10','mysql.Innodb.buffer.pool.pages.dirty','mysql_Innodb_buffer_pool_pages_dirty','4');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'11','2017-06-26 20:10','mysql.Innodb.buffer.pool.bytes.dirty','mysql_Innodb_buffer_pool_bytes_dirty','4');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'12','2017-06-26 20:10','mysql.Innodb.buffer.pool.pages.flushed','mysql_Innodb_buffer_pool_pages_flushed','4');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'13','2017-06-26 20:10','mysql.Innodb.buffer.pool.pages.free','mysql_Innodb_buffer_pool_pages_free','4');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'14','2017-06-26 20:10','mysql.Innodb.buffer.pool.pages.misc','mysql_Innodb_buffer_pool_pages_misc','4');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'15','2017-06-26 20:10','mysql.Innodb.buffer.pool.pages.total','mysql_Innodb_buffer_pool_pages_total','4');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'16','2017-06-26 20:10','mysql.Innodb.buffer.pool.read.ahead.rnd','mysql_Innodb_buffer_pool_read_ahead_rnd','4');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'17','2017-06-26 20:10','mysql.Innodb.buffer.pool.read.ahead','mysql_Innodb_buffer_pool_read_ahead','4');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'18','2017-06-26 20:10','mysql.Innodb.buffer.pool.read.ahead.evicted','mysql_Innodb_buffer_pool_read_ahead_evicted','4');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'19','2017-06-26 20:10','mysql.Innodb.buffer.pool.read.requests','mysql_Innodb_buffer_pool_read_requests','4');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'20','2017-06-26 20:10','mysql.Innodb.buffer.pool.reads','mysql_Innodb_buffer_pool_reads','4');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'21','2017-06-26 20:10','mysql.Innodb.buffer.pool.wait.free','mysql_Innodb_buffer_pool_wait_free','4');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'22','2017-06-26 20:10','mysql.Innodb.buffer.pool.write.requests','mysql_Innodb_buffer_pool_write_requests','4');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'23','2017-06-26 20:10','mysql.Innodb.data.fsyncs','mysql_Innodb_data_fsyncs','4');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'24','2017-06-26 20:10','mysql.Innodb.data.pending.fsyncs','mysql_Innodb_data_pending_fsyncs','4');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'25','2017-06-26 20:10','mysql.Innodb.data.pending.reads','mysql_Innodb_data_pending_reads','4');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'26','2017-06-26 20:10','mysql.Innodb.data.pending.writes','mysql_Innodb_data_pending_writes','4');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'27','2017-06-26 20:10','mysql.Innodb.data.read','mysql_Innodb_data_read','4');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'28','2017-06-26 20:10','mysql.Innodb.data.reads','mysql_Innodb_data_reads','4');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'29','2017-06-26 20:10','mysql.Innodb.data.writes','mysql_Innodb_data_writes','4');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'30','2017-06-26 20:10','mysql.Innodb.data.written','mysql_Innodb_data_written','4');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'31','2017-06-26 20:10','mysql.Innodb.dblwr.pages.written','mysql_Innodb_dblwr_pages_written','4');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'32','2017-06-26 20:10','mysql.Innodb.dblwr.writes','mysql_Innodb_dblwr_writes','4');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'33','2017-06-26 20:10','mysql.Innodb.log.waits','mysql_Innodb_log_waits','4');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'34','2017-06-26 20:10','mysql.Innodb.log.write.requests','mysql_Innodb_log_write_requests','4');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'35','2017-06-26 20:10','mysql.Innodb.log.writes','mysql_Innodb_log_writes','4');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'36','2017-06-26 20:10','mysql.Innodb.os.log.fsyncs','mysql_Innodb_os_log_fsyncs','4');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'37','2017-06-26 20:10','mysql.Innodb.os.log.pending.fsyncs','mysql_Innodb_os_log_pending_fsyncs','4');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'38','2017-06-26 20:10','mysql.Innodb.os.log.pending.writes','mysql_Innodb_os_log_pending_writes','4');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'39','2017-06-26 20:10','mysql.Innodb.os.log.written','mysql_Innodb_os_log_written','4');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'40','2017-06-26 20:10','mysql.Innodb.page.size','mysql_Innodb_page_size','4');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'41','2017-06-26 20:10','mysql.Innodb.pages.created','mysql_Innodb_pages_created','4');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'42','2017-06-26 20:10','mysql.Innodb.pages.read','mysql_Innodb_pages_read','4');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'43','2017-06-26 20:10','mysql.Innodb.pages.written','mysql_Innodb_pages_written','4');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'44','2017-06-26 20:10','mysql.Innodb.row.lock.current.waits','mysql_Innodb_row_lock_current_waits','4');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'45','2017-06-26 20:10','mysql.Innodb.row.lock.time','mysql_Innodb_row_lock_time','4');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'46','2017-06-26 20:10','mysql.Innodb.row.lock.time.avg','mysql_Innodb_row_lock_time_avg','4');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'47','2017-06-26 20:10','mysql.Innodb.row.lock.time.max','mysql_Innodb_row_lock_time_max','4');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'48','2017-06-26 20:10','mysql.Innodb.row.lock.waits','mysql_Innodb_row_lock_waits','4');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'49','2017-06-26 20:10','mysql.Innodb.rows.deleted','mysql_Innodb_rows_deleted','4');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'50','2017-06-26 20:10','mysql.Innodb.rows.inserted','mysql_Innodb_rows_inserted','4');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'51','2017-06-26 20:10','mysql.Innodb.rows.read','mysql_Innodb_rows_read','4');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'52','2017-06-26 20:10','mysql.Innodb.rows.updated','mysql_Innodb_rows_updated','4');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'53','2017-06-26 20:10','mysql.Innodb.num.open.files','mysql_Innodb_num_open_files','4');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'54','2017-06-26 20:10','mysql.Innodb.truncated.status.writes','mysql_Innodb_truncated_status_writes','4');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'55','2017-06-26 20:10','mysql.Innodb.available.undo.logs','mysql_Innodb_available_undo_logs','4');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'56','2017-06-26 20:10','mysql.Connection.errors.accept','mysql_Connection_errors_accept','5');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'57','2017-06-26 20:10','mysql.Connection.errors.internal','mysql_Connection_errors_internal','5');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'58','2017-06-26 20:10','mysql.Connection.errors.max.connections','mysql_Connection_errors_max_connections','5');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'59','2017-06-26 20:10','mysql.Connection.errors.peer.address','mysql_Connection_errors_peer_address','5');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'60','2017-06-26 20:10','mysql.Connection.errors.select','mysql_Connection_errors_select','5');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'61','2017-06-26 20:10','mysql.Connection.errors.tcpwrap','mysql_Connection_errors_tcpwrap','5');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'62','2017-06-26 20:10','mysql.Connections','mysql_Connections','5');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'63','2017-06-26 20:10','mysql.Max.used.connections','mysql_Max_used_connections','5');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'64','2017-06-26 20:10','mysql.Max.used.connections.time','mysql_Max_used_connections_time','5');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'65','2017-06-26 20:10','mysql.Performance.schema.accounts.lost','mysql_Performance_schema_accounts_lost','6');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'66','2017-06-26 20:10','mysql.Performance.schema.cond.classes.lost','mysql_Performance_schema_cond_classes_lost','6');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'67','2017-06-26 20:10','mysql.Performance.schema.cond.instances.lost','mysql_Performance_schema_cond_instances_lost','6');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'68','2017-06-26 20:10','mysql.Performance.schema.digest.lost','mysql_Performance_schema_digest_lost','6');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'69','2017-06-26 20:10','mysql.Performance.schema.file.classes.lost','mysql_Performance_schema_file_classes_lost','6');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'70','2017-06-26 20:10','mysql.Performance.schema.file.handles.lost','mysql_Performance_schema_file_handles_lost','6');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'71','2017-06-26 20:10','mysql.Performance.schema.file.instances.lost','mysql_Performance_schema_file_instances_lost','6');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'72','2017-06-26 20:10','mysql.Performance.schema.hosts.lost','mysql_Performance_schema_hosts_lost','6');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'73','2017-06-26 20:10','mysql.Performance.schema.index.stat.lost','mysql_Performance_schema_index_stat_lost','6');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'74','2017-06-26 20:10','mysql.Performance.schema.locker.lost','mysql_Performance_schema_locker_lost','6');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'75','2017-06-26 20:10','mysql.Performance.schema.memory.classes.lost','mysql_Performance_schema_memory_classes_lost','6');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'76','2017-06-26 20:10','mysql.Performance.schema.metadata.lock.lost','mysql_Performance_schema_metadata_lock_lost','6');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'77','2017-06-26 20:10','mysql.Performance.schema.mutex.classes.lost','mysql_Performance_schema_mutex_classes_lost','6');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'78','2017-06-26 20:10','mysql.Performance.schema.mutex.instances.lost','mysql_Performance_schema_mutex_instances_lost','6');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'79','2017-06-26 20:10','mysql.Performance.schema.nested.statement.lost','mysql_Performance_schema_nested_statement_lost','6');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'80','2017-06-26 20:10','mysql.Performance.schema.prepared.statements.lost','mysql_Performance_schema_prepared_statements_lost','6');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'81','2017-06-26 20:10','mysql.Performance.schema.program.lost','mysql_Performance_schema_program_lost','6');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'82','2017-06-26 20:10','mysql.Performance.schema.rwlock.classes.lost','mysql_Performance_schema_rwlock_classes_lost','6');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'83','2017-06-26 20:10','mysql.Performance.schema.rwlock.instances.lost','mysql_Performance_schema_rwlock_instances_lost','6');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'84','2017-06-26 20:10','mysql.Performance.schema.session.connect.attrs.lost','mysql_Performance_schema_session_connect_attrs_lost','6');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'85','2017-06-26 20:10','mysql.Performance.schema.socket.classes.lost','mysql_Performance_schema_socket_classes_lost','6');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'86','2017-06-26 20:10','mysql.Performance.schema.socket.instances.lost','mysql_Performance_schema_socket_instances_lost','6');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'87','2017-06-26 20:10','mysql.Performance.schema.stage.classes.lost','mysql_Performance_schema_stage_classes_lost','6');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'88','2017-06-26 20:10','mysql.Performance.schema.statement.classes.lost','mysql_Performance_schema_statement_classes_lost','6');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'89','2017-06-26 20:10','mysql.Performance.schema.table.handles.lost','mysql_Performance_schema_table_handles_lost','6');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'90','2017-06-26 20:10','mysql.Performance.schema.table.instances.lost','mysql_Performance_schema_table_instances_lost','6');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'91','2017-06-26 20:10','mysql.Performance.schema.table.lock.stat.lost','mysql_Performance_schema_table_lock_stat_lost','6');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'92','2017-06-26 20:10','mysql.Performance.schema.thread.classes.lost','mysql_Performance_schema_thread_classes_lost','6');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'93','2017-06-26 20:10','mysql.Performance.schema.thread.instances.lost','mysql_Performance_schema_thread_instances_lost','6');
INSERT INTO meta_sensor_item (id,create_date,"key",name,type_id) VALUES (
'94','2017-06-26 20:10','mysql.Performance.schema.users.lost','mysql_Performance_schema_users_lost','6');
INSERT INTO public.meta_sensor_item (id,create_date,"key","name",type_id) VALUES (
1,'2017-06-26 20:10:08.269','cpu.usage','CPU USAGE',1);
INSERT INTO public.meta_sensor_item (id,create_date,"key","name",type_id) VALUES (
2,'2017-06-26 20:10:08.361','cpu.free','CPU FREE',1);
INSERT INTO public.meta_sensor_item (id,create_date,"key","name",type_id) VALUES (
3,'2017-06-26 20:10:08.376','mem.usage','MEMORY USAGE',2);
INSERT INTO public.meta_sensor_item (id,create_date,"key","name",type_id) VALUES (
4,'2017-06-26 20:10:08.394','mem.free','MEMORY FREE',2);
INSERT INTO public.meta_vendor_crawler (id,create_date,crawler_id,vendor_id) VALUES (
1,'2017-07-27 15:29:48.634',23,26);