Table of contents

PromQL

programming_language

%3 cluster_e05d6f89_cad8_4526_bd67_fa72ee87371a PromQL cluster_7b70a680_b868_4896_8f26_1adfda036165 Articles _0b19c6ad_dfde_4322_8038_32ee46822d15 PromQL cheat sheet _95997f30_5007_4bb9_b9d3_9c0f89a41115 Usual queries _ffe910cd_df63_438c_acfe_36a22b90875f Array programming languages __0:cluster_e05d6f89_cad8_4526_bd67_fa72ee87371a->_ffe910cd_df63_438c_acfe_36a22b90875f

A [ query language ] to pull data from the [ Prometheus ] [ time series DB ] .

A query is more akin to a Array programming language statement than to a typical [ SQL ] query.

aggregation_operation(data_column{tag="value"}) + aggretation_operation(other_data_column{tag="value"})

Usual queries

  • Get a column or 0 if null (doesn't work for full time-series graphs)

data_column{} OR on() vector(0)