初识PromQL
查询时间序列
http_requests_totalhttp_requests_total{}http_requests_total{code="200",handler="alerts",instance="localhost:9090",job="prometheus",method="get"}=(20889@1518096812.326)
http_requests_total{code="200",handler="graph",instance="localhost:9090",job="prometheus",method="get"}=(21287@1518096812.326)http_requests_total{instance="localhost:9090"}范围查询
时间位移操作
使用聚合操作
标量和字符串
标量(Scalar):一个浮点型的数字值
字符串(String):一个简单的字符串值
合法的PromQL表达式
Last updated