|NO.Z.00305|——————————|CloudNative|——|KuberNetes&运维.V25|——|监控.v02|PromQL查询_过滤|

一、过滤查询:过滤:Labelsets
### --- 查询语法:

~~~     offset:查看多少分钟之前的数据 offset 30m
~~~     Labelsets:过滤         
~~~     过滤出具有 handler=“/login”的label的数据
二、绝对查询:查询http_request_total有多少个:查询出的URL:http_request_total
三、绝对路径查询:通过labelsets查询具有某一条件的URL:{handler="/login"}
四、正则匹配.等于:也可以通过正则表达式来查询具有某一条件的RUL:{handler=~".*login.*"}
五、正则匹配.不等于:也可以通过正则表达式来查询不具有某一条件的RUL:{handler!~".*login.*"}
六、绝对路径:匹配2个值:查询具备2个条件的参数:

 
 
 
 
 
 
 
 
 

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:52  yanqi_vip  阅读(27)  评论(0)    收藏  举报

导航