“ ExtendedPromQL”-罗马·哈夫罗年科的报告的解码

我建议您熟悉Roman Havronenko“ ExtendedPromQL”对报告的解码




简要介绍一下我。我的名字叫罗马。我在伦敦的CloudFlare工作。但我也是VictoriaMetrics的赞助人。
我是Grafana和ClickHouse-proxyClickHouse插件的作者-这是ClickHouse的小型代理。



, « » , – . , , . , – java - . , , .



. PromQL? PromQL – Prometheus Query Language. , Prometheus, time series , .



time series ? , .


:


  • .
  • .
  • .


( , ), .


. , . . . , 15 000 . time series .



"" () . , . , -, . . , , , Jay Silent Bob. , ; .



. ClickHouse . , «Steps», . . . , ; - -, , : Jay Silent Bob.



, Grafana, , -, .



. . – . , time series ClickHouse, Grafana.



Graph Panel. Grafana, , .



— Grafana, ClickHouse, , . . . , . . , .



. , ?



, .



, . , ? , , Grafana time series, - , time series – - labels.



. Jay.



. . .



, , , , Prometheus PromQL. . . . Steps. Jay. , .



Jay Silent Bob. ClickHouse runningDifference, . . , . .



, . . 1,8 Silent Bob Jay.



Prometheus , . , .



Grafana , PromQL. Rate Macros . Grafana «rate», - . , - , , SQL- – . , .



, . ClickHouse, rate, time series: Silent Bob, Jay, time series. , .



Prometheus sum (rate). ClickHouse , RateColumns, , Prometheus.



PromQL , , , .


:


  • Limited SELECT.
  • JOIN.
  • HAVING.

, , - PromQL, SQL , , , SQL. ? , .



. . , , , , .



– Extending PromQL.



VictoriaMetrics. VictoriaMetrics? time series , OpenSource, single cluster-. , , . . - 0,4 , Prometheus – 1,2-1,4.


Prometheus. InfluxDB, Graphite, OpenTSDB.


"", . . .


Prometheus Grafana, . . PromQL engine. Grafana Prometheus endpoint VictoriaMetrics , .


, VictoriaMetrics.


, .



Omit interval param – Grafana. zoom-in/out , $__interval. Grafana . VictoriaMetrics , . . .



– interval referencing. . , , , .



rollup function. Rollup function time series time series. min, max avg. , , - outliers ( ) .



irate rate, - , time series , . , , max avg.



default. Default – , Grafana, time series . ? - . , , . , success error. , error. default .



Keep_last_Value – , . Prometheus 5 , .



Scrape_interval – , Prometheus , . , .



Label replace – . , , . 5 , .

, ? . . .



. , extended PromQL? Common Table Expressions. QR- (https://github.com/VictoriaMetrics/VictoriaMetrics/wiki/ExtendedPromQL), , playground, VictoriaMetrics .



? – . , . . - , , , JSON, find replace, . ? , , .



, Grafana , . Grafana?



: commonFilter , . , , Grafana . .



, . , , . https://github.com/grafana/grafana/pull/16694



PromQL extended. , . ru (resource usage). , . . . . . , . , , , - .



- . NodeExporter Grafana. , . . ., , , , , . ?



, , . . , , Grafana.



, , ru, VictoriaMetrics. , CTE.



, , . , , Grafana - . , , Grafana , - . - -. , - , . . .


, , , SRE. , , , , Grafana, . . , . 100 , - .


, Grafana, ? , . , , , , , ?


. . Grafana. , , NodeExporter, , . .



. . . Grafana, JSON , . . . - , .



-, , Grafana . Grafana "", - - – . , .



VictoriaMetrics. . compression, time series , PromQL, , vertical scalability Thanos.



:


. Grafana, 5 . . production. , , , , . . , , Grafana? , - – . , , . .


. . – , , , , , . - , , , . – , , , capacity planning - .


?


? , .


Grafana.


Grafana? Grafana DataSource.


- .


, Grafana . GET-, , , step. , , , . . , Grafana, .


! ! mapping , Grafana . , ?


.


, alert Grafana. alert . , , alerts Grafana?


Grafana - -, – , . Grafana , alertmanager.


是的,我使用了它,但是在Grafana中设置起来似乎比较容易,但是感谢您的建议!


All Articles