PromQL 从入门到精通
使用promql内置的聚合函数来做。 sum (calculate sum over dimensions) min (select minimum over dimensions) max (select maximum over dimensions) avg (calculate the average over dimensions) group (all values vector are 1) stddev (calculate population standard deviation over dimensions) stdvar (calculate population standard variance over dimensions) count (count number of elements in the vector) value) topk (largest k elements by sample value) quantile (calculate φ-quantile (0 ≤ φ ≤ 1) over dimensions) 比如取平均值和取最小的2个可用率数据,其对应的 promql 如下: avg(mem_available_percent{app="clickhouse"})0 码力 | 16 页 | 2.77 MB | 1 年前3Prometheus Deep Dive - Monitoring. At scale.
stable-ish remote read/write API Twelve integrations for this API Ongoing work to send write-ahead-log over the wire to fill gaps Richard Hartmann & Frederic Branczyk @TwitchiH & @fredbrancz Prometheus Deep storage level, there are object storage backends for Prometheus, e.g. Thanos Remote API can now send WAL over the wire to fill gaps in data There are twelve different systems which are able to ingest Proemtheus data this way We deliberately do no endorse any particular approach or solution; this might change over time Richard Hartmann & Frederic Branczyk @TwitchiH & @fredbrancz Prometheus Deep Dive Introduction0 码力 | 34 页 | 370.20 KB | 1 年前3Intro to Prometheus - With a dash of operations & observability
Background Operations & observability Outro Time series Time series are recorded values which change over time Individual events are usually merged into counters and/or histograms Changing values are recorded0 码力 | 19 页 | 63.73 KB | 1 年前3
共 3 条
- 1