|NO.Z.00307|——————————|CloudNative|——|KuberNetes&运维.V27|——|监控.v04|PromQL查询_运算符|

一、运算符:
### --- 集合运算:

~~~     集合运算:and ,or,unless
### --- OR:查找小于等于2977,并且等于2977.7890625:or:

~~~     并列关系,前面符合后面也需要符合
~~~     node_memory_MemTotal_bytes/1024/1024 <= 2977 or node_memory_MemTotal_bytes/1024/1024 == 2977.7890625
二、unless:排查:
### --- unless:排查:

~~~     node_memory_MemTotal_bytes/1024/1024 >= 2977 unless node_memory_MemTotal_bytes/1024/1024 ==  2977.7890625:查找到大于等于2977的值,
~~~     并排除:2977.7890625这个值的记录,最后只剩余一条记录
三、and:和:
### --- and:和

~~~     and:和:node_memory_MemTotal_bytes/1024/1024 >= 2977 and node_memory_MemTotal_bytes/1024/1024 ==  2977.7890625

 
 
 
 
 
 
 
 
 

Walter Savage Landor:strove with none,for none was worth my strife.Nature I loved and, next to Nature, Art:I warm'd both hands before the fire of life.It sinks, and I am ready to depart
                                                                                                                                                   ——W.S.Landor

 

 

posted on 2022-03-31 13:53  yanqi_vip  阅读(17)  评论(0)    收藏  举报

导航