PromQL: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=Internal= * Prometheus Concepts =Organizatorium= Vectors. Instant vectors. Time ranged vectors.")
 
Line 3: Line 3:
=Organizatorium=
=Organizatorium=
Vectors. Instant vectors. Time ranged vectors.
Vectors. Instant vectors. Time ranged vectors.
Query for all [[Prometheus_Concepts#Series|series]] that are associated with a certain label:
<syntaxhighlight lang='text'>
some_metric{some_label!=""}
</syntaxhighlight>
Query for all [[Prometheus_Concepts#Series|series]] that are associated with two labels:
<syntaxhighlight lang='text'>
some_metric{some_label!="",some_other_label!=""}
</syntaxhighlight>

Revision as of 05:23, 15 October 2020

Internal

Organizatorium

Vectors. Instant vectors. Time ranged vectors.

Query for all series that are associated with a certain label:

some_metric{some_label!=""}

Query for all series that are associated with two labels:

some_metric{some_label!="",some_other_label!=""}