PromQL: Difference between revisions
Jump to navigation
Jump to search
Line 6: | Line 6: | ||
* [[Prometheus_Concepts#PromQL|Prometheus Concepts]] | * [[Prometheus_Concepts#PromQL|Prometheus Concepts]] | ||
=Data Types= | =Data Types= | ||
==Instant Vector== | |||
A set of time series containing a simple [[#Sample|sample]] for each time series, all sharing the same timestamp. | |||
==Range Vector== | |||
A set of time series containing a range of data points over time for each series. | |||
==Scalar== | |||
A simple numeric floating point value. | |||
==String== | |||
A simple string value. | |||
=Organizatorium= | =Organizatorium= |
Revision as of 17:20, 15 October 2020
External
- https://prometheus.io/docs/prometheus/latest/querying/basics/
- https://prometheus.io/docs/prometheus/latest/querying/examples/
Internal
Data Types
Instant Vector
A set of time series containing a simple sample for each time series, all sharing the same timestamp.
Range Vector
A set of time series containing a range of data points over time for each series.
Scalar
A simple numeric floating point value.
String
A simple string value.
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!=""}