@prometheus-io/lezer-promql 0.54.0 → 0.300.0-beta.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 +52 -0
- package/dist/index.cjs +35 -13
- package/dist/index.d.ts +2 -2
- package/dist/index.es.js +34 -10
- package/package.json +4 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,56 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 3.0.0-beta.0 / 2024-09-05
|
|
4
|
+
|
|
5
|
+
Release 3.0.0-beta.0 includes new features such as a brand new UI and UTF-8 support enabled by default. As a new major version, several breaking changes are introduced. The breaking changes are mainly around the removal of deprecated feature flags and CLI arguments, and the full list can be found below. Most users should be able to try this release out of the box without any configuration changes.
|
|
6
|
+
|
|
7
|
+
As is traditional with a beta release, we do **not** recommend users install 3.0.0-beta on critical production systems, but we do want everyone to test it out and find bugs.
|
|
8
|
+
|
|
9
|
+
* [CHANGE] UI: The old web UI has been replaced by a completely new one that is less cluttered and adds a few new features (PromLens-style tree view, better metrics explorer, "Explain" tab). However, it is still missing some features of the old UI (notably, exemplar display and heatmaps). To switch back to the old UI, you can use the feature flag `--enable-feature=old-ui` for the time being. #14872
|
|
10
|
+
* [CHANGE] PromQL: Range selectors and the lookback delta are now left-open, i.e. a sample coinciding with the lower time limit is excluded rather than included. #13904
|
|
11
|
+
* [CHANGE] Kubernetes SD: Remove support for `discovery.k8s.io/v1beta1` API version of EndpointSlice. This version is no longer served as of Kubernetes v1.25. #14365
|
|
12
|
+
* [CHANGE] Kubernetes SD: Remove support for `networking.k8s.io/v1beta1` API version of Ingress. This version is no longer served as of Kubernetes v1.22. #14365
|
|
13
|
+
* [CHANGE] UTF-8: Enable UTF-8 support by default. Prometheus now allows all UTF-8 characters in metric and label names. The corresponding `utf8-name` feature flag has been removed. #14705
|
|
14
|
+
* [CHANGE] Console: Remove example files for the console feature. Users can continue using the console feature by supplying their own JavaScript and templates. #14807
|
|
15
|
+
* [CHANGE] SD: Enable the new service discovery manager by default. This SD manager does not restart unchanged discoveries upon reloading. This makes reloads faster and reduces pressure on service discoveries' sources. The corresponding `new-service-discovery-manager` feature flag has been removed. #14770
|
|
16
|
+
* [CHANGE] Agent mode has been promoted to stable. The feature flag `agent` has been removed. To run Prometheus in Agent mode, use the new `--agent` cmdline arg instead. #14747
|
|
17
|
+
* [CHANGE] Remove deprecated `remote-write-receiver`,`promql-at-modifier`, and `promql-negative-offset` feature flags. #13456, #14526
|
|
18
|
+
* [CHANGE] Remove deprecated `storage.tsdb.allow-overlapping-blocks`, `alertmanager.timeout`, and `storage.tsdb.retention` flags. #14640, #14643
|
|
19
|
+
* [FEATURE] Promtool: Allow additional labels to be added to blocks created from openmetrics. #14402
|
|
20
|
+
* [FEATURE] OTLP receiver: Add new option `otlp.promote_resource_attributes`, for any OTel resource attributes that should be promoted to metric labels. #14200
|
|
21
|
+
* [FEATURE] Automatic reloading of the Prometheus configuration file at a specified interval #14769
|
|
22
|
+
* [ENHANCEMENT] OTLP receiver: Warn when encountering exponential histograms with zero count and non-zero sum. #14706
|
|
23
|
+
* [ENHANCEMENT] OTLP receiver: Interrupt translation on context cancellation/timeout. #14612
|
|
24
|
+
* [ENHANCEMENT] Scrape: Only parse created timestamp if `created-timestamp-zero-ingestion` feature flag is enabled. This is as a lot of memory is used when parsing the created timestamp in the OM text format. #14815
|
|
25
|
+
* [ENHANCEMENT] Scrape: Add support for logging scrape failures to a specified file. #14734
|
|
26
|
+
* [ENHANCEMENT] Remote Read client: Enable streaming remote read if the server supports it. #11379
|
|
27
|
+
* [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
|
|
28
|
+
* [ENHANCEMENT] Move AM discovery page from "Monitoring status" to "Server status". #14875
|
|
29
|
+
* [ENHANCEMENT] Tracing: Improve PromQL tracing, including showing the operation performed for aggregates, operators, and calls.#14816
|
|
30
|
+
* [ENHANCEMENT] Add support for multiple listening addresses. #14665
|
|
31
|
+
* [ENHANCEMENT] Add the ability to set custom HTTP headers. #14817
|
|
32
|
+
* [BUGFIX] TSDB: Fix shard initialization after WAL repair. #14731
|
|
33
|
+
* [BUGFIX] UTF-8: Ensure correct validation when legacy mode turned on. #14736
|
|
34
|
+
* [BUGFIX] SD: Make discovery manager notify consumers of dropped targets for still defined jobs. #13147
|
|
35
|
+
* [BUGFIX] SD: Prevent the new service discovery manager from storing stale targets. #13622
|
|
36
|
+
* [BUGFIX] Remote Write 2.0: Ensure metadata records are sent from the WAL to remote write during WAL replay. #14766
|
|
37
|
+
* [BUGFIX] Scrape: Do no override target parameter labels with config params. #11029
|
|
38
|
+
* [BUGFIX] Scrape: Reset exemplar position when scraping histograms in protobuf. #14810
|
|
39
|
+
* [BUGFIX] Native Histograms: Do not re-use spans between histograms. #14771
|
|
40
|
+
* [BUGFIX] Scrape: Only parse created timestamp if `created-timestamp-zero-ingestion` feature flag is enabled. This is as a lot of memory is used when parsing the created timestamp in the OM text format. #14815
|
|
41
|
+
* [BUGFIX] TSDB: Fix panic in query during truncation with OOO head. #14831
|
|
42
|
+
* [BUGFIX] TSDB: Fix panic in chunk querier. #14874
|
|
43
|
+
* [BUGFIX] promql.Engine.Close: No-op if nil. #14861
|
|
44
|
+
* [BUGFIX] tsdb/wlog.Watcher.readSegmentForGC: Only count unknown record types against record_decode_failures_total metric. #14042
|
|
45
|
+
|
|
46
|
+
## 2.54.1 / 2024-08-27
|
|
47
|
+
|
|
48
|
+
* [BUGFIX] Scraping: allow multiple samples on same series, with explicit timestamps. #14685
|
|
49
|
+
* [BUGFIX] Docker SD: fix crash in `match_first_network` mode when container is reconnected to a new network. #14654
|
|
50
|
+
* [BUGFIX] PromQL: fix experimental native histograms getting corrupted due to vector selector bug in range queries. #14538
|
|
51
|
+
* [BUGFIX] PromQL: fix experimental native histogram counter reset detection on stale samples. #14514
|
|
52
|
+
* [BUGFIX] PromQL: fix native histograms getting corrupted due to vector selector bug in range queries. #14605
|
|
53
|
+
|
|
3
54
|
## 2.54.0 / 2024-08-09
|
|
4
55
|
|
|
5
56
|
Release 2.54 brings a release candidate of a major new version of [Remote Write: 2.0](https://prometheus.io/docs/specs/remote_write_spec_2_0/).
|
|
@@ -29,6 +80,7 @@ Remote-write v2 is enabled by default, but can be disabled via feature-flag `web
|
|
|
29
80
|
* [ENHANCEMENT] Notifier: Send any outstanding Alertmanager notifications when shutting down. #14290
|
|
30
81
|
* [ENHANCEMENT] Rules: Add label-matcher support to Rules API. #10194
|
|
31
82
|
* [ENHANCEMENT] HTTP API: Add url to message logged on error while sending response. #14209
|
|
83
|
+
* [BUGFIX] TSDB: Exclude OOO chunks mapped after compaction starts (introduced by #14396). #14584
|
|
32
84
|
* [BUGFIX] CLI: escape `|` characters when generating docs. #14420
|
|
33
85
|
* [BUGFIX] PromQL (experimental native histograms): Fix some binary operators between native histogram values. #14454
|
|
34
86
|
* [BUGFIX] TSDB: LabelNames API could fail during compaction. #14279
|
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
3
|
var lr = require('@lezer/lr');
|
|
6
4
|
var highlight = require('@lezer/highlight');
|
|
7
5
|
|
|
@@ -38,6 +36,18 @@ const inf$1 = 157,
|
|
|
38
36
|
End$1 = 28;
|
|
39
37
|
|
|
40
38
|
// Copyright 2021 The Prometheus Authors
|
|
39
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
40
|
+
// you may not use this file except in compliance with the License.
|
|
41
|
+
// You may obtain a copy of the License at
|
|
42
|
+
//
|
|
43
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
44
|
+
//
|
|
45
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
46
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
47
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
48
|
+
// See the License for the specific language governing permissions and
|
|
49
|
+
// limitations under the License.
|
|
50
|
+
|
|
41
51
|
|
|
42
52
|
const keywordTokens = {
|
|
43
53
|
inf: inf$1,
|
|
@@ -84,13 +94,25 @@ const extendIdentifier = (value, stack) => {
|
|
|
84
94
|
};
|
|
85
95
|
|
|
86
96
|
// Copyright 2022 The Prometheus Authors
|
|
97
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
98
|
+
// you may not use this file except in compliance with the License.
|
|
99
|
+
// You may obtain a copy of the License at
|
|
100
|
+
//
|
|
101
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
102
|
+
//
|
|
103
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
104
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
105
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
106
|
+
// See the License for the specific language governing permissions and
|
|
107
|
+
// limitations under the License.
|
|
108
|
+
|
|
87
109
|
|
|
88
110
|
const promQLHighLight = highlight.styleTags({
|
|
89
111
|
LineComment: highlight.tags.comment,
|
|
90
112
|
LabelName: highlight.tags.labelName,
|
|
91
113
|
StringLiteral: highlight.tags.string,
|
|
92
|
-
|
|
93
|
-
|
|
114
|
+
NumberDurationLiteral: highlight.tags.number,
|
|
115
|
+
NumberDurationLiteralInDurationContext: highlight.tags.number,
|
|
94
116
|
Identifier: highlight.tags.variableName,
|
|
95
117
|
'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 HoltWinters 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':
|
|
96
118
|
highlight.tags.function(highlight.tags.variableName),
|
|
@@ -109,10 +131,10 @@ const promQLHighLight = highlight.styleTags({
|
|
|
109
131
|
const spec_Identifier = {__proto__:null,absent_over_time:333, absent:335, abs:337, acos:339, acosh:341, asin:343, asinh:345, atan:347, atanh:349, avg_over_time:351, ceil:353, changes:355, clamp:357, clamp_max:359, clamp_min:361, cos:363, cosh:365, count_over_time:367, days_in_month:369, day_of_month:371, day_of_week:373, day_of_year:375, deg:377, delta:379, deriv:381, exp:383, floor:385, histogram_count:387, histogram_fraction:389, histogram_quantile:391, histogram_stddev:393, histogram_stdvar:395, histogram_sum:397, histogram_avg:399, holt_winters:401, hour:403, idelta:405, increase:407, irate:409, label_replace:411, label_join:413, last_over_time:415, ln:417, log10:419, log2:421, mad_over_time:423, max_over_time:425, min_over_time:427, minute:429, month:431, pi:433, predict_linear:435, present_over_time:437, quantile_over_time:439, rad:441, rate:443, resets:445, round:447, scalar:449, sgn:451, sin:453, sinh:455, sort:457, sort_desc:459, sort_by_label:461, sort_by_label_desc:463, sqrt:465, stddev_over_time:467, stdvar_over_time:469, sum_over_time:471, tan:473, tanh:475, timestamp:477, time:479, vector:481, year:483};
|
|
110
132
|
const parser = lr.LRParser.deserialize({
|
|
111
133
|
version: 14,
|
|
112
|
-
states: "
|
|
113
|
-
stateData: "!-
|
|
114
|
-
goto: ")
|
|
115
|
-
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 HoltWinters 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
|
|
134
|
+
states: "9[OYQPOOO'qQPOOOOQO'#C|'#C|O'vQPO'#C{Q(RQQOOOOQO'#De'#DeO'|QPO'#DdOOQO'#FX'#FXO)`QPO'#F^OYQPO'#FZOYQPO'#F]O0QQSO'#F`O0]QQO'#F_OOQO'#F_'#F_OOQO'#Fs'#FsOOQO'#Df'#DfOOQO'#Dh'#DhOOQO'#Di'#DiOOQO'#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]OOQ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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 HoltWinters 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",
|
|
116
138
|
maxTerm: 249,
|
|
117
139
|
nodeProps: [
|
|
118
140
|
["group", -12,31,37,39,54,133,135,136,137,138,139,141,149,"Expr"]
|
|
@@ -120,7 +142,7 @@ const parser = lr.LRParser.deserialize({
|
|
|
120
142
|
propSources: [promQLHighLight],
|
|
121
143
|
skippedNodes: [0,29],
|
|
122
144
|
repeatNodeCount: 3,
|
|
123
|
-
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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1f#T#o1fR1kT!ZR!Q![1f![!]1f!c!}1f#R#S1f#T#o1f~2PP!U~!_!`2S~2XO!T~~2^Q$VP!_!`2d#r#s2iQ2iO!QQ~2nO$W~~2sP!S~!_!`2v~2{O!R~~3QO$[~V3XT!ZRsS!Q![3Q![!]1f!c!}3Q#R#S3Q#T#o3Q~3mO&[~~3rO&`~~3wOx~~3zTO#S3w#S#T%c#T;'S3w;'S;=`4Z<%lO3w~4^P;=`<%l3w~4fO&b~~4kO&c~",
|
|
124
146
|
tokenizers: [0, 1, 2],
|
|
125
147
|
topRules: {"PromQL":[0,30],"MetricName":[1,152]},
|
|
126
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}],
|
|
@@ -262,8 +284,8 @@ const inf = 157,
|
|
|
262
284
|
Vector = 131,
|
|
263
285
|
Year = 132,
|
|
264
286
|
MatrixSelector = 133,
|
|
265
|
-
|
|
266
|
-
|
|
287
|
+
NumberDurationLiteralInDurationContext = 134,
|
|
288
|
+
NumberDurationLiteral = 135,
|
|
267
289
|
OffsetExpr = 136,
|
|
268
290
|
ParenExpr = 137,
|
|
269
291
|
SubqueryExpr = 138,
|
|
@@ -324,7 +346,6 @@ exports.Deg = Deg;
|
|
|
324
346
|
exports.Delta = Delta;
|
|
325
347
|
exports.Deriv = Deriv;
|
|
326
348
|
exports.Div = Div;
|
|
327
|
-
exports.Duration = Duration;
|
|
328
349
|
exports.End = End;
|
|
329
350
|
exports.Eql = Eql;
|
|
330
351
|
exports.EqlRegex = EqlRegex;
|
|
@@ -382,7 +403,8 @@ exports.Month = Month;
|
|
|
382
403
|
exports.Mul = Mul;
|
|
383
404
|
exports.Neq = Neq;
|
|
384
405
|
exports.NeqRegex = NeqRegex;
|
|
385
|
-
exports.
|
|
406
|
+
exports.NumberDurationLiteral = NumberDurationLiteral;
|
|
407
|
+
exports.NumberDurationLiteralInDurationContext = NumberDurationLiteralInDurationContext;
|
|
386
408
|
exports.Offset = Offset;
|
|
387
409
|
exports.OffsetExpr = OffsetExpr;
|
|
388
410
|
exports.On = On;
|
package/dist/index.d.ts
CHANGED
|
@@ -153,8 +153,8 @@ export const
|
|
|
153
153
|
Vector: number,
|
|
154
154
|
Year: number,
|
|
155
155
|
MatrixSelector: number,
|
|
156
|
-
|
|
157
|
-
|
|
156
|
+
NumberDurationLiteralInDurationContext: number,
|
|
157
|
+
NumberDurationLiteral: number,
|
|
158
158
|
OffsetExpr: number,
|
|
159
159
|
ParenExpr: number,
|
|
160
160
|
SubqueryExpr: number,
|
package/dist/index.es.js
CHANGED
|
@@ -34,6 +34,18 @@ const inf$1 = 157,
|
|
|
34
34
|
End$1 = 28;
|
|
35
35
|
|
|
36
36
|
// Copyright 2021 The Prometheus Authors
|
|
37
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
38
|
+
// you may not use this file except in compliance with the License.
|
|
39
|
+
// You may obtain a copy of the License at
|
|
40
|
+
//
|
|
41
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
42
|
+
//
|
|
43
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
44
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
45
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
46
|
+
// See the License for the specific language governing permissions and
|
|
47
|
+
// limitations under the License.
|
|
48
|
+
|
|
37
49
|
|
|
38
50
|
const keywordTokens = {
|
|
39
51
|
inf: inf$1,
|
|
@@ -80,13 +92,25 @@ const extendIdentifier = (value, stack) => {
|
|
|
80
92
|
};
|
|
81
93
|
|
|
82
94
|
// Copyright 2022 The Prometheus Authors
|
|
95
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
96
|
+
// you may not use this file except in compliance with the License.
|
|
97
|
+
// You may obtain a copy of the License at
|
|
98
|
+
//
|
|
99
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
100
|
+
//
|
|
101
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
102
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
103
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
104
|
+
// See the License for the specific language governing permissions and
|
|
105
|
+
// limitations under the License.
|
|
106
|
+
|
|
83
107
|
|
|
84
108
|
const promQLHighLight = styleTags({
|
|
85
109
|
LineComment: tags.comment,
|
|
86
110
|
LabelName: tags.labelName,
|
|
87
111
|
StringLiteral: tags.string,
|
|
88
|
-
|
|
89
|
-
|
|
112
|
+
NumberDurationLiteral: tags.number,
|
|
113
|
+
NumberDurationLiteralInDurationContext: tags.number,
|
|
90
114
|
Identifier: tags.variableName,
|
|
91
115
|
'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 HoltWinters 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':
|
|
92
116
|
tags.function(tags.variableName),
|
|
@@ -105,10 +129,10 @@ const promQLHighLight = styleTags({
|
|
|
105
129
|
const spec_Identifier = {__proto__:null,absent_over_time:333, absent:335, abs:337, acos:339, acosh:341, asin:343, asinh:345, atan:347, atanh:349, avg_over_time:351, ceil:353, changes:355, clamp:357, clamp_max:359, clamp_min:361, cos:363, cosh:365, count_over_time:367, days_in_month:369, day_of_month:371, day_of_week:373, day_of_year:375, deg:377, delta:379, deriv:381, exp:383, floor:385, histogram_count:387, histogram_fraction:389, histogram_quantile:391, histogram_stddev:393, histogram_stdvar:395, histogram_sum:397, histogram_avg:399, holt_winters:401, hour:403, idelta:405, increase:407, irate:409, label_replace:411, label_join:413, last_over_time:415, ln:417, log10:419, log2:421, mad_over_time:423, max_over_time:425, min_over_time:427, minute:429, month:431, pi:433, predict_linear:435, present_over_time:437, quantile_over_time:439, rad:441, rate:443, resets:445, round:447, scalar:449, sgn:451, sin:453, sinh:455, sort:457, sort_desc:459, sort_by_label:461, sort_by_label_desc:463, sqrt:465, stddev_over_time:467, stdvar_over_time:469, sum_over_time:471, tan:473, tanh:475, timestamp:477, time:479, vector:481, year:483};
|
|
106
130
|
const parser = LRParser.deserialize({
|
|
107
131
|
version: 14,
|
|
108
|
-
states: "
|
|
109
|
-
stateData: "!-
|
|
110
|
-
goto: ")
|
|
111
|
-
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 HoltWinters 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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&b&nP&n&n&n&n&n&n&n&n&n&n&n&n&n&n&n&n&n&n&n&n&n&n&n&n&n&n&n&n&n&n&n&n&n&n&n&n&n&n&n&n&n&n&n&n&n&n&n&n&n&n&n&n&n&n&n&n&n&n&n&n&n&n&n&n&n&n&n&n&n&n&n&n&n&n&n$m&z'T$m$m$m$m'd$m'p(P(XPPP(P$mP(`P(c(i(oPPPPP(vPPP)fe^OXY#P#o#p#q#r#s$VeROXY#P#o#p#q#r#s$VQ#QRR#j#RQ#g#OQ$Y#lR$|$rQ#bZQ$U#fU$g$Q$j$wV$x$l$z%PQ#RRQ#[UR#j#QZ#n#S#T#U#V#WY#m#S#T#U#V#WR$Z#neUOXY#P#o#p#q#r#s$VeTOXY#P#o#p#q#r#s$VQ#v#XQ#w#YR$t$cd^OXY#P#o#p#q#r#s$VR#z#ZeYOXY#P#o#p#q#r#s$Vd]OXY#P#o#p#q#r#s$VR#e[Q#dZV$h$Q$j$wQ$O#aT$P#b$gR#{#ZQ$m$UR${$mQ$W#iR$p$WS$R#b#dR$k$RQSOQ#^XQ#_YQ#i#PQ$[#oQ$]#pQ$^#qQ$_#rQ$`#sR$o$VQ#o#SQ#p#TQ#q#UQ#r#VR#s#W",
|
|
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 HoltWinters 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",
|
|
112
136
|
maxTerm: 249,
|
|
113
137
|
nodeProps: [
|
|
114
138
|
["group", -12,31,37,39,54,133,135,136,137,138,139,141,149,"Expr"]
|
|
@@ -116,7 +140,7 @@ const parser = LRParser.deserialize({
|
|
|
116
140
|
propSources: [promQLHighLight],
|
|
117
141
|
skippedNodes: [0,29],
|
|
118
142
|
repeatNodeCount: 3,
|
|
119
|
-
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$f~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!V~~$tO$X~~$yWu~OY$tZr$trs%cs#O$t#O#P%h#P;'S$t;'S;=`&f<%lO$t~%hOu~~%kRO;'S$t;'S;=`%t;=`O$t~%yXu~OY$tZr$trs%cs#O$t#O#P%h#P;'S$t;'S;=`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 57, get: (value, stack) => (extendIdentifier(value) << 1) | 1, external: extendIdentifier, extend: true},{term: 57, get: (value) => spec_Identifier[value] || -1}],
|
|
@@ -258,8 +282,8 @@ const inf = 157,
|
|
|
258
282
|
Vector = 131,
|
|
259
283
|
Year = 132,
|
|
260
284
|
MatrixSelector = 133,
|
|
261
|
-
|
|
262
|
-
|
|
285
|
+
NumberDurationLiteralInDurationContext = 134,
|
|
286
|
+
NumberDurationLiteral = 135,
|
|
263
287
|
OffsetExpr = 136,
|
|
264
288
|
ParenExpr = 137,
|
|
265
289
|
SubqueryExpr = 138,
|
|
@@ -278,4 +302,4 @@ const inf = 157,
|
|
|
278
302
|
AtModifierPreprocessors = 151,
|
|
279
303
|
MetricName = 152;
|
|
280
304
|
|
|
281
|
-
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,
|
|
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, End, Eql, EqlRegex, EqlSingle, Exp, Floor, FunctionCall, FunctionCallBody, FunctionIdentifier, Group, GroupLeft, GroupRight, GroupingLabels, Gte, Gtr, HistogramAvg, HistogramCount, HistogramFraction, HistogramQuantile, HistogramStdDev, HistogramStdVar, HistogramSum, HoltWinters, 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 };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prometheus-io/lezer-promql",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.300.0-beta.0",
|
|
4
4
|
"description": "lezer-based PromQL grammar",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"type": "module",
|
|
@@ -30,9 +30,10 @@
|
|
|
30
30
|
"test": "NODE_OPTIONS=--experimental-vm-modules jest"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@lezer/generator": "^1.7.
|
|
33
|
+
"@lezer/generator": "^1.7.1",
|
|
34
34
|
"@lezer/highlight": "^1.2.0",
|
|
35
|
-
"@lezer/lr": "^1.4.
|
|
35
|
+
"@lezer/lr": "^1.4.2",
|
|
36
|
+
"@rollup/plugin-node-resolve": "^15.2.3"
|
|
36
37
|
},
|
|
37
38
|
"peerDependencies": {
|
|
38
39
|
"@lezer/highlight": "^1.1.2",
|