You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 7, 2021. It is now read-only.
Copy file name to clipboardExpand all lines: spec/doc.md
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -429,7 +429,7 @@ The following TSL methods can be used to apply arithmetic operators on metrics:
429
429
* The **logN** operator. Compute values logN of the **number parameter**, example: _.logN(2)_
430
430
* The **rate** operator. Compute a **rate** (by default per second when no parameter are sets) or on a specify duration, example: _.rate()_, _.rate(1m)_
431
431
* The **sqrt** operator. Compute values **square root**, example: _.sqrt()_
432
-
* The **quantize** operator. Compute the amount of **values** inside a **step** on the complete query range or per parameter duration. This generate a single metric per step, based on the label key specified as first parameter. The second parameter corresponds to the step value: it can be a single number or integer value, or a fix step set modelised as a number or integer list. The last optional parameter for the quantize method is the quantize duration. This method can be useful to compute histograms, use example: _.quantize("quantile", [ 0, 10 ], 2m))_, _.quantize("quantile", 0.1))_
432
+
* The **quantize** operator. Compute the amount of **values** inside a **step** on the complete query range or per parameter duration. This generate a single metric per step, based on the label key specified as first parameter. The second parameter corresponds to the step value: it can be a single number or integer value, or a fix step set modelised as a number or integer list. The last optional parameter for the quantize method is the quantize duration. This method can be useful to compute histograms, use example: _.quantize("quantile", [ 0, 10 ], 2m)_, _.quantize("quantile", 0.1)_
433
433
434
434
> The **logN** operator is not available on **Prometheus**.
435
435
@@ -735,12 +735,14 @@ The **series** method is used to create a Time Series, only in Warp 10 for now,
735
735
736
736
The **setValues** takes n parameter, the first one (optional) is the base Timestamp of the values (by default zero). Then the other are a two elements array composed of a timestamp (that would be add to the base one) and the value to set. Use example: _.setValues([0, 1], [100, 2])._
737
737
738
-
At the end of the create statement, all other Time Series method can be apply on.
738
+
The **setLabels** takes a single parameter: a labels string list where the key and values are split per the equals symbol.
739
+
740
+
At the end of the create statement, all other Time Series set methods can be apply on.
739
741
740
742
A more complex but valid tsl statement to create 2 Time Series would be:
0 commit comments