@prometheus-io/lezer-promql 0.307.3 → 0.308.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +41 -0
- package/dist/index.cjs +159 -147
- package/dist/index.d.ts +4 -0
- package/dist/index.es.js +156 -148
- package/package.json +4 -4
- package/src/highlight.js +1 -1
- package/src/parser.js +147 -143
- package/src/parser.terms.js +136 -132
- package/src/promql.grammar +13 -1
- package/src/tokens.js +4 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,46 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## main / unreleased
|
|
4
|
+
|
|
5
|
+
## 3.8.0-rc.1 / 2025-11-21
|
|
6
|
+
|
|
7
|
+
* [CHANGE] Remote-write 2 (receiving): Update to [2.0-rc.4 spec](https://github.com/prometheus/docs/blob/60c24e450010df38cfcb4f65df874f6f9b26dbcb/docs/specs/prw/remote_write_spec_2_0.md). "created timestamp" (CT) is now called "start timestamp" (ST). #17411
|
|
8
|
+
* [FEATURE] OAuth2: support jwt-bearer grant-type (RFC7523 3.1). #17592
|
|
9
|
+
|
|
10
|
+
## 3.8.0-rc.0 / 2025-11-07
|
|
11
|
+
|
|
12
|
+
* [CHANGE] TSDB: Native Histogram Custom Bounds with a NaN threshold are now rejected. #17287
|
|
13
|
+
* [FEATURE] Dockerfile: Add OpenContainers spec labels to Dockerfile. #16483
|
|
14
|
+
* [FEATURE] SD: Add unified AWS service discovery for ec2, lightsail and ecs services. #17046
|
|
15
|
+
* [FEATURE] Native histograms are now a stable, but optional feature, use the `scrape_native_histogram` config setting. #17232 #17315
|
|
16
|
+
* [FEATURE] UI: Support anchored and smoothed keyword in promql editor. #17239
|
|
17
|
+
* [FEATURE] UI: Show detailed relabeling steps for each discovered target. #17337
|
|
18
|
+
* [FEATURE] Alerting: Add urlQueryEscape to template functions. #17403
|
|
19
|
+
* [FEATURE] Promtool: Add Remote-Write 2.0 support to `promtool push metrics` via the `--protobuf_message` flag. #17417
|
|
20
|
+
* [ENHANCEMENT] Clarify the docs about handling negative native histograms. #17249
|
|
21
|
+
* [ENHANCEMENT] Mixin: Add static UID to the remote-write dashboard. #17256
|
|
22
|
+
* [ENHANCEMENT] PromQL: Reconcile mismatched NHCB bounds in `Add` and `Sub`. #17278
|
|
23
|
+
* [ENHANCEMENT] Alerting: Add "unknown" state for alerting rules that haven't been evaluated yet. #17282
|
|
24
|
+
* [ENHANCEMENT] Scrape: Allow simultaneous use of classic histogram → NHCB conversion and zero-timestamp ingestion. #17305
|
|
25
|
+
* [ENHANCEMENT] UI: Add smoothed/anchored in explain. #17334
|
|
26
|
+
* [ENHANCEMENT] OTLP: De-duplicate any `target_info` samples with the same timestamp for the same series. #17400
|
|
27
|
+
* [ENHANCEMENT] Document `use_fips_sts_endpoint` in `sigv4` config sections. #17304
|
|
28
|
+
* [ENHANCEMENT] Document Prometheus Agent. #14519
|
|
29
|
+
* [PERF] PromQL: Speed up parsing of variadic functions. #17316
|
|
30
|
+
* [PERF] UI: Speed up alerts/rules/... pages by not rendering collapsed content. #17485
|
|
31
|
+
* [PERF] UI: Performance improvement when getting label name and values in promql editor. #17194
|
|
32
|
+
* [PERF] UI: Speed up /alerts for many firing alerts via virtual scrolling. #17254
|
|
33
|
+
* [BUGFIX] PromQL: Fix slice indexing bug in info function on churning series. #17199
|
|
34
|
+
* [BUGFIX] API: Reduce lock contention on `/api/v1/targets`. #17306
|
|
35
|
+
* [BUGFIX] PromQL: Consistent handling of gauge vs. counter histograms in aggregations. #17312
|
|
36
|
+
* [BUGFIX] TSDB: Allow NHCB with -Inf as the first custom value. #17320
|
|
37
|
+
* [BUGFIX] UI: Fix duplicate loading of data from the API speed up rendering of some pages. #17357
|
|
38
|
+
* [BUGFIX] Old UI: Fix createExpressionLink to correctly build /graph URLs so links from Alerts/Rules work again. #17365
|
|
39
|
+
* [BUGFIX] PromQL: Avoid panic when parsing malformed `info` call. #17379
|
|
40
|
+
* [BUGFIX] PromQL: Include histograms when enforcing sample_limit. #17390
|
|
41
|
+
* [BUGFIX] Config: Fix panic if TLS CA file is absent. #17418
|
|
42
|
+
* [BUGFIX] PromQL: Fix `histogram_fraction` for classic histograms and NHCB if lower bound is in the first bucket. #17424
|
|
43
|
+
|
|
3
44
|
## 3.7.3 / 2025-10-29
|
|
4
45
|
|
|
5
46
|
* [BUGFIX] UI: Revert changed (and breaking) redirect behavior for `-web.external-url` if `-web.route-prefix` is configured, which was introduced in #17240. #17389
|
package/dist/index.cjs
CHANGED
|
@@ -4,8 +4,8 @@ var lr = require('@lezer/lr');
|
|
|
4
4
|
var highlight = require('@lezer/highlight');
|
|
5
5
|
|
|
6
6
|
// This file was generated by lezer-generator. You probably shouldn't edit it.
|
|
7
|
-
const inf$1 =
|
|
8
|
-
nan$1 =
|
|
7
|
+
const inf$1 = 167,
|
|
8
|
+
nan$1 = 168,
|
|
9
9
|
Bool$1 = 1,
|
|
10
10
|
Ignoring$1 = 2,
|
|
11
11
|
On$1 = 3,
|
|
@@ -33,7 +33,9 @@ const inf$1 = 163,
|
|
|
33
33
|
Or$1 = 25,
|
|
34
34
|
Unless$1 = 26,
|
|
35
35
|
Start$1 = 27,
|
|
36
|
-
End$1 = 28
|
|
36
|
+
End$1 = 28,
|
|
37
|
+
Smoothed$1 = 29,
|
|
38
|
+
Anchored$1 = 30;
|
|
37
39
|
|
|
38
40
|
// Copyright 2021 The Prometheus Authors
|
|
39
41
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -87,6 +89,8 @@ const contextualKeywordTokens = {
|
|
|
87
89
|
unless: Unless$1,
|
|
88
90
|
start: Start$1,
|
|
89
91
|
end: End$1,
|
|
92
|
+
smoothed: Smoothed$1,
|
|
93
|
+
anchored: Anchored$1,
|
|
90
94
|
};
|
|
91
95
|
|
|
92
96
|
const extendIdentifier = (value, stack) => {
|
|
@@ -117,7 +121,7 @@ const promQLHighLight = highlight.styleTags({
|
|
|
117
121
|
'Abs Absent AbsentOverTime Acos Acosh Asin Asinh Atan Atanh AvgOverTime Ceil Changes Clamp ClampMax ClampMin Cos Cosh CountOverTime DaysInMonth DayOfMonth DayOfWeek DayOfYear Deg Delta Deriv Exp Floor HistogramAvg HistogramCount HistogramFraction HistogramQuantile HistogramSum DoubleExponentialSmoothing Hour Idelta Increase Irate LabelReplace LabelJoin LastOverTime Ln Log10 Log2 MaxOverTime MinOverTime Minute Month Pi PredictLinear PresentOverTime QuantileOverTime Rad Rate Resets Round Scalar Sgn Sin Sinh Sort SortDesc SortByLabel SortByLabelDesc Sqrt StddevOverTime StdvarOverTime SumOverTime Tan Tanh Time Timestamp Vector Year':
|
|
118
122
|
highlight.tags.function(highlight.tags.variableName),
|
|
119
123
|
'Avg Bottomk Count Count_values Group LimitK LimitRatio Max Min Quantile Stddev Stdvar Sum Topk': highlight.tags.operatorKeyword,
|
|
120
|
-
'By Without Bool On Ignoring GroupLeft GroupRight Offset Start End': highlight.tags.modifier,
|
|
124
|
+
'By Without Bool On Ignoring GroupLeft GroupRight Offset Start End Smoothed Anchored': highlight.tags.modifier,
|
|
121
125
|
'And Unless Or': highlight.tags.logicOperator,
|
|
122
126
|
'Sub Add Mul Mod Div Atan2 Eql Neq Lte Lss Gte Gtr EqlRegex EqlSingle NeqRegex Pow At': highlight.tags.operator,
|
|
123
127
|
UnaryOp: highlight.tags.arithmeticOperator,
|
|
@@ -128,29 +132,29 @@ const promQLHighLight = highlight.styleTags({
|
|
|
128
132
|
});
|
|
129
133
|
|
|
130
134
|
// This file was generated by lezer-generator. You probably shouldn't edit it.
|
|
131
|
-
const spec_Identifier = {__proto__:null,absent_over_time:
|
|
135
|
+
const spec_Identifier = {__proto__:null,absent_over_time:353, absent:355, abs:357, acos:359, acosh:361, asin:363, asinh:365, atan:367, atanh:369, avg_over_time:371, ceil:373, changes:375, clamp:377, clamp_max:379, clamp_min:381, cos:383, cosh:385, count_over_time:387, days_in_month:389, day_of_month:391, day_of_week:393, day_of_year:395, deg:397, delta:399, deriv:401, exp:403, first_over_time:405, floor:407, histogram_count:409, histogram_fraction:411, histogram_quantile:413, histogram_stddev:415, histogram_stdvar:417, histogram_sum:419, histogram_avg:421, double_exponential_smoothing:423, hour:425, idelta:427, increase:429, info:431, irate:433, label_replace:435, label_join:437, last_over_time:439, ln:441, log10:443, log2:445, mad_over_time:447, max_over_time:449, min_over_time:451, ts_of_first_over_time:453, ts_of_max_over_time:455, ts_of_min_over_time:457, ts_of_last_over_time:459, minute:461, month:463, pi:465, predict_linear:467, present_over_time:469, quantile_over_time:471, rad:473, rate:475, resets:477, round:479, scalar:481, sgn:483, sin:485, sinh:487, sort:489, sort_desc:491, sort_by_label:493, sort_by_label_desc:495, sqrt:497, stddev_over_time:499, stdvar_over_time:501, sum_over_time:503, tan:505, tanh:507, timestamp:509, time:511, vector:513, year:515};
|
|
132
136
|
const parser = lr.LRParser.deserialize({
|
|
133
137
|
version: 14,
|
|
134
|
-
states: "
|
|
135
|
-
stateData: "
|
|
136
|
-
goto: "
|
|
137
|
-
nodeNames: "⚠ Bool Ignoring On GroupLeft GroupRight Offset Atan2 Avg Bottomk Count CountValues Group Max Min Quantile LimitK LimitRatio Stddev Stdvar Sum Topk By Without And Or Unless Start End LineComment PromQL AggregateExpr AggregateOp AggregateModifier GroupingLabels LabelName QuotedLabelName StringLiteral FunctionCallBody BinaryExpr Pow BoolModifier MatchingModifierClause Mul Div Mod Add Sub Eql Gte Gtr Lte Lss Neq FunctionCall FunctionIdentifier AbsentOverTime Identifier Absent Abs Acos Acosh Asin Asinh Atan Atanh AvgOverTime Ceil Changes Clamp ClampMax ClampMin Cos Cosh CountOverTime DaysInMonth DayOfMonth DayOfWeek DayOfYear Deg Delta Deriv Exp FirstOverTime Floor HistogramCount HistogramFraction HistogramQuantile HistogramStdDev HistogramStdVar HistogramSum HistogramAvg DoubleExponentialSmoothing Hour Idelta Increase Info Irate LabelReplace LabelJoin LastOverTime Ln Log10 Log2 MadOverTime MaxOverTime MinOverTime TsOfFirstOverTime TsOfMaxOverTime TsOfMinOverTime TsOfLastOverTime Minute Month Pi PredictLinear PresentOverTime QuantileOverTime Rad Rate Resets Round Scalar Sgn Sin Sinh Sort SortDesc SortByLabel SortByLabelDesc Sqrt StddevOverTime StdvarOverTime SumOverTime Tan Tanh Timestamp Time Vector Year MatrixSelector NumberDurationLiteralInDurationContext NumberDurationLiteral OffsetExpr ParenExpr SubqueryExpr UnaryExpr UnaryOp VectorSelector LabelMatchers UnquotedLabelMatcher MatchOp EqlSingle EqlRegex NeqRegex QuotedLabelMatcher StepInvariantExpr At AtModifierPreprocessors MetricName",
|
|
138
|
-
maxTerm:
|
|
138
|
+
states: ":^OYQPOOO(TQPOOOOQO'#DO'#DOO(YQPO'#C}Q(eQQOOOOQO'#Dg'#DgO(`QPO'#DfOOQO'#Fa'#FaO)xQPO'#FhOYQPO'#FeOYQPO'#FgO0|QSO'#FjO1XQQO'#FiOOQO'#Fi'#FiOOQO'#F}'#F}OOQO'#Dh'#DhOOQO'#Dj'#DjOOQO'#Dk'#DkOOQO'#Dl'#DlOOQO'#Dm'#DmOOQO'#Dn'#DnOOQO'#Do'#DoOOQO'#Dp'#DpOOQO'#Dq'#DqOOQO'#Dr'#DrOOQO'#Ds'#DsOOQO'#Dt'#DtOOQO'#Du'#DuOOQO'#Dv'#DvOOQO'#Dw'#DwOOQO'#Dx'#DxOOQO'#Dy'#DyOOQO'#Dz'#DzOOQO'#D{'#D{OOQO'#D|'#D|OOQO'#D}'#D}OOQO'#EO'#EOOOQO'#EP'#EPOOQO'#EQ'#EQOOQO'#ER'#EROOQO'#ES'#ESOOQO'#ET'#ETOOQO'#EU'#EUOOQO'#EV'#EVOOQO'#EW'#EWOOQO'#EX'#EXOOQO'#EY'#EYOOQO'#EZ'#EZOOQO'#E['#E[OOQO'#E]'#E]OOQO'#E^'#E^OOQO'#E_'#E_OOQO'#E`'#E`OOQO'#Ea'#EaOOQO'#Eb'#EbOOQO'#Ec'#EcOOQO'#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b#tR%U$zQ#jZQ$^#nU$o$Y$r%PV%Q$t%S%XQ#XRQ#dUR#r#WZ#v#Y#Z#[#]#^Y#u#Y#Z#[#]#^R$c#veUOXY#V#w#x#y#z#{$_eTOXY#V#w#x#y#z#{$_Q$O#_Q$P#`R$|$kd^OXY#V#w#x#y#z#{$_R$S#ceYOXY#V#w#x#y#z#{$_d]OXY#V#w#x#y#z#{$_R#m[Q#lZV$p$Y$r%PQ$W#iT$X#j$oR$T#cQ$u$^R%T$uQ$`#qR$x$`S$Z#j#lR$s$ZQSOQ#fXQ#gYQ#q#VQ$d#wQ$e#xQ$f#yQ$g#zQ$h#{R$w$_Q#w#YQ#x#ZQ#y#[Q#z#]R#{#^",
|
|
141
|
+
nodeNames: "⚠ Bool Ignoring On GroupLeft GroupRight Offset Atan2 Avg Bottomk Count CountValues Group Max Min Quantile LimitK LimitRatio Stddev Stdvar Sum Topk By Without And Or Unless Start End Smoothed Anchored LineComment PromQL AggregateExpr AggregateOp AggregateModifier GroupingLabels LabelName QuotedLabelName StringLiteral FunctionCallBody BinaryExpr Pow BoolModifier MatchingModifierClause Mul Div Mod Add Sub Eql Gte Gtr Lte Lss Neq FunctionCall FunctionIdentifier AbsentOverTime Identifier Absent Abs Acos Acosh Asin Asinh Atan Atanh AvgOverTime Ceil Changes Clamp ClampMax ClampMin Cos Cosh CountOverTime DaysInMonth DayOfMonth DayOfWeek DayOfYear Deg Delta Deriv Exp FirstOverTime Floor HistogramCount HistogramFraction HistogramQuantile HistogramStdDev HistogramStdVar HistogramSum HistogramAvg DoubleExponentialSmoothing Hour Idelta Increase Info Irate LabelReplace LabelJoin LastOverTime Ln Log10 Log2 MadOverTime MaxOverTime MinOverTime TsOfFirstOverTime TsOfMaxOverTime TsOfMinOverTime TsOfLastOverTime Minute Month Pi PredictLinear PresentOverTime QuantileOverTime Rad Rate Resets Round Scalar Sgn Sin Sinh Sort SortDesc SortByLabel SortByLabelDesc Sqrt StddevOverTime StdvarOverTime SumOverTime Tan Tanh Timestamp Time Vector Year MatrixSelector NumberDurationLiteralInDurationContext NumberDurationLiteral OffsetExpr AnchoredExpr SmoothedExpr ParenExpr SubqueryExpr UnaryExpr UnaryOp VectorSelector LabelMatchers UnquotedLabelMatcher MatchOp EqlSingle EqlRegex NeqRegex QuotedLabelMatcher StepInvariantExpr At AtModifierPreprocessors MetricName",
|
|
142
|
+
maxTerm: 265,
|
|
139
143
|
nodeProps: [
|
|
140
|
-
["group", -
|
|
144
|
+
["group", -14,33,39,41,56,141,143,144,145,146,147,148,149,151,159,"Expr"]
|
|
141
145
|
],
|
|
142
146
|
propSources: [promQLHighLight],
|
|
143
|
-
skippedNodes: [0,
|
|
147
|
+
skippedNodes: [0,31],
|
|
144
148
|
repeatNodeCount: 3,
|
|
145
|
-
tokenData: "4k~RwX^#lpq#lqr$ars$tst&luv'Twx'Yxy({yz)Qz{)V{|)[|})c}!O)h!O!P)o!P!Q*u!Q!R*z!R![+u![!]1O!^!_1z!_!`2X!`!a2n!b!c2{!c!}3Q!}#O3h#P#Q3m#Q#R3r#R#S3Q#S#T3w#T#o3Q#o#p4a#q#r4f#y#z#l$f$g#l#BY#BZ#l$IS$I_#l$I|$JO#l$JT$JU#l$KV$KW#l&FU&FV#l~#qY$
|
|
149
|
+
tokenData: "4k~RwX^#lpq#lqr$ars$tst&luv'Twx'Yxy({yz)Qz{)V{|)[|})c}!O)h!O!P)o!P!Q*u!Q!R*z!R![+u![!]1O!^!_1z!_!`2X!`!a2n!b!c2{!c!}3Q!}#O3h#P#Q3m#Q#R3r#R#S3Q#S#T3w#T#o3Q#o#p4a#q#r4f#y#z#l$f$g#l#BY#BZ#l$IS$I_#l$I|$JO#l$JT$JU#l$KV$KW#l&FU&FV#l~#qY$p~X^#lpq#l#y#z#l$f$g#l#BY#BZ#l$IS$I_#l$I|$JO#l$JT$JU#l$KV$KW#l&FU&FV#l~$dQ!_!`$j#r#s$o~$oO!X~~$tO$c~~$yWw~OY$tZr$trs%cs#O$t#O#P%h#P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R#S1f#T#o1fR1kT!]R!Q![1f![!]1f!c!}1f#R#S1f#T#o1f~2PP!W~!_!`2S~2XO!V~~2^Q$aP!_!`2d#r#s2iQ2iO!SQ~2nO$b~~2sP!U~!_!`2v~2{O!T~~3QO$f~V3XT!]RuS!Q![3Q![!]1f!c!}3Q#R#S3Q#T#o3Q~3mO&l~~3rO&p~~3wOz~~3zTO#S3w#S#T%c#T;'S3w;'S;=`4Z<%lO3w~4^P;=`<%l3w~4fO&r~~4kO&s~",
|
|
146
150
|
tokenizers: [0, 1, 2],
|
|
147
|
-
topRules: {"PromQL":[0,
|
|
148
|
-
specialized: [{term:
|
|
151
|
+
topRules: {"PromQL":[0,32],"MetricName":[1,162]},
|
|
152
|
+
specialized: [{term: 59, get: (value, stack) => (specializeIdentifier(value) << 1), external: specializeIdentifier},{term: 59, get: (value, stack) => (extendIdentifier(value) << 1) | 1, external: extendIdentifier, extend: true},{term: 59, get: (value) => spec_Identifier[value] || -1}],
|
|
149
153
|
tokenPrec: 0
|
|
150
154
|
});
|
|
151
155
|
// This file was generated by lezer-generator. You probably shouldn't edit it.
|
|
152
|
-
const inf =
|
|
153
|
-
nan =
|
|
156
|
+
const inf = 167,
|
|
157
|
+
nan = 168,
|
|
154
158
|
Bool = 1,
|
|
155
159
|
Ignoring = 2,
|
|
156
160
|
On = 3,
|
|
@@ -179,136 +183,140 @@ const inf = 163,
|
|
|
179
183
|
Unless = 26,
|
|
180
184
|
Start = 27,
|
|
181
185
|
End = 28,
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
186
|
+
Smoothed = 29,
|
|
187
|
+
Anchored = 30,
|
|
188
|
+
LineComment = 31,
|
|
189
|
+
PromQL = 32,
|
|
190
|
+
AggregateExpr = 33,
|
|
191
|
+
AggregateOp = 34,
|
|
192
|
+
AggregateModifier = 35,
|
|
193
|
+
GroupingLabels = 36,
|
|
194
|
+
LabelName = 37,
|
|
195
|
+
QuotedLabelName = 38,
|
|
196
|
+
StringLiteral = 39,
|
|
197
|
+
FunctionCallBody = 40,
|
|
198
|
+
BinaryExpr = 41,
|
|
199
|
+
Pow = 42,
|
|
200
|
+
BoolModifier = 43,
|
|
201
|
+
MatchingModifierClause = 44,
|
|
202
|
+
Mul = 45,
|
|
203
|
+
Div = 46,
|
|
204
|
+
Mod = 47,
|
|
205
|
+
Add = 48,
|
|
206
|
+
Sub = 49,
|
|
207
|
+
Eql = 50,
|
|
208
|
+
Gte = 51,
|
|
209
|
+
Gtr = 52,
|
|
210
|
+
Lte = 53,
|
|
211
|
+
Lss = 54,
|
|
212
|
+
Neq = 55,
|
|
213
|
+
FunctionCall = 56,
|
|
214
|
+
FunctionIdentifier = 57,
|
|
215
|
+
AbsentOverTime = 58,
|
|
216
|
+
Identifier = 59,
|
|
217
|
+
Absent = 60,
|
|
218
|
+
Abs = 61,
|
|
219
|
+
Acos = 62,
|
|
220
|
+
Acosh = 63,
|
|
221
|
+
Asin = 64,
|
|
222
|
+
Asinh = 65,
|
|
223
|
+
Atan = 66,
|
|
224
|
+
Atanh = 67,
|
|
225
|
+
AvgOverTime = 68,
|
|
226
|
+
Ceil = 69,
|
|
227
|
+
Changes = 70,
|
|
228
|
+
Clamp = 71,
|
|
229
|
+
ClampMax = 72,
|
|
230
|
+
ClampMin = 73,
|
|
231
|
+
Cos = 74,
|
|
232
|
+
Cosh = 75,
|
|
233
|
+
CountOverTime = 76,
|
|
234
|
+
DaysInMonth = 77,
|
|
235
|
+
DayOfMonth = 78,
|
|
236
|
+
DayOfWeek = 79,
|
|
237
|
+
DayOfYear = 80,
|
|
238
|
+
Deg = 81,
|
|
239
|
+
Delta = 82,
|
|
240
|
+
Deriv = 83,
|
|
241
|
+
Exp = 84,
|
|
242
|
+
FirstOverTime = 85,
|
|
243
|
+
Floor = 86,
|
|
244
|
+
HistogramCount = 87,
|
|
245
|
+
HistogramFraction = 88,
|
|
246
|
+
HistogramQuantile = 89,
|
|
247
|
+
HistogramStdDev = 90,
|
|
248
|
+
HistogramStdVar = 91,
|
|
249
|
+
HistogramSum = 92,
|
|
250
|
+
HistogramAvg = 93,
|
|
251
|
+
DoubleExponentialSmoothing = 94,
|
|
252
|
+
Hour = 95,
|
|
253
|
+
Idelta = 96,
|
|
254
|
+
Increase = 97,
|
|
255
|
+
Info = 98,
|
|
256
|
+
Irate = 99,
|
|
257
|
+
LabelReplace = 100,
|
|
258
|
+
LabelJoin = 101,
|
|
259
|
+
LastOverTime = 102,
|
|
260
|
+
Ln = 103,
|
|
261
|
+
Log10 = 104,
|
|
262
|
+
Log2 = 105,
|
|
263
|
+
MadOverTime = 106,
|
|
264
|
+
MaxOverTime = 107,
|
|
265
|
+
MinOverTime = 108,
|
|
266
|
+
TsOfFirstOverTime = 109,
|
|
267
|
+
TsOfMaxOverTime = 110,
|
|
268
|
+
TsOfMinOverTime = 111,
|
|
269
|
+
TsOfLastOverTime = 112,
|
|
270
|
+
Minute = 113,
|
|
271
|
+
Month = 114,
|
|
272
|
+
Pi = 115,
|
|
273
|
+
PredictLinear = 116,
|
|
274
|
+
PresentOverTime = 117,
|
|
275
|
+
QuantileOverTime = 118,
|
|
276
|
+
Rad = 119,
|
|
277
|
+
Rate = 120,
|
|
278
|
+
Resets = 121,
|
|
279
|
+
Round = 122,
|
|
280
|
+
Scalar = 123,
|
|
281
|
+
Sgn = 124,
|
|
282
|
+
Sin = 125,
|
|
283
|
+
Sinh = 126,
|
|
284
|
+
Sort = 127,
|
|
285
|
+
SortDesc = 128,
|
|
286
|
+
SortByLabel = 129,
|
|
287
|
+
SortByLabelDesc = 130,
|
|
288
|
+
Sqrt = 131,
|
|
289
|
+
StddevOverTime = 132,
|
|
290
|
+
StdvarOverTime = 133,
|
|
291
|
+
SumOverTime = 134,
|
|
292
|
+
Tan = 135,
|
|
293
|
+
Tanh = 136,
|
|
294
|
+
Timestamp = 137,
|
|
295
|
+
Time = 138,
|
|
296
|
+
Vector = 139,
|
|
297
|
+
Year = 140,
|
|
298
|
+
MatrixSelector = 141,
|
|
299
|
+
NumberDurationLiteralInDurationContext = 142,
|
|
300
|
+
NumberDurationLiteral = 143,
|
|
301
|
+
OffsetExpr = 144,
|
|
302
|
+
AnchoredExpr = 145,
|
|
303
|
+
SmoothedExpr = 146,
|
|
304
|
+
ParenExpr = 147,
|
|
305
|
+
SubqueryExpr = 148,
|
|
306
|
+
UnaryExpr = 149,
|
|
307
|
+
UnaryOp = 150,
|
|
308
|
+
VectorSelector = 151,
|
|
309
|
+
LabelMatchers = 152,
|
|
310
|
+
UnquotedLabelMatcher = 153,
|
|
311
|
+
MatchOp = 154,
|
|
312
|
+
EqlSingle = 155,
|
|
313
|
+
EqlRegex = 156,
|
|
314
|
+
NeqRegex = 157,
|
|
315
|
+
QuotedLabelMatcher = 158,
|
|
316
|
+
StepInvariantExpr = 159,
|
|
317
|
+
At = 160,
|
|
318
|
+
AtModifierPreprocessors = 161,
|
|
319
|
+
MetricName = 162;
|
|
312
320
|
|
|
313
321
|
exports.Abs = Abs;
|
|
314
322
|
exports.Absent = Absent;
|
|
@@ -319,6 +327,8 @@ exports.Add = Add;
|
|
|
319
327
|
exports.AggregateExpr = AggregateExpr;
|
|
320
328
|
exports.AggregateModifier = AggregateModifier;
|
|
321
329
|
exports.AggregateOp = AggregateOp;
|
|
330
|
+
exports.Anchored = Anchored;
|
|
331
|
+
exports.AnchoredExpr = AnchoredExpr;
|
|
322
332
|
exports.And = And;
|
|
323
333
|
exports.Asin = Asin;
|
|
324
334
|
exports.Asinh = Asinh;
|
|
@@ -435,6 +445,8 @@ exports.Scalar = Scalar;
|
|
|
435
445
|
exports.Sgn = Sgn;
|
|
436
446
|
exports.Sin = Sin;
|
|
437
447
|
exports.Sinh = Sinh;
|
|
448
|
+
exports.Smoothed = Smoothed;
|
|
449
|
+
exports.SmoothedExpr = SmoothedExpr;
|
|
438
450
|
exports.Sort = Sort;
|
|
439
451
|
exports.SortByLabel = SortByLabel;
|
|
440
452
|
exports.SortByLabelDesc = SortByLabelDesc;
|
package/dist/index.d.ts
CHANGED
|
@@ -48,6 +48,8 @@ export const
|
|
|
48
48
|
Unless: number,
|
|
49
49
|
Start: number,
|
|
50
50
|
End: number,
|
|
51
|
+
Smoothed: number,
|
|
52
|
+
Anchored: number,
|
|
51
53
|
LineComment: number,
|
|
52
54
|
PromQL: number,
|
|
53
55
|
AggregateExpr: number,
|
|
@@ -162,6 +164,8 @@ export const
|
|
|
162
164
|
NumberDurationLiteralInDurationContext: number,
|
|
163
165
|
NumberDurationLiteral: number,
|
|
164
166
|
OffsetExpr: number,
|
|
167
|
+
AnchoredExpr: number,
|
|
168
|
+
SmoothedExpr: number,
|
|
165
169
|
ParenExpr: number,
|
|
166
170
|
SubqueryExpr: number,
|
|
167
171
|
UnaryExpr: number,
|