@prometheus-io/lezer-promql 0.300.0-beta.1 → 0.300.0-rc.0
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 +22 -5
- package/dist/index.cjs +73 -71
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +73 -72
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
## unreleased
|
|
4
4
|
|
|
5
|
+
## 3.0.0-rc.0 / 2024-10-31
|
|
6
|
+
|
|
7
|
+
* [CHANGE] Scraping: Remove implicit fallback to the Prometheus text format in case of invalid/missing Content-Type and fail the scrape instead. Add ability to specify a `fallback_scrape_protocol` in the scrape config. #15136
|
|
8
|
+
* [CHANGE] Remote-write: default enable_http2 to false. #15219
|
|
9
|
+
* [CHANGE] Scraping: normalize "le" and "quantile" label values upon ingestion. #15164
|
|
10
|
+
* [CHANGE] Scraping: config `scrape_classic_histograms` was renamed to `always_scrape_classic_histograms`. #15178
|
|
11
|
+
* [CHANGE] Config: remove expand-external-labels flag, expand external labels env vars by default. #14657
|
|
12
|
+
* [CHANGE] Disallow configuring AM with the v1 api. #13883
|
|
13
|
+
* [ENHANCEMENT] Scraping, rules: handle targets reappearing, or rules moving group, when out-of-order is enabled. #14710
|
|
14
|
+
* [ENHANCEMENT] Tools: add debug printouts to promtool rules unit testing #15196
|
|
15
|
+
* [ENHANCEMENT] Scraping: support Created-Timestamp feature on native histograms. #14694
|
|
16
|
+
* [BUGFIX] PromQL: Fix stddev+stdvar aggregations to always ignore native histograms. #14941
|
|
17
|
+
* [BUGFIX] PromQL: Fix stddev+stdvar aggregations to treat Infinity consistently. #14941
|
|
18
|
+
* [BUGFIX] OTLP receiver: Preserve colons when generating metric names in suffix adding mode (this mode is always enabled, unless one uses Prometheus as a library). #15251
|
|
19
|
+
|
|
5
20
|
## 3.0.0-beta.1 / 2024-10-09
|
|
6
21
|
|
|
7
22
|
* [CHANGE] regexp `.` now matches all characters (performance improvement). #14505
|
|
@@ -16,7 +31,6 @@
|
|
|
16
31
|
* [ENHANCEMENT] PromQL: Introduce exponential interpolation for native histograms. #14677
|
|
17
32
|
* [ENHANCEMENT] TSDB: Add support for ingestion of out-of-order native histogram samples. #14850, #14546
|
|
18
33
|
* [ENHANCEMENT] Alerts: remove metrics for removed Alertmanagers. #13909
|
|
19
|
-
* [ENHANCEMENT] Scraping: support Created-Timestamp feature on native histograms. #14694
|
|
20
34
|
* [ENHANCEMENT] Kubernetes SD: Support sidecar containers in endpoint discovery. #14929
|
|
21
35
|
* [ENHANCEMENT] Consul SD: Support catalog filters. #11224
|
|
22
36
|
* [PERF] TSDB: Parallelize deletion of postings after head compaction. #14975
|
|
@@ -48,12 +62,13 @@ As is traditional with a beta release, we do **not** recommend users install 3.0
|
|
|
48
62
|
* [CHANGE] Remove deprecated `remote-write-receiver`,`promql-at-modifier`, and `promql-negative-offset` feature flags. #13456, #14526
|
|
49
63
|
* [CHANGE] Remove deprecated `storage.tsdb.allow-overlapping-blocks`, `alertmanager.timeout`, and `storage.tsdb.retention` flags. #14640, #14643
|
|
50
64
|
* [ENHANCEMENT] Move AM discovery page from "Monitoring status" to "Server status". #14875
|
|
65
|
+
* [FEATURE] Support config reload automatically - feature flag `auto-reload-config`. #14769
|
|
51
66
|
* [BUGFIX] Scrape: Do not override target parameter labels with config params. #11029
|
|
52
67
|
|
|
53
|
-
## 2.55.0
|
|
68
|
+
## 2.55.0 / 2024-10-22
|
|
54
69
|
|
|
70
|
+
* [FEATURE] PromQL: Add experimental `info` function. #14495
|
|
55
71
|
* [FEATURE] Support UTF-8 characters in label names - feature flag `utf8-names`. #14482, #14880, #14736, #14727
|
|
56
|
-
* [FEATURE] Support config reload automatically - feature flag `auto-reload-config`. #14769
|
|
57
72
|
* [FEATURE] Scraping: Add the ability to set custom `http_headers` in config. #14817
|
|
58
73
|
* [FEATURE] Scraping: Support feature flag `created-timestamp-zero-ingestion` in OpenMetrics. #14356, #14815
|
|
59
74
|
* [FEATURE] Scraping: `scrape_failure_log_file` option to log failures to a file. #14734
|
|
@@ -61,19 +76,21 @@ As is traditional with a beta release, we do **not** recommend users install 3.0
|
|
|
61
76
|
* [FEATURE] Remote-Write: Support Google Cloud Monitoring authorization. #14346
|
|
62
77
|
* [FEATURE] Promtool: `tsdb create-blocks` new option to add labels. #14403
|
|
63
78
|
* [FEATURE] Promtool: `promtool test` adds `--junit` flag to format results. #14506
|
|
79
|
+
* [FEATURE] TSDB: Add `delayed-compaction` feature flag, for people running many Prometheus to randomize timing. #12532
|
|
64
80
|
* [ENHANCEMENT] OTLP receiver: Warn on exponential histograms with zero count and non-zero sum. #14706
|
|
65
81
|
* [ENHANCEMENT] OTLP receiver: Interrupt translation on context cancellation/timeout. #14612
|
|
66
82
|
* [ENHANCEMENT] Remote Read client: Enable streaming remote read if the server supports it. #11379
|
|
67
83
|
* [ENHANCEMENT] Remote-Write: Don't reshard if we haven't successfully sent a sample since last update. #14450
|
|
68
84
|
* [ENHANCEMENT] PromQL: Delay deletion of `__name__` label to the end of the query evaluation. This is **experimental** and enabled under the feature-flag `promql-delayed-name-removal`. #14477
|
|
69
|
-
* [ENHANCEMENT] PromQL: Experimental `sort_by_label` and `sort_by_label_desc` sort by all labels when label is equal. #14655
|
|
85
|
+
* [ENHANCEMENT] PromQL: Experimental `sort_by_label` and `sort_by_label_desc` sort by all labels when label is equal. #14655, #14985
|
|
70
86
|
* [ENHANCEMENT] PromQL: Clarify error message logged when Go runtime panic occurs during query evaluation. #14621
|
|
71
87
|
* [ENHANCEMENT] PromQL: Use Kahan summation for better accuracy in `avg` and `avg_over_time`. #14413
|
|
72
88
|
* [ENHANCEMENT] Tracing: Improve PromQL tracing, including showing the operation performed for aggregates, operators, and calls. #14816
|
|
73
89
|
* [ENHANCEMENT] API: Support multiple listening addresses. #14665
|
|
74
90
|
* [ENHANCEMENT] TSDB: Backward compatibility with upcoming index v3. #14934
|
|
75
|
-
* [PERF] TSDB: Query in-order and out-of-order series together. #14354, #14693, #14714, #14831, #14874, #14948
|
|
91
|
+
* [PERF] TSDB: Query in-order and out-of-order series together. #14354, #14693, #14714, #14831, #14874, #14948, #15120
|
|
76
92
|
* [PERF] TSDB: Streamline reading of overlapping out-of-order head chunks. #14729
|
|
93
|
+
* [BUGFIX] PromQL: make sort_by_label stable. #14985
|
|
77
94
|
* [BUGFIX] SD: Fix dropping targets (with feature flag `new-service-discovery-manager`). #13147
|
|
78
95
|
* [BUGFIX] SD: Stop storing stale targets (with feature flag `new-service-discovery-manager`). #13622
|
|
79
96
|
* [BUGFIX] Scraping: exemplars could be dropped in protobuf scraping. #14810
|
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 = 158,
|
|
8
|
+
nan$1 = 159,
|
|
9
9
|
Bool$1 = 1,
|
|
10
10
|
Ignoring$1 = 2,
|
|
11
11
|
On$1 = 3,
|
|
@@ -128,29 +128,29 @@ const promQLHighLight = highlight.styleTags({
|
|
|
128
128
|
});
|
|
129
129
|
|
|
130
130
|
// This file was generated by lezer-generator. You probably shouldn't edit it.
|
|
131
|
-
const spec_Identifier = {__proto__:null,absent_over_time:
|
|
131
|
+
const spec_Identifier = {__proto__:null,absent_over_time:335, absent:337, abs:339, acos:341, acosh:343, asin:345, asinh:347, atan:349, atanh:351, avg_over_time:353, ceil:355, changes:357, clamp:359, clamp_max:361, clamp_min:363, cos:365, cosh:367, count_over_time:369, days_in_month:371, day_of_month:373, day_of_week:375, day_of_year:377, deg:379, delta:381, deriv:383, exp:385, floor:387, histogram_count:389, histogram_fraction:391, histogram_quantile:393, histogram_stddev:395, histogram_stdvar:397, histogram_sum:399, histogram_avg:401, double_exponential_smoothing:403, hour:405, idelta:407, increase:409, info:411, irate:413, label_replace:415, label_join:417, last_over_time:419, ln:421, log10:423, log2:425, mad_over_time:427, max_over_time:429, min_over_time:431, minute:433, month:435, pi:437, predict_linear:439, present_over_time:441, quantile_over_time:443, rad:445, rate:447, resets:449, round:451, scalar:453, sgn:455, sin:457, sinh:459, sort:461, sort_desc:463, sort_by_label:465, sort_by_label_desc:467, sqrt:469, stddev_over_time:471, stdvar_over_time:473, sum_over_time:475, tan:477, tanh:479, timestamp:481, time:483, vector:485, year:487};
|
|
132
132
|
const parser = lr.LRParser.deserialize({
|
|
133
133
|
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 Floor HistogramCount HistogramFraction HistogramQuantile HistogramStdDev HistogramStdVar HistogramSum HistogramAvg DoubleExponentialSmoothing Hour Idelta Increase Irate LabelReplace LabelJoin LastOverTime Ln Log10 Log2 MadOverTime 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 Timestamp Time Vector Year MatrixSelector NumberDurationLiteralInDurationContext NumberDurationLiteral Offset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i&[zi&]zi&_zi&`zi&azi&dzi~O&b%OO~Os#bOu#aO~Os$yOu#aO$k%PO~Os$yOu#aO~O",
|
|
136
|
+
goto: ")v$mPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP$n$z%W%^P%gP%w$nP&Q&XPPPPPPPPPPP$n&c&oP&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o$n&{'U$n$n$n$n'e$n'q(Q(YPPP(Q$nP(aP(d(j(pPPPPP(wPPP)ge^OXY#Q#p#q#r#s#t$WeROXY#Q#p#q#r#s#t$WQ#RRR#k#SQ#h#PQ$Z#mR$}$sQ#cZQ$V#gU$h$R$k$xV$y$m${%QQ#SRQ#]UR#k#RZ#o#T#U#V#W#XY#n#T#U#V#W#XR$[#oeUOXY#Q#p#q#r#s#t$WeTOXY#Q#p#q#r#s#t$WQ#w#YQ#x#ZR$u$dd^OXY#Q#p#q#r#s#t$WR#{#[eYOXY#Q#p#q#r#s#t$Wd]OXY#Q#p#q#r#s#t$WR#f[Q#eZV$i$R$k$xQ$P#bT$Q#c$hR#|#[Q$n$VR$|$nQ$X#jR$q$XS$S#c#eR$l$SQSOQ#_XQ#`YQ#j#QQ$]#pQ$^#qQ$_#rQ$`#sQ$a#tR$p$WQ#p#TQ#q#UQ#r#VQ#s#WR#t#X",
|
|
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 Floor HistogramCount HistogramFraction HistogramQuantile HistogramStdDev HistogramStdVar HistogramSum HistogramAvg DoubleExponentialSmoothing Hour Idelta Increase Info Irate LabelReplace LabelJoin LastOverTime Ln Log10 Log2 MadOverTime 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 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: 251,
|
|
139
139
|
nodeProps: [
|
|
140
|
-
["group", -12,31,37,39,54,
|
|
140
|
+
["group", -12,31,37,39,54,134,136,137,138,139,140,142,150,"Expr"]
|
|
141
141
|
],
|
|
142
142
|
propSources: [promQLHighLight],
|
|
143
143
|
skippedNodes: [0,29],
|
|
144
144
|
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$
|
|
145
|
+
tokenData: "4k~RwX^#lpq#lqr$ars$tst&luv'Twx'Yxy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-dS!Q![-a#[#]-p#a#b.U#g#h.x~-uP&a~!Q![-x~-{R!Q![-x#a#b.U#g#h.x~.ZQ&a~!Q![.a#g#h.s~.dR!Q![.a#a#b.m#g#h.x~.pP#g#h.s~.xO&a~~.}P&a~!Q![/Q~/TQ!Q![/Q#a#b.m~/`P&a~!Q![/c~/fT!Q![/c#W#X-X#[#]-p#a#b.U#g#h.x~/zP&a~!Q![/}~0QU!Q![/}#W#X-X#[#]-p#a#b.U#g#h.x#k#l/Z~0gR!Q![0p!c!i0p#T#Z0p~0uR&a~!Q![0p!c!i0p#T#Z0pV1VT&cS!ZR!Q![1f![!]1f!c!}1f#R#S1f#T#o1fR1kT!ZR!Q![1f![!]1f!c!}1f#R#S1f#T#o1f~2PP!U~!_!`2S~2XO!T~~2^Q$WP!_!`2d#r#s2iQ2iO!QQ~2nO$X~~2sP!S~!_!`2v~2{O!R~~3QO$]~V3XT!ZRsS!Q![3Q![!]1f!c!}3Q#R#S3Q#T#o3Q~3mO&^~~3rO&b~~3wOx~~3zTO#S3w#S#T%c#T;'S3w;'S;=`4Z<%lO3w~4^P;=`<%l3w~4fO&d~~4kO&e~",
|
|
146
146
|
tokenizers: [0, 1, 2],
|
|
147
|
-
topRules: {"PromQL":[0,30],"MetricName":[1,
|
|
147
|
+
topRules: {"PromQL":[0,30],"MetricName":[1,153]},
|
|
148
148
|
specialized: [{term: 57, get: (value, stack) => (specializeIdentifier(value) << 1), external: specializeIdentifier},{term: 57, get: (value, stack) => (extendIdentifier(value) << 1) | 1, external: extendIdentifier, extend: true},{term: 57, get: (value) => spec_Identifier[value] || -1}],
|
|
149
149
|
tokenPrec: 0
|
|
150
150
|
});
|
|
151
151
|
// This file was generated by lezer-generator. You probably shouldn't edit it.
|
|
152
|
-
const inf =
|
|
153
|
-
nan =
|
|
152
|
+
const inf = 158,
|
|
153
|
+
nan = 159,
|
|
154
154
|
Bool = 1,
|
|
155
155
|
Ignoring = 2,
|
|
156
156
|
On = 3,
|
|
@@ -245,64 +245,65 @@ const inf = 157,
|
|
|
245
245
|
Hour = 92,
|
|
246
246
|
Idelta = 93,
|
|
247
247
|
Increase = 94,
|
|
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
|
-
|
|
248
|
+
Info = 95,
|
|
249
|
+
Irate = 96,
|
|
250
|
+
LabelReplace = 97,
|
|
251
|
+
LabelJoin = 98,
|
|
252
|
+
LastOverTime = 99,
|
|
253
|
+
Ln = 100,
|
|
254
|
+
Log10 = 101,
|
|
255
|
+
Log2 = 102,
|
|
256
|
+
MadOverTime = 103,
|
|
257
|
+
MaxOverTime = 104,
|
|
258
|
+
MinOverTime = 105,
|
|
259
|
+
Minute = 106,
|
|
260
|
+
Month = 107,
|
|
261
|
+
Pi = 108,
|
|
262
|
+
PredictLinear = 109,
|
|
263
|
+
PresentOverTime = 110,
|
|
264
|
+
QuantileOverTime = 111,
|
|
265
|
+
Rad = 112,
|
|
266
|
+
Rate = 113,
|
|
267
|
+
Resets = 114,
|
|
268
|
+
Round = 115,
|
|
269
|
+
Scalar = 116,
|
|
270
|
+
Sgn = 117,
|
|
271
|
+
Sin = 118,
|
|
272
|
+
Sinh = 119,
|
|
273
|
+
Sort = 120,
|
|
274
|
+
SortDesc = 121,
|
|
275
|
+
SortByLabel = 122,
|
|
276
|
+
SortByLabelDesc = 123,
|
|
277
|
+
Sqrt = 124,
|
|
278
|
+
StddevOverTime = 125,
|
|
279
|
+
StdvarOverTime = 126,
|
|
280
|
+
SumOverTime = 127,
|
|
281
|
+
Tan = 128,
|
|
282
|
+
Tanh = 129,
|
|
283
|
+
Timestamp = 130,
|
|
284
|
+
Time = 131,
|
|
285
|
+
Vector = 132,
|
|
286
|
+
Year = 133,
|
|
287
|
+
MatrixSelector = 134,
|
|
288
|
+
NumberDurationLiteralInDurationContext = 135,
|
|
289
|
+
NumberDurationLiteral = 136,
|
|
290
|
+
OffsetExpr = 137,
|
|
291
|
+
ParenExpr = 138,
|
|
292
|
+
SubqueryExpr = 139,
|
|
293
|
+
UnaryExpr = 140,
|
|
294
|
+
UnaryOp = 141,
|
|
295
|
+
VectorSelector = 142,
|
|
296
|
+
LabelMatchers = 143,
|
|
297
|
+
UnquotedLabelMatcher = 144,
|
|
298
|
+
MatchOp = 145,
|
|
299
|
+
EqlSingle = 146,
|
|
300
|
+
EqlRegex = 147,
|
|
301
|
+
NeqRegex = 148,
|
|
302
|
+
QuotedLabelMatcher = 149,
|
|
303
|
+
StepInvariantExpr = 150,
|
|
304
|
+
At = 151,
|
|
305
|
+
AtModifierPreprocessors = 152,
|
|
306
|
+
MetricName = 153;
|
|
306
307
|
|
|
307
308
|
exports.Abs = Abs;
|
|
308
309
|
exports.Absent = Absent;
|
|
@@ -374,6 +375,7 @@ exports.Idelta = Idelta;
|
|
|
374
375
|
exports.Identifier = Identifier;
|
|
375
376
|
exports.Ignoring = Ignoring;
|
|
376
377
|
exports.Increase = Increase;
|
|
378
|
+
exports.Info = Info;
|
|
377
379
|
exports.Irate = Irate;
|
|
378
380
|
exports.LabelJoin = LabelJoin;
|
|
379
381
|
exports.LabelMatchers = LabelMatchers;
|
package/dist/index.d.ts
CHANGED
package/dist/index.es.js
CHANGED
|
@@ -2,8 +2,8 @@ import { LRParser } from '@lezer/lr';
|
|
|
2
2
|
import { styleTags, tags } from '@lezer/highlight';
|
|
3
3
|
|
|
4
4
|
// This file was generated by lezer-generator. You probably shouldn't edit it.
|
|
5
|
-
const inf$1 =
|
|
6
|
-
nan$1 =
|
|
5
|
+
const inf$1 = 158,
|
|
6
|
+
nan$1 = 159,
|
|
7
7
|
Bool$1 = 1,
|
|
8
8
|
Ignoring$1 = 2,
|
|
9
9
|
On$1 = 3,
|
|
@@ -126,29 +126,29 @@ const promQLHighLight = styleTags({
|
|
|
126
126
|
});
|
|
127
127
|
|
|
128
128
|
// This file was generated by lezer-generator. You probably shouldn't edit it.
|
|
129
|
-
const spec_Identifier = {__proto__:null,absent_over_time:
|
|
129
|
+
const spec_Identifier = {__proto__:null,absent_over_time:335, absent:337, abs:339, acos:341, acosh:343, asin:345, asinh:347, atan:349, atanh:351, avg_over_time:353, ceil:355, changes:357, clamp:359, clamp_max:361, clamp_min:363, cos:365, cosh:367, count_over_time:369, days_in_month:371, day_of_month:373, day_of_week:375, day_of_year:377, deg:379, delta:381, deriv:383, exp:385, floor:387, histogram_count:389, histogram_fraction:391, histogram_quantile:393, histogram_stddev:395, histogram_stdvar:397, histogram_sum:399, histogram_avg:401, double_exponential_smoothing:403, hour:405, idelta:407, increase:409, info:411, irate:413, label_replace:415, label_join:417, last_over_time:419, ln:421, log10:423, log2:425, mad_over_time:427, max_over_time:429, min_over_time:431, minute:433, month:435, pi:437, predict_linear:439, present_over_time:441, quantile_over_time:443, rad:445, rate:447, resets:449, round:451, scalar:453, sgn:455, sin:457, sinh:459, sort:461, sort_desc:463, sort_by_label:465, sort_by_label_desc:467, sqrt:469, stddev_over_time:471, stdvar_over_time:473, sum_over_time:475, tan:477, tanh:479, timestamp:481, time:483, vector:485, year:487};
|
|
130
130
|
const parser = LRParser.deserialize({
|
|
131
131
|
version: 14,
|
|
132
|
-
states: "
|
|
133
|
-
stateData: "!-
|
|
134
|
-
goto: ")
|
|
135
|
-
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 Floor HistogramCount HistogramFraction HistogramQuantile HistogramStdDev HistogramStdVar HistogramSum HistogramAvg DoubleExponentialSmoothing Hour Idelta Increase Irate LabelReplace LabelJoin LastOverTime Ln Log10 Log2 MadOverTime 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 Timestamp Time Vector Year MatrixSelector NumberDurationLiteralInDurationContext NumberDurationLiteral OffsetExpr ParenExpr SubqueryExpr UnaryExpr UnaryOp VectorSelector LabelMatchers UnquotedLabelMatcher MatchOp EqlSingle EqlRegex NeqRegex QuotedLabelMatcher StepInvariantExpr At AtModifierPreprocessors MetricName",
|
|
136
|
-
maxTerm:
|
|
132
|
+
states: "9bOYQPOOO'tQPOOOOQO'#C|'#C|O'yQPO'#C{Q(UQQOOOOQO'#De'#DeO(PQPO'#DdOOQO'#FY'#FYO)cQPO'#F_OYQPO'#F[OYQPO'#F^O0W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&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o$n&{'U$n$n$n$n'e$n'q(Q(YPPP(Q$nP(aP(d(j(pPPPPP(wPPP)ge^OXY#Q#p#q#r#s#t$WeROXY#Q#p#q#r#s#t$WQ#RRR#k#SQ#h#PQ$Z#mR$}$sQ#cZQ$V#gU$h$R$k$xV$y$m${%QQ#SRQ#]UR#k#RZ#o#T#U#V#W#XY#n#T#U#V#W#XR$[#oeUOXY#Q#p#q#r#s#t$WeTOXY#Q#p#q#r#s#t$WQ#w#YQ#x#ZR$u$dd^OXY#Q#p#q#r#s#t$WR#{#[eYOXY#Q#p#q#r#s#t$Wd]OXY#Q#p#q#r#s#t$WR#f[Q#eZV$i$R$k$xQ$P#bT$Q#c$hR#|#[Q$n$VR$|$nQ$X#jR$q$XS$S#c#eR$l$SQSOQ#_XQ#`YQ#j#QQ$]#pQ$^#qQ$_#rQ$`#sQ$a#tR$p$WQ#p#TQ#q#UQ#r#VQ#s#WR#t#X",
|
|
135
|
+
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 Floor HistogramCount HistogramFraction HistogramQuantile HistogramStdDev HistogramStdVar HistogramSum HistogramAvg DoubleExponentialSmoothing Hour Idelta Increase Info Irate LabelReplace LabelJoin LastOverTime Ln Log10 Log2 MadOverTime 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 Timestamp Time Vector Year MatrixSelector NumberDurationLiteralInDurationContext NumberDurationLiteral OffsetExpr ParenExpr SubqueryExpr UnaryExpr UnaryOp VectorSelector LabelMatchers UnquotedLabelMatcher MatchOp EqlSingle EqlRegex NeqRegex QuotedLabelMatcher StepInvariantExpr At AtModifierPreprocessors MetricName",
|
|
136
|
+
maxTerm: 251,
|
|
137
137
|
nodeProps: [
|
|
138
|
-
["group", -12,31,37,39,54,
|
|
138
|
+
["group", -12,31,37,39,54,134,136,137,138,139,140,142,150,"Expr"]
|
|
139
139
|
],
|
|
140
140
|
propSources: [promQLHighLight],
|
|
141
141
|
skippedNodes: [0,29],
|
|
142
142
|
repeatNodeCount: 3,
|
|
143
|
-
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$
|
|
143
|
+
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$g~X^#lpq#l#y#z#l$f$g#l#BY#BZ#l$IS$I_#l$I|$JO#l$JT$JU#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~0gR!Q![0p!c!i0p#T#Z0p~0uR&a~!Q![0p!c!i0p#T#Z0pV1VT&cS!ZR!Q![1f![!]1f!c!}1f#R#S1f#T#o1fR1kT!ZR!Q![1f![!]1f!c!}1f#R#S1f#T#o1f~2PP!U~!_!`2S~2XO!T~~2^Q$WP!_!`2d#r#s2iQ2iO!QQ~2nO$X~~2sP!S~!_!`2v~2{O!R~~3QO$]~V3XT!ZRsS!Q![3Q![!]1f!c!}3Q#R#S3Q#T#o3Q~3mO&^~~3rO&b~~3wOx~~3zTO#S3w#S#T%c#T;'S3w;'S;=`4Z<%lO3w~4^P;=`<%l3w~4fO&d~~4kO&e~",
|
|
144
144
|
tokenizers: [0, 1, 2],
|
|
145
|
-
topRules: {"PromQL":[0,30],"MetricName":[1,
|
|
145
|
+
topRules: {"PromQL":[0,30],"MetricName":[1,153]},
|
|
146
146
|
specialized: [{term: 57, get: (value, stack) => (specializeIdentifier(value) << 1), external: specializeIdentifier},{term: 57, get: (value, stack) => (extendIdentifier(value) << 1) | 1, external: extendIdentifier, extend: true},{term: 57, get: (value) => spec_Identifier[value] || -1}],
|
|
147
147
|
tokenPrec: 0
|
|
148
148
|
});
|
|
149
149
|
// This file was generated by lezer-generator. You probably shouldn't edit it.
|
|
150
|
-
const inf =
|
|
151
|
-
nan =
|
|
150
|
+
const inf = 158,
|
|
151
|
+
nan = 159,
|
|
152
152
|
Bool = 1,
|
|
153
153
|
Ignoring = 2,
|
|
154
154
|
On = 3,
|
|
@@ -243,63 +243,64 @@ const inf = 157,
|
|
|
243
243
|
Hour = 92,
|
|
244
244
|
Idelta = 93,
|
|
245
245
|
Increase = 94,
|
|
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
|
-
|
|
246
|
+
Info = 95,
|
|
247
|
+
Irate = 96,
|
|
248
|
+
LabelReplace = 97,
|
|
249
|
+
LabelJoin = 98,
|
|
250
|
+
LastOverTime = 99,
|
|
251
|
+
Ln = 100,
|
|
252
|
+
Log10 = 101,
|
|
253
|
+
Log2 = 102,
|
|
254
|
+
MadOverTime = 103,
|
|
255
|
+
MaxOverTime = 104,
|
|
256
|
+
MinOverTime = 105,
|
|
257
|
+
Minute = 106,
|
|
258
|
+
Month = 107,
|
|
259
|
+
Pi = 108,
|
|
260
|
+
PredictLinear = 109,
|
|
261
|
+
PresentOverTime = 110,
|
|
262
|
+
QuantileOverTime = 111,
|
|
263
|
+
Rad = 112,
|
|
264
|
+
Rate = 113,
|
|
265
|
+
Resets = 114,
|
|
266
|
+
Round = 115,
|
|
267
|
+
Scalar = 116,
|
|
268
|
+
Sgn = 117,
|
|
269
|
+
Sin = 118,
|
|
270
|
+
Sinh = 119,
|
|
271
|
+
Sort = 120,
|
|
272
|
+
SortDesc = 121,
|
|
273
|
+
SortByLabel = 122,
|
|
274
|
+
SortByLabelDesc = 123,
|
|
275
|
+
Sqrt = 124,
|
|
276
|
+
StddevOverTime = 125,
|
|
277
|
+
StdvarOverTime = 126,
|
|
278
|
+
SumOverTime = 127,
|
|
279
|
+
Tan = 128,
|
|
280
|
+
Tanh = 129,
|
|
281
|
+
Timestamp = 130,
|
|
282
|
+
Time = 131,
|
|
283
|
+
Vector = 132,
|
|
284
|
+
Year = 133,
|
|
285
|
+
MatrixSelector = 134,
|
|
286
|
+
NumberDurationLiteralInDurationContext = 135,
|
|
287
|
+
NumberDurationLiteral = 136,
|
|
288
|
+
OffsetExpr = 137,
|
|
289
|
+
ParenExpr = 138,
|
|
290
|
+
SubqueryExpr = 139,
|
|
291
|
+
UnaryExpr = 140,
|
|
292
|
+
UnaryOp = 141,
|
|
293
|
+
VectorSelector = 142,
|
|
294
|
+
LabelMatchers = 143,
|
|
295
|
+
UnquotedLabelMatcher = 144,
|
|
296
|
+
MatchOp = 145,
|
|
297
|
+
EqlSingle = 146,
|
|
298
|
+
EqlRegex = 147,
|
|
299
|
+
NeqRegex = 148,
|
|
300
|
+
QuotedLabelMatcher = 149,
|
|
301
|
+
StepInvariantExpr = 150,
|
|
302
|
+
At = 151,
|
|
303
|
+
AtModifierPreprocessors = 152,
|
|
304
|
+
MetricName = 153;
|
|
304
305
|
|
|
305
|
-
export { Abs, Absent, AbsentOverTime, Acos, Acosh, Add, AggregateExpr, AggregateModifier, AggregateOp, And, Asin, Asinh, At, AtModifierPreprocessors, Atan, Atan2, Atanh, Avg, AvgOverTime, BinaryExpr, Bool, BoolModifier, Bottomk, By, Ceil, Changes, Clamp, ClampMax, ClampMin, Cos, Cosh, Count, CountOverTime, CountValues, DayOfMonth, DayOfWeek, DayOfYear, DaysInMonth, Deg, Delta, Deriv, Div, DoubleExponentialSmoothing, End, Eql, EqlRegex, EqlSingle, Exp, Floor, FunctionCall, FunctionCallBody, FunctionIdentifier, Group, GroupLeft, GroupRight, GroupingLabels, Gte, Gtr, HistogramAvg, HistogramCount, HistogramFraction, HistogramQuantile, HistogramStdDev, HistogramStdVar, HistogramSum, Hour, Idelta, Identifier, Ignoring, Increase, Irate, LabelJoin, LabelMatchers, LabelName, LabelReplace, LastOverTime, LimitK, LimitRatio, LineComment, Ln, Log10, Log2, Lss, Lte, MadOverTime, MatchOp, MatchingModifierClause, MatrixSelector, Max, MaxOverTime, MetricName, Min, MinOverTime, Minute, Mod, Month, Mul, Neq, NeqRegex, NumberDurationLiteral, NumberDurationLiteralInDurationContext, Offset, OffsetExpr, On, Or, ParenExpr, Pi, Pow, PredictLinear, PresentOverTime, PromQL, Quantile, QuantileOverTime, QuotedLabelMatcher, QuotedLabelName, Rad, Rate, Resets, Round, Scalar, Sgn, Sin, Sinh, Sort, SortByLabel, SortByLabelDesc, SortDesc, Sqrt, Start, Stddev, StddevOverTime, Stdvar, StdvarOverTime, StepInvariantExpr, StringLiteral, Sub, SubqueryExpr, Sum, SumOverTime, Tan, Tanh, Time, Timestamp, Topk, UnaryExpr, UnaryOp, Unless, UnquotedLabelMatcher, Vector, VectorSelector, Without, Year, inf, nan, parser };
|
|
306
|
+
export { Abs, Absent, AbsentOverTime, Acos, Acosh, Add, AggregateExpr, AggregateModifier, AggregateOp, And, Asin, Asinh, At, AtModifierPreprocessors, Atan, Atan2, Atanh, Avg, AvgOverTime, BinaryExpr, Bool, BoolModifier, Bottomk, By, Ceil, Changes, Clamp, ClampMax, ClampMin, Cos, Cosh, Count, CountOverTime, CountValues, DayOfMonth, DayOfWeek, DayOfYear, DaysInMonth, Deg, Delta, Deriv, Div, DoubleExponentialSmoothing, End, Eql, EqlRegex, EqlSingle, Exp, Floor, FunctionCall, FunctionCallBody, FunctionIdentifier, Group, GroupLeft, GroupRight, GroupingLabels, Gte, Gtr, HistogramAvg, HistogramCount, HistogramFraction, HistogramQuantile, HistogramStdDev, HistogramStdVar, HistogramSum, Hour, Idelta, Identifier, Ignoring, Increase, Info, Irate, LabelJoin, LabelMatchers, LabelName, LabelReplace, LastOverTime, LimitK, LimitRatio, LineComment, Ln, Log10, Log2, Lss, Lte, MadOverTime, MatchOp, MatchingModifierClause, MatrixSelector, Max, MaxOverTime, MetricName, Min, MinOverTime, Minute, Mod, Month, Mul, Neq, NeqRegex, NumberDurationLiteral, NumberDurationLiteralInDurationContext, Offset, OffsetExpr, On, Or, ParenExpr, Pi, Pow, PredictLinear, PresentOverTime, PromQL, Quantile, QuantileOverTime, QuotedLabelMatcher, QuotedLabelName, Rad, Rate, Resets, Round, Scalar, Sgn, Sin, Sinh, Sort, SortByLabel, SortByLabelDesc, SortDesc, Sqrt, Start, Stddev, StddevOverTime, Stdvar, StdvarOverTime, StepInvariantExpr, StringLiteral, Sub, SubqueryExpr, Sum, SumOverTime, Tan, Tanh, Time, Timestamp, Topk, UnaryExpr, UnaryOp, Unless, UnquotedLabelMatcher, Vector, VectorSelector, Without, Year, inf, nan, parser };
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prometheus-io/lezer-promql",
|
|
3
|
-
"version": "0.300.0-
|
|
3
|
+
"version": "0.300.0-rc.0",
|
|
4
4
|
"description": "lezer-based PromQL grammar",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
8
9
|
"import": "./dist/index.es.js",
|
|
9
10
|
"require": "./dist/index.cjs"
|
|
10
11
|
},
|