2030data10.mql 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. insert into /test/promdb_string (id, prom_str) values ('promdb_string:wecise',
  2. [{ '__name__':'key1', '__value__':'这是string测试 hello world', '__timestamp__':'2024-07-27 11:24:17', 'disk':'/opt/matrix1', 'CPU':'CPU1'},
  3. { '__name__':'key2', '__value__':'这是string测试 queries: info: client 192.168.174.115#43747', '__timestamp__':'2024-07-27 11:25:18', 'disk':'/opt/matrix2', 'CPU':'CPU2'},
  4. { '__name__':'key5', '__value__':'这是string测试 queries: info: client 192.168.174.115#36176 (rx.thegov.win): query: rx.thegov.win IN A + (192.168.174.124)', '__timestamp__':'2024-07-27 11:25:19', 'disk':'/opt/matrix3', 'CPU':'CPU5'},
  5. { '__name__':'key48', '__value__':'这是string测试', '__timestamp__':'2024-07-27 11:26:19', 'disk':'/opt/matrix4', 'CPU':'CPU48'},
  6. { '__name__':'key1', '__value__':'这是string测试 error', '__timestamp__':'2024-07-28 11:24:17', 'disk':'/opt/matrix5', 'CPU':'CPU1'},
  7. { '__name__':'key2', '__value__':'这是string测试 error', '__timestamp__':'2024-07-28 11:25:18', 'disk':'/opt/matrix6', 'CPU':'CPU2'},
  8. { '__name__':'key5', '__value__':'这是string测试 host tiger', '__timestamp__':'2024-07-28 11:25:19', 'disk':'/opt/matrix7', 'CPU':'CPU5'},
  9. { '__name__':'key48', '__value__':'这是string测试 homeway', '__timestamp__':'2024-07-28 11:26:19', 'disk':'/opt/matrix8', 'CPU':'CPU48'},
  10. { '__name__':'key1', '__value__':'这是string测试 error', '__timestamp__':'2024-07-29 11:24:17', 'disk':'/opt/matrix9', 'CPU':'CPU1'},
  11. { '__name__':'key2', '__value__':'这是string测试', '__timestamp__':'2024-07-29 11:25:18', 'disk':'/opt/matrix10', 'CPU':'CPU2'},
  12. { '__name__':'key5', '__value__':'这是string测试', '__timestamp__':'2024-07-29 11:25:19', 'disk':'/opt/matrix11', 'CPU':'CPU5'},
  13. { '__name__':'key48', '__value__':'这是string测试 resolver: debug 1: createfetch: deb.thegov.win A', '__timestamp__':'2024-07-29 11:26:19', 'disk':'/opt/matrix12', 'CPU':'CPU48'},
  14. { '__name__':'key1', '__value__':"这是string测试 error (network unreachable) resolving './NS/IN': 2001:500:84::b#53", '__timestamp__':'2024-07-30 11:24:17', 'disk':'/opt/matrix12', 'CPU':'CPU1'},
  15. { '__name__':'key2', '__value__':'这是string测试', '__timestamp__':'2024-07-30 11:25:18', 'disk':'/opt/matrix13', 'CPU':'CPU2'},
  16. { '__name__':'key5', '__value__':'这是string测试', '__timestamp__':'2024-07-30 11:25:19', 'disk':'/opt/matrix13', 'CPU':'CPU5'},
  17. { '__name__':'key48', '__value__':'这是string测试', '__timestamp__':'2024-07-30 11:26:19', 'disk':'/opt/matrix13', 'CPU':'CPU48'}] )
  18. ;
  19. insert into /test/promdb_string (id, prom_str) values ('promdb_string:wecise',
  20. [{ '__name__':'key1', '__value__':'这是string测试 queries: info: client 192.168.174.115#43747', '__timestamp__':1627702037000.123451111, 'disk':'/opt/matrix1', 'CPU':'CPU1'},
  21. { '__name__':'key2', '__value__':'这是string测试', '__timestamp__':1627702098000.23333, 'disk':'/opt/matrix2', 'CPU':'CPU2'},
  22. { '__name__':'key5', '__value__':'这是string测试 resolver: debug 1: createfetch: deb.thegov.win A', '__timestamp__':1627702099000.234561111, 'disk':'/opt/matrix3', 'CPU':'CPU5'},
  23. { '__name__':'key48', '__value__':'这是string测试 queries: info: client 192.168.174.115#36176 (rx.thegov.win): query: rx.thegov.win IN A + (192.168.174.124)', '__timestamp__':1627702159000.756781111, 'disk':'/opt/matrix4', 'CPU':'CPU48'},
  24. { '__name__':'key1', '__value__':'这是string测试', '__timestamp__':1627701977000.34567111, 'disk':'/opt/matrix1', 'CPU':'CPU1'},
  25. { '__name__':'key2', '__value__':"这是string测试 error (network unreachable) resolving './NS/IN': 2001:500:84::b#53", '__timestamp__':1627702038000.678911111, 'disk':'/opt/matrix2', 'CPU':'CPU2'},
  26. { '__name__':'key5', '__value__':'这是string测试', '__timestamp__':1690774039000.2134511111, 'disk':'/opt/matrix3', 'CPU':'CPU5'},
  27. { '__name__':'key48', '__value__':'这是string测试', '__timestamp__':1627702099000.345671111, 'disk':'/opt/matrix4', 'CPU':'CPU48'},
  28. { '__name__':'key1', '__value__':'这是string测试', '__timestamp__':1627701917000.345561111, 'disk':'/opt/matrix1', 'CPU':'CPU1'},
  29. { '__name__':'key2', '__value__':'这是string测试', '__timestamp__':1627701978000.2341111, 'disk':'/opt/matrix2', 'CPU':'CPU2'},
  30. { '__name__':'key5', '__value__':'这是string测试', '__timestamp__':1627701979000.2341111, 'disk':'/opt/matrix3', 'CPU':'CPU5'},
  31. { '__name__':'key48', '__value__':'这是string测试', '__timestamp__':1627702039000.111111, 'disk':'/opt/matrix4', 'CPU':'CPU48'},
  32. { '__name__':'key1', '__value__':'这是string测试', '__timestamp__':1627701857000.234231111, 'disk':'/opt/matrix1', 'CPU':'CPU1'},
  33. { '__name__':'key2', '__value__':'这是string测试', '__timestamp__':1627701918000.78111111, 'disk':'/opt/matrix2', 'CPU':'CPU2'},
  34. { '__name__':'key5', '__value__':'这是string测试', '__timestamp__':1627701919000.63111111, 'disk':'/opt/matrix3', 'CPU':'CPU5'},
  35. { '__name__':'key48', '__value__':'这是string测试', '__timestamp__':1627701979000.123111111, 'disk':'/opt/matrix4', 'CPU':'CPU48'} ] )
  36. ;
  37. insert into /test/promdb_string (id, prom_str) values (?, ?)
  38. /**
  39. set(ct,now)
  40. params("promdb_string:wecise", [
  41. {"name": "pkey1", "value": 2, "timestamp": "{%t,ct}"},
  42. {"name": "pkey2", "value": 1.8, "timestamp": "{%t,ct}"},
  43. {"name": "pkey3", "value": 2.9, "timestamp": "{%t,ct}"},
  44. {"name": "pkeys1", "value": "sss", "timestamp": "{%t,ct}"},
  45. {"name": "pkeys2", "value": "这是中文长字符串sssss", "timestamp": "{%t,ct}"},
  46. {"name": "pkey48", "value": 2.9, "timestamp": "{%t,ct}"}])
  47. **/;
  48. insert into /test/promdb_string2 (id, prom_str2) values ('promdb_string2:wecise',
  49. [{ '__name__':'key1', '__value__':'这是string测试 hello world', '__timestamp__':'2024-07-27 11:24:17', 'disk':'/opt/matrix1', 'CPU':'CPU1'}])
  50. ;
  51. insert into /test/promdb_string2 (id, prom_str2) values ('promdb_string2:wecise',
  52. [{ '__name__':'key1', '__value__':'这是string测试 hello world', '__timestamp__':'2024-07-27 11:24:17', 'disk':'/opt/matrix1', 'CPU':'CPU1'},
  53. { '__name__':'key2', '__value__':'这是string测试 queries: info: client 192.168.174.115#43747', '__timestamp__':'2024-07-27 11:25:18', 'disk':'/opt/matrix2', 'CPU':'CPU2'},
  54. { '__name__':'key5', '__value__':'这是string测试 queries: info: client 192.168.174.115#36176 (rx.thegov.win): query: rx.thegov.win IN A + (192.168.174.124)', '__timestamp__':'2024-07-27 11:25:19', 'disk':'/opt/matrix3', 'CPU':'CPU5'},
  55. { '__name__':'key48', '__value__':'这是string测试', '__timestamp__':'2024-07-27 11:26:19', 'disk':'/opt/matrix4', 'CPU':'CPU48'},
  56. { '__name__':'key1', '__value__':'这是string测试 error', '__timestamp__':'2024-07-28 11:24:17', 'disk':'/opt/matrix5', 'CPU':'CPU1'},
  57. { '__name__':'key2', '__value__':'这是string测试 error', '__timestamp__':'2024-07-28 11:25:18', 'disk':'/opt/matrix6', 'CPU':'CPU2'},
  58. { '__name__':'key5', '__value__':'这是string测试 host tiger', '__timestamp__':'2024-07-28 11:25:19', 'disk':'/opt/matrix7', 'CPU':'CPU5'},
  59. { '__name__':'key48', '__value__':'这是string测试 homeway', '__timestamp__':'2024-07-28 11:26:19', 'disk':'/opt/matrix8', 'CPU':'CPU48'},
  60. { '__name__':'key1', '__value__':'这是string测试 error', '__timestamp__':'2024-07-29 11:24:17', 'disk':'/opt/matrix9', 'CPU':'CPU1'},
  61. { '__name__':'key2', '__value__':'这是string测试', '__timestamp__':'2024-07-29 11:25:18', 'disk':'/opt/matrix10', 'CPU':'CPU2'},
  62. { '__name__':'key5', '__value__':'这是string测试', '__timestamp__':'2024-07-29 11:25:19', 'disk':'/opt/matrix11', 'CPU':'CPU5'},
  63. { '__name__':'key48', '__value__':'这是string测试 resolver: debug 1: createfetch: deb.thegov.win A', '__timestamp__':'2024-07-29 11:26:19', 'disk':'/opt/matrix12', 'CPU':'CPU48'},
  64. { '__name__':'key1', '__value__':"这是string测试 error (network unreachable) resolving './NS/IN': 2001:500:84::b#53", '__timestamp__':'2024-07-30 11:24:17', 'disk':'/opt/matrix12', 'CPU':'CPU1'},
  65. { '__name__':'key2', '__value__':'这是string测试', '__timestamp__':'2024-07-30 11:25:18', 'disk':'/opt/matrix13', 'CPU':'CPU2'},
  66. { '__name__':'key5', '__value__':'这是string测试', '__timestamp__':'2024-07-30 11:25:19', 'disk':'/opt/matrix13', 'CPU':'CPU5'},
  67. { '__name__':'key48', '__value__':'这是string测试', '__timestamp__':'2024-07-30 11:26:19', 'disk':'/opt/matrix13', 'CPU':'CPU48'}])
  68. ;
  69. /**
  70. sleep(1s)
  71. **/
  72. ;