QuestionQ69

VerifiedCloud Native Architecture

Which of these is a valid PromQL query?

Explanation

PromQL is a purpose-built time-series query language with no SELECT, FROM, or WHERE clauses; a query is formed by naming a metric and, optionally, narrowing it with a label-matcher expression, unlike SQL-style statements which Prometheus's query engine does not parse at all. Among constructs that name the metric directly rather than wrapping it in SQL syntax, only the option built around the metric name with a qualifying expression reflects PromQL's actual selector-based grammar.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!