1930data9.mql 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. insert into /test/bucketsplit (id, prom_split) values (?, ? )
  2. /**
  3. loop(1440)
  4. set(ct,"2024-07-20 00:00:00")
  5. beforerun(
  6. add(ct,60,second)
  7. )
  8. params("bucketsplit:wecise", [
  9. {"name": "key1", "value": 2, "timestamp": "{%t,ct}"},
  10. {"name": "key2", "value": 1.8, "timestamp": "{%t,ct}"},
  11. {"name": "key3", "value": 2.9, "timestamp": "{%t,ct}"},
  12. {"name": "key4", "value": 2, "timestamp": "{%t,ct}"},
  13. {"name": "key5", "value": 1.8, "timestamp": "{%t,ct}"},
  14. {"name": "key6", "value": 2.9, "timestamp": "{%t,ct}"},
  15. {"name": "key7", "value": 2, "timestamp": "{%t,ct}"},
  16. {"name": "key8", "value": 1.8, "timestamp": "{%t,ct}"},
  17. {"name": "key9", "value": 2.9, "timestamp": "{%t,ct}"},
  18. {"name": "key1", "disk": "/opt/matrix1", "CPU": "CPU1", "value": 2, "timestamp": "{%t,ct}"},
  19. {"name": "key2", "disk": "/opt/matrix1", "CPU": "CPU1", "value": 1.8, "timestamp": "{%t,ct}"},
  20. {"name": "key3", "disk": "/opt/matrix1", "CPU": "CPU2", "value": 2.9, "timestamp": "{%t,ct}"},
  21. {"name": "key4", "disk": "/opt/matrix1", "CPU": "CPU2", "value": 2, "timestamp": "{%t,ct}"},
  22. {"name": "key5", "disk": "/opt/matrix1", "CPU": "CPU3", "value": 1.8, "timestamp": "{%t,ct}"},
  23. {"name": "key6", "disk": "/opt/matrix1", "CPU": "CPU3", "value": 2.9, "timestamp": "{%t,ct}"},
  24. {"name": "key7", "disk": "/opt/matrix1", "CPU": "CPU4", "value": 2, "timestamp": "{%t,ct}"},
  25. {"name": "key8", "disk": "/opt/matrix1", "CPU": "CPU4", "value": 1.8, "timestamp": "{%t,ct}"},
  26. {"name": "key9", "disk": "/opt/matrix1", "CPU": "CPU4", "value": 2.9, "timestamp": "{%t,ct}"}])
  27. **/;
  28. insert into /test/bucketsplit (id, prom_split) values ('bucketsplit:wecise',
  29. [{ '__name__':'key1', '__value__':2, '__timestamp__':'2024-07-25 11:24:17', 'disk':'/opt/matrix1', 'CPU':'CPU1'},
  30. { '__name__':'key2', '__value__':8.81, '__timestamp__':'2024-07-25 11:25:18', 'disk':'/opt/matrix2', 'CPU':'CPU2'},
  31. { '__name__':'key5', '__value__':2.9, '__timestamp__':'2024-07-25 11:25:19', 'disk':'/opt/matrix3', 'CPU':'CPU5'},
  32. { '__name__':'key48', '__value__':2.9, '__timestamp__':'2024-07-25 11:26:19', 'disk':'/opt/matrix4', 'CPU':'CPU48'},
  33. { '__name__':'key1', '__value__':200, '__timestamp__':'2024-07-25 11:34:17', 'disk':'/opt/matrix1', 'CPU':'CPU1'},
  34. { '__name__':'key2', '__value__':80.81, '__timestamp__':'2024-07-25 11:35:18', 'disk':'/opt/matrix2', 'CPU':'CPU2'},
  35. { '__name__':'key5', '__value__':20.9, '__timestamp__':'2024-07-25 11:35:19', 'disk':'/opt/matrix3', 'CPU':'CPU5'},
  36. { '__name__':'key48', '__value__':20.9, '__timestamp__':'2024-07-25 11:36:19', 'disk':'/opt/matrix4', 'CPU':'CPU48'},
  37. { '__name__':'key1', '__value__':20, '__timestamp__':'2024-07-26 11:24:17', 'disk':'/opt/matrix1', 'CPU':'CPU1'},
  38. { '__name__':'key2', '__value__':800.81, '__timestamp__':'2024-07-26 11:25:18', 'disk':'/opt/matrix2', 'CPU':'CPU2'},
  39. { '__name__':'key5', '__value__':20.9, '__timestamp__':'2024-07-26 11:25:19', 'disk':'/opt/matrix3', 'CPU':'CPU5'},
  40. { '__name__':'key48', '__value__':200.9, '__timestamp__':'2024-07-26 11:26:19', 'disk':'/opt/matrix4', 'CPU':'CPU48'},
  41. { '__name__':'key1', '__value__':20, '__timestamp__':'2024-07-26 11:34:17', 'disk':'/opt/matrix1', 'CPU':'CPU1'},
  42. { '__name__':'key2', '__value__':800.81, '__timestamp__':'2024-07-26 11:35:18', 'disk':'/opt/matrix2', 'CPU':'CPU2'},
  43. { '__name__':'key5', '__value__':20.9, '__timestamp__':'2024-07-26 11:35:19', 'disk':'/opt/matrix3', 'CPU':'CPU5'},
  44. { '__name__':'key48', '__value__':20.9, '__timestamp__':'2024-07-26 11:36:19', 'disk':'/opt/matrix4', 'CPU':'CPU48'},
  45. { '__name__':'key1', '__value__':20, '__timestamp__':'2024-07-27 11:24:17', 'disk':'/opt/matrix1', 'CPU':'CPU1'},
  46. { '__name__':'key2', '__value__':800.81, '__timestamp__':'2024-07-27 11:25:18', 'disk':'/opt/matrix2', 'CPU':'CPU2'},
  47. { '__name__':'key5', '__value__':20.9, '__timestamp__':'2024-07-27 11:25:19', 'disk':'/opt/matrix3', 'CPU':'CPU5'},
  48. { '__name__':'key48', '__value__':200.9, '__timestamp__':'2024-07-27 11:26:19', 'disk':'/opt/matrix4', 'CPU':'CPU48'},
  49. { '__name__':'key1', '__value__':2, '__timestamp__':'2024-07-27 11:34:17', 'disk':'/opt/matrix1', 'CPU':'CPU1'},
  50. { '__name__':'key2', '__value__':8.81, '__timestamp__':'2024-07-27 11:35:18', 'disk':'/opt/matrix2', 'CPU':'CPU2'},
  51. { '__name__':'key5', '__value__':2.9, '__timestamp__':'2024-07-27 11:35:19', 'disk':'/opt/matrix3', 'CPU':'CPU5'},
  52. { '__name__':'key48', '__value__':2.9, '__timestamp__':'2024-07-27 11:36:19', 'disk':'/opt/matrix4', 'CPU':'CPU48'},
  53. { '__name__':'key1', '__value__':2.7, '__timestamp__':'2024-07-28 11:24:17', 'disk':'/opt/matrix5', 'CPU':'CPU1'},
  54. { '__name__':'key2', '__value__':8.82, '__timestamp__':'2024-07-28 11:25:18', 'disk':'/opt/matrix6', 'CPU':'CPU2'},
  55. { '__name__':'key5', '__value__':2.9, '__timestamp__':'2024-07-28 11:25:19', 'disk':'/opt/matrix7', 'CPU':'CPU5'},
  56. { '__name__':'key48', '__value__':2.9, '__timestamp__':'2024-07-28 11:26:19', 'disk':'/opt/matrix8', 'CPU':'CPU48'},
  57. { '__name__':'key1', '__value__':2.7, '__timestamp__':'2024-07-29 11:24:17', 'disk':'/opt/matrix9', 'CPU':'CPU1'},
  58. { '__name__':'key2', '__value__':8.83, '__timestamp__':'2024-07-29 11:25:18', 'disk':'/opt/matrix10', 'CPU':'CPU2'},
  59. { '__name__':'key5', '__value__':2.9, '__timestamp__':'2024-07-29 11:25:19', 'disk':'/opt/matrix11', 'CPU':'CPU5'},
  60. { '__name__':'key48', '__value__':2.9, '__timestamp__':'2024-07-29 11:26:19', 'disk':'/opt/matrix12', 'CPU':'CPU48'},
  61. { '__name__':'key1', '__value__':2.7, '__timestamp__':'2024-07-30 11:24:17', 'disk':'/opt/matrix12', 'CPU':'CPU1'},
  62. { '__name__':'key2', '__value__':8.84, '__timestamp__':'2024-07-30 11:25:18', 'disk':'/opt/matrix13', 'CPU':'CPU2'},
  63. { '__name__':'key5', '__value__':2.9, '__timestamp__':'2024-07-30 11:25:19', 'disk':'/opt/matrix13', 'CPU':'CPU5'},
  64. { '__name__':'key48', '__value__':2.9, '__timestamp__':'2024-07-30 11:26:19', 'disk':'/opt/matrix13', 'CPU':'CPU48'},
  65. { '__name__':'key1', '__value__':2, '__timestamp__':'2024-07-25 09:24:17', 'disk':'/opt/matrix1', 'CPU':'CPU1'},
  66. { '__name__':'key2', '__value__':8.81, '__timestamp__':'2024-07-25 09:25:18', 'disk':'/opt/matrix2', 'CPU':'CPU2'},
  67. { '__name__':'key5', '__value__':2.9, '__timestamp__':'2024-07-25 09:25:19', 'disk':'/opt/matrix3', 'CPU':'CPU5'},
  68. { '__name__':'key48', '__value__':2.9, '__timestamp__':'2024-07-25 09:26:19', 'disk':'/opt/matrix4', 'CPU':'CPU48'},
  69. { '__name__':'key1', '__value__':2, '__timestamp__':'2024-07-26 09:24:17', 'disk':'/opt/matrix1', 'CPU':'CPU1'},
  70. { '__name__':'key2', '__value__':8.81, '__timestamp__':'2024-07-26 09:25:18', 'disk':'/opt/matrix2', 'CPU':'CPU2'},
  71. { '__name__':'key5', '__value__':2.9, '__timestamp__':'2024-07-26 09:25:19', 'disk':'/opt/matrix3', 'CPU':'CPU5'},
  72. { '__name__':'key48', '__value__':2.9, '__timestamp__':'2024-07-26 09:26:19', 'disk':'/opt/matrix4', 'CPU':'CPU48'},
  73. { '__name__':'key1', '__value__':2, '__timestamp__':'2024-07-27 09:24:17', 'disk':'/opt/matrix1', 'CPU':'CPU1'},
  74. { '__name__':'key2', '__value__':8.81, '__timestamp__':'2024-07-27 09:25:18', 'disk':'/opt/matrix2', 'CPU':'CPU2'},
  75. { '__name__':'key5', '__value__':2.9, '__timestamp__':'2024-07-27 09:25:19', 'disk':'/opt/matrix3', 'CPU':'CPU5'},
  76. { '__name__':'key48', '__value__':2.9, '__timestamp__':'2024-07-27 09:26:19', 'disk':'/opt/matrix4', 'CPU':'CPU48'},
  77. { '__name__':'key1', '__value__':2.7, '__timestamp__':'2024-07-28 09:24:17', 'disk':'/opt/matrix5', 'CPU':'CPU1'},
  78. { '__name__':'key2', '__value__':8.82, '__timestamp__':'2024-07-28 09:25:18', 'disk':'/opt/matrix6', 'CPU':'CPU2'},
  79. { '__name__':'key5', '__value__':2.9, '__timestamp__':'2024-07-28 09:25:19', 'disk':'/opt/matrix7', 'CPU':'CPU5'},
  80. { '__name__':'key48', '__value__':2.9, '__timestamp__':'2024-07-28 09:26:19', 'disk':'/opt/matrix8', 'CPU':'CPU48'},
  81. { '__name__':'key1', '__value__':2.7, '__timestamp__':'2024-07-29 09:24:17', 'disk':'/opt/matrix9', 'CPU':'CPU1'},
  82. { '__name__':'key2', '__value__':8.83, '__timestamp__':'2024-07-29 09:25:18', 'disk':'/opt/matrix10', 'CPU':'CPU2'},
  83. { '__name__':'key5', '__value__':2.9, '__timestamp__':'2024-07-29 09:25:19', 'disk':'/opt/matrix11', 'CPU':'CPU5'},
  84. { '__name__':'key48', '__value__':2.9, '__timestamp__':'2024-07-29 09:26:19', 'disk':'/opt/matrix12', 'CPU':'CPU48'},
  85. { '__name__':'key1', '__value__':2.7, '__timestamp__':'2024-07-30 09:24:17', 'disk':'/opt/matrix12', 'CPU':'CPU1'},
  86. { '__name__':'key2', '__value__':8.84, '__timestamp__':'2024-07-30 09:25:18', 'disk':'/opt/matrix13', 'CPU':'CPU2'},
  87. { '__name__':'key5', '__value__':2.9, '__timestamp__':'2024-07-30 09:25:19', 'disk':'/opt/matrix13', 'CPU':'CPU5'},
  88. { '__name__':'key48', '__value__':2.9, '__timestamp__':'2024-07-30 09:26:19', 'disk':'/opt/matrix13', 'CPU':'CPU48'}] )
  89. ;
  90. insert into /test/bucketsplit (id, prom_split) values ('bucketsplit:wecise',
  91. [{ '__name__':'key1', '__value__':2, '__timestamp__':1627702037000.12345, 'disk':'/opt/matrix1', 'CPU':'CPU1'},
  92. { '__name__':'key2', '__value__':8.81, '__timestamp__':1627702098000.23333, 'disk':'/opt/matrix2', 'CPU':'CPU2'},
  93. { '__name__':'key5', '__value__':2.9, '__timestamp__':1627702099000.23456, 'disk':'/opt/matrix3', 'CPU':'CPU5'},
  94. { '__name__':'key48', '__value__':2.9, '__timestamp__':1627702159000.75678, 'disk':'/opt/matrix4', 'CPU':'CPU48'},
  95. { '__name__':'key1', '__value__':2, '__timestamp__':1627701977000.34567, 'disk':'/opt/matrix1', 'CPU':'CPU1'},
  96. { '__name__':'key2', '__value__':8.81, '__timestamp__':1627702038000.6789, 'disk':'/opt/matrix2', 'CPU':'CPU2'},
  97. { '__name__':'key5', '__value__':2.9, '__timestamp__':1627702039000.21345, 'disk':'/opt/matrix3', 'CPU':'CPU5'},
  98. { '__name__':'key48', '__value__':2.9, '__timestamp__':1627702099000.34567, 'disk':'/opt/matrix4', 'CPU':'CPU48'},
  99. { '__name__':'key1', '__value__':2, '__timestamp__':1627701917000.34556, 'disk':'/opt/matrix1', 'CPU':'CPU1'},
  100. { '__name__':'key2', '__value__':8.81, '__timestamp__':1627701978000.234, 'disk':'/opt/matrix2', 'CPU':'CPU2'},
  101. { '__name__':'key5', '__value__':2.9, '__timestamp__':1627701979000.234, 'disk':'/opt/matrix3', 'CPU':'CPU5'},
  102. { '__name__':'key48', '__value__':2.9, '__timestamp__':1627702039000.1, 'disk':'/opt/matrix4', 'CPU':'CPU48'},
  103. { '__name__':'key1', '__value__':20, '__timestamp__':1627701857000.23423, 'disk':'/opt/matrix1', 'CPU':'CPU1'},
  104. { '__name__':'key2', '__value__':88.1, '__timestamp__':1627701918000.78, 'disk':'/opt/matrix2', 'CPU':'CPU2'},
  105. { '__name__':'key5', '__value__':29, '__timestamp__':1627701919000.63, 'disk':'/opt/matrix3', 'CPU':'CPU5'},
  106. { '__name__':'key48', '__value__':29, '__timestamp__':1627701979000.123, 'disk':'/opt/matrix4', 'CPU':'CPU48'} ] )
  107. ;
  108. /**
  109. sleep(1s)
  110. **/
  111. ;