- high-cpu-all 查询在一段时间内某个阈值之上的所有信息。 SELECT * from cpu where usage_user > 90.0 and time >= '2020-11-01T05:24:55Z' and time < '2020-11-01T17:24:55Z' single-groupby-1-8-1 按1个条件进行分组,8个限定条件,查询一段时间内1个指标的最大值。
User-Data脚本 User-Data脚本传入Linux实例后直接作为Shell脚本执行,且仅在实例首次启动时运行一次,即创建成功、重装成功首次启动运行一次,重启不再运行。 以#!开头。 脚本示例: #!/bin/sh echo "Hello World. The time now is $(date -R)!" | tee /root/userdata.txt 脚本效果为在实例首次启动时,在userdata.txt文件中写入系统时间。