@prometheus-io/lezer-promql 0.300.0-beta.0 → 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 +83 -27
- package/dist/index.cjs +76 -74
- package/dist/index.d.ts +2 -1
- package/dist/index.es.js +75 -74
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,50 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## unreleased
|
|
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
|
+
|
|
20
|
+
## 3.0.0-beta.1 / 2024-10-09
|
|
21
|
+
|
|
22
|
+
* [CHANGE] regexp `.` now matches all characters (performance improvement). #14505
|
|
23
|
+
* [CHANGE] `holt_winters` is now called `double_exponential_smoothing` and moves behind the [experimental-promql-functions feature flag](https://prometheus.io/docs/prometheus/latest/feature_flags/#experimental-promql-functions). #14930
|
|
24
|
+
* [CHANGE] API: The OTLP receiver endpoint can now be enabled using `--web.enable-otlp-receiver` instead of `--enable-feature=otlp-write-receiver`. #14894
|
|
25
|
+
* [CHANGE] Prometheus will not add or remove port numbers from the target address. `no-default-scrape-port` feature flag removed. #14160
|
|
26
|
+
* [CHANGE] Logging: the format of log lines has changed a little, along with the adoption of Go's Structured Logging package. #14906
|
|
27
|
+
* [CHANGE] Don't create extra `_created` timeseries if feature-flag `created-timestamp-zero-ingestion' is enabled. #14738
|
|
28
|
+
* [CHANGE] Float literals and time durations being the same is now a stable fetaure. #15111
|
|
29
|
+
* [ENHANCEMENT] UI: Many fixes and improvements. #14898, #14899, #14907, #14908, #14912, #14913, #14914, #14931, #14940, #14945, #14946, #14972, #14981, #14982, #14994, #15096
|
|
30
|
+
* [ENHANCEMENT] UI: Web UI now displays notifications, e.g. when starting up and shutting down. #15082
|
|
31
|
+
* [ENHANCEMENT] PromQL: Introduce exponential interpolation for native histograms. #14677
|
|
32
|
+
* [ENHANCEMENT] TSDB: Add support for ingestion of out-of-order native histogram samples. #14850, #14546
|
|
33
|
+
* [ENHANCEMENT] Alerts: remove metrics for removed Alertmanagers. #13909
|
|
34
|
+
* [ENHANCEMENT] Kubernetes SD: Support sidecar containers in endpoint discovery. #14929
|
|
35
|
+
* [ENHANCEMENT] Consul SD: Support catalog filters. #11224
|
|
36
|
+
* [PERF] TSDB: Parallelize deletion of postings after head compaction. #14975
|
|
37
|
+
* [PERF] TSDB: Chunk encoding: shorten some write sequences. #14932
|
|
38
|
+
* [PERF] TSDB: Grow postings by doubling. #14721
|
|
39
|
+
* [PERF] Relabeling: Optimize adding a constant label pair. #12180
|
|
40
|
+
* [BUGFIX] Scraping: Unit was missing when using protobuf format. #15095
|
|
41
|
+
* [BUGFIX] PromQL: Only return "possible non-counter" annotation when `rate` returns points. #14910
|
|
42
|
+
* [BUGFIX] TSDB: Chunks could have one unnecessary zero byte at the end. #14854
|
|
43
|
+
* [BUGFIX] "superfluous response.WriteHeader call" messages in log. #14884
|
|
44
|
+
* [BUGFIX] PromQL: Unary negation of native histograms. #14821
|
|
45
|
+
* [BUGFIX] PromQL: Handle stale marker in native histogram series (e.g. if series goes away and comes back). #15025
|
|
46
|
+
* [BUGFIX] Autoreload: Reload invalid yaml files. #14947
|
|
47
|
+
|
|
3
48
|
## 3.0.0-beta.0 / 2024-09-05
|
|
4
49
|
|
|
5
50
|
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.
|
|
@@ -16,32 +61,43 @@ As is traditional with a beta release, we do **not** recommend users install 3.0
|
|
|
16
61
|
* [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
62
|
* [CHANGE] Remove deprecated `remote-write-receiver`,`promql-at-modifier`, and `promql-negative-offset` feature flags. #13456, #14526
|
|
18
63
|
* [CHANGE] Remove deprecated `storage.tsdb.allow-overlapping-blocks`, `alertmanager.timeout`, and `storage.tsdb.retention` flags. #14640, #14643
|
|
19
|
-
* [
|
|
20
|
-
* [FEATURE]
|
|
21
|
-
* [
|
|
22
|
-
|
|
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
|
|
66
|
+
* [BUGFIX] Scrape: Do not override target parameter labels with config params. #11029
|
|
67
|
+
|
|
68
|
+
## 2.55.0 / 2024-10-22
|
|
69
|
+
|
|
70
|
+
* [FEATURE] PromQL: Add experimental `info` function. #14495
|
|
71
|
+
* [FEATURE] Support UTF-8 characters in label names - feature flag `utf8-names`. #14482, #14880, #14736, #14727
|
|
72
|
+
* [FEATURE] Scraping: Add the ability to set custom `http_headers` in config. #14817
|
|
73
|
+
* [FEATURE] Scraping: Support feature flag `created-timestamp-zero-ingestion` in OpenMetrics. #14356, #14815
|
|
74
|
+
* [FEATURE] Scraping: `scrape_failure_log_file` option to log failures to a file. #14734
|
|
75
|
+
* [FEATURE] OTLP receiver: Optional promotion of resource attributes to series labels. #14200
|
|
76
|
+
* [FEATURE] Remote-Write: Support Google Cloud Monitoring authorization. #14346
|
|
77
|
+
* [FEATURE] Promtool: `tsdb create-blocks` new option to add labels. #14403
|
|
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
|
|
80
|
+
* [ENHANCEMENT] OTLP receiver: Warn on exponential histograms with zero count and non-zero sum. #14706
|
|
23
81
|
* [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
82
|
* [ENHANCEMENT] Remote Read client: Enable streaming remote read if the server supports it. #11379
|
|
83
|
+
* [ENHANCEMENT] Remote-Write: Don't reshard if we haven't successfully sent a sample since last update. #14450
|
|
27
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
|
|
28
|
-
* [ENHANCEMENT]
|
|
29
|
-
* [ENHANCEMENT]
|
|
30
|
-
* [ENHANCEMENT]
|
|
31
|
-
* [ENHANCEMENT]
|
|
32
|
-
* [
|
|
33
|
-
* [
|
|
34
|
-
* [
|
|
35
|
-
* [
|
|
36
|
-
* [BUGFIX]
|
|
37
|
-
* [BUGFIX]
|
|
38
|
-
* [BUGFIX]
|
|
39
|
-
* [BUGFIX]
|
|
40
|
-
* [BUGFIX]
|
|
41
|
-
* [BUGFIX]
|
|
42
|
-
* [BUGFIX]
|
|
43
|
-
* [BUGFIX]
|
|
44
|
-
* [BUGFIX] tsdb/wlog.Watcher.readSegmentForGC: Only count unknown record types against record_decode_failures_total metric. #14042
|
|
85
|
+
* [ENHANCEMENT] PromQL: Experimental `sort_by_label` and `sort_by_label_desc` sort by all labels when label is equal. #14655, #14985
|
|
86
|
+
* [ENHANCEMENT] PromQL: Clarify error message logged when Go runtime panic occurs during query evaluation. #14621
|
|
87
|
+
* [ENHANCEMENT] PromQL: Use Kahan summation for better accuracy in `avg` and `avg_over_time`. #14413
|
|
88
|
+
* [ENHANCEMENT] Tracing: Improve PromQL tracing, including showing the operation performed for aggregates, operators, and calls. #14816
|
|
89
|
+
* [ENHANCEMENT] API: Support multiple listening addresses. #14665
|
|
90
|
+
* [ENHANCEMENT] TSDB: Backward compatibility with upcoming index v3. #14934
|
|
91
|
+
* [PERF] TSDB: Query in-order and out-of-order series together. #14354, #14693, #14714, #14831, #14874, #14948, #15120
|
|
92
|
+
* [PERF] TSDB: Streamline reading of overlapping out-of-order head chunks. #14729
|
|
93
|
+
* [BUGFIX] PromQL: make sort_by_label stable. #14985
|
|
94
|
+
* [BUGFIX] SD: Fix dropping targets (with feature flag `new-service-discovery-manager`). #13147
|
|
95
|
+
* [BUGFIX] SD: Stop storing stale targets (with feature flag `new-service-discovery-manager`). #13622
|
|
96
|
+
* [BUGFIX] Scraping: exemplars could be dropped in protobuf scraping. #14810
|
|
97
|
+
* [BUGFIX] Remote-Write: fix metadata sending for experimental Remote-Write V2. #14766
|
|
98
|
+
* [BUGFIX] Remote-Write: Return 4xx not 5xx when timeseries has duplicate label. #14716
|
|
99
|
+
* [BUGFIX] Experimental Native Histograms: many fixes for incorrect results, panics, warnings. #14513, #14575, #14598, #14609, #14611, #14771, #14821
|
|
100
|
+
* [BUGFIX] TSDB: Only count unknown record types in `record_decode_failures_total` metric. #14042
|
|
45
101
|
|
|
46
102
|
## 2.54.1 / 2024-08-27
|
|
47
103
|
|
|
@@ -140,7 +196,7 @@ This release changes the default for GOGC, the Go runtime control for the trade-
|
|
|
140
196
|
* [ENHANCEMENT] TSDB: Pause regular block compactions if the head needs to be compacted (prioritize head as it increases memory consumption). #13754
|
|
141
197
|
* [ENHANCEMENT] Observability: Improved logging during signal handling termination. #13772
|
|
142
198
|
* [ENHANCEMENT] Observability: All log lines for drop series use "num_dropped" key consistently. #13823
|
|
143
|
-
* [ENHANCEMENT] Observability: Log chunk snapshot and
|
|
199
|
+
* [ENHANCEMENT] Observability: Log chunk snapshot and mmapped chunk replay duration during WAL replay. #13838
|
|
144
200
|
* [ENHANCEMENT] Observability: Log if the block is being created from WBL during compaction. #13846
|
|
145
201
|
* [BUGFIX] PromQL: Fix inaccurate sample number statistic when querying histograms. #13667
|
|
146
202
|
* [BUGFIX] PromQL: Fix `histogram_stddev` and `histogram_stdvar` for cases where the histogram has negative buckets. #13852
|
|
@@ -677,7 +733,7 @@ The binaries published with this release are built with Go1.17.8 to avoid [CVE-2
|
|
|
677
733
|
|
|
678
734
|
## 2.33.0 / 2022-01-29
|
|
679
735
|
|
|
680
|
-
* [CHANGE] PromQL: Promote negative offset and `@`
|
|
736
|
+
* [CHANGE] PromQL: Promote negative offset and `@` modifier to stable features. #10121
|
|
681
737
|
* [CHANGE] Web: Promote remote-write-receiver to stable. #10119
|
|
682
738
|
* [FEATURE] Config: Add `stripPort` template function. #10002
|
|
683
739
|
* [FEATURE] Promtool: Add cardinality analysis to `check metrics`, enabled by flag `--extended`. #10045
|
|
@@ -914,7 +970,7 @@ This vulnerability has been reported by Aaron Devaney from MDSec.
|
|
|
914
970
|
* [ENHANCEMENT] Templating: Enable parsing strings in `humanize` functions. #8682
|
|
915
971
|
* [BUGFIX] UI: Provide errors instead of blank page on TSDB Status Page. #8654 #8659
|
|
916
972
|
* [BUGFIX] TSDB: Do not panic when writing very large records to the WAL. #8790
|
|
917
|
-
* [BUGFIX] TSDB: Avoid panic when
|
|
973
|
+
* [BUGFIX] TSDB: Avoid panic when mmapped memory is referenced after the file is closed. #8723
|
|
918
974
|
* [BUGFIX] Scaleway Discovery: Fix nil pointer dereference. #8737
|
|
919
975
|
* [BUGFIX] Consul Discovery: Restart no longer required after config update with no targets. #8766
|
|
920
976
|
|
|
@@ -1840,7 +1896,7 @@ information, read the announcement blog post and migration guide.
|
|
|
1840
1896
|
## 1.7.0 / 2017-06-06
|
|
1841
1897
|
|
|
1842
1898
|
* [CHANGE] Compress remote storage requests and responses with unframed/raw snappy.
|
|
1843
|
-
* [CHANGE] Properly
|
|
1899
|
+
* [CHANGE] Properly elide secrets in config.
|
|
1844
1900
|
* [FEATURE] Add OpenStack service discovery.
|
|
1845
1901
|
* [FEATURE] Add ability to limit Kubernetes service discovery to certain namespaces.
|
|
1846
1902
|
* [FEATURE] Add metric for discovered number of Alertmanagers.
|
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,
|
|
@@ -114,7 +114,7 @@ const promQLHighLight = highlight.styleTags({
|
|
|
114
114
|
NumberDurationLiteral: highlight.tags.number,
|
|
115
115
|
NumberDurationLiteralInDurationContext: highlight.tags.number,
|
|
116
116
|
Identifier: highlight.tags.variableName,
|
|
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
|
|
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 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
118
|
highlight.tags.function(highlight.tags.variableName),
|
|
119
119
|
'Avg Bottomk Count Count_values Group LimitK LimitRatio Max Min Quantile Stddev Stdvar Sum Topk': highlight.tags.operatorKeyword,
|
|
120
120
|
'By Without Bool On Ignoring GroupLeft GroupRight Offset Start End': highlight.tags.modifier,
|
|
@@ -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
|
|
138
|
-
maxTerm:
|
|
134
|
+
states: "9bOYQPOOO'tQPOOOOQO'#C|'#C|O'yQPO'#C{Q(UQQOOOOQO'#De'#DeO(PQPO'#DdOOQO'#FY'#FYO)cQPO'#F_OYQPO'#F[OYQPO'#F^O0WQSO'#FaO0cQQO'#F`OOQO'#F`'#F`OOQO'#Ft'#FtOOQO'#Df'#DfOOQO'#Dh'#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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({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#l$KV$KW#l&FU&FV#l~$dQ!_!`$j#r#s$o~$oO!V~~$tO$Y~~$yWu~OY$tZr$trs%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f![!]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,
|
|
@@ -241,68 +241,69 @@ const inf = 157,
|
|
|
241
241
|
HistogramStdVar = 88,
|
|
242
242
|
HistogramSum = 89,
|
|
243
243
|
HistogramAvg = 90,
|
|
244
|
-
|
|
244
|
+
DoubleExponentialSmoothing = 91,
|
|
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;
|
|
@@ -346,6 +347,7 @@ exports.Deg = Deg;
|
|
|
346
347
|
exports.Delta = Delta;
|
|
347
348
|
exports.Deriv = Deriv;
|
|
348
349
|
exports.Div = Div;
|
|
350
|
+
exports.DoubleExponentialSmoothing = DoubleExponentialSmoothing;
|
|
349
351
|
exports.End = End;
|
|
350
352
|
exports.Eql = Eql;
|
|
351
353
|
exports.EqlRegex = EqlRegex;
|
|
@@ -368,12 +370,12 @@ exports.HistogramQuantile = HistogramQuantile;
|
|
|
368
370
|
exports.HistogramStdDev = HistogramStdDev;
|
|
369
371
|
exports.HistogramStdVar = HistogramStdVar;
|
|
370
372
|
exports.HistogramSum = HistogramSum;
|
|
371
|
-
exports.HoltWinters = HoltWinters;
|
|
372
373
|
exports.Hour = Hour;
|
|
373
374
|
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
|
@@ -110,10 +110,11 @@ export const
|
|
|
110
110
|
HistogramStdVar: number,
|
|
111
111
|
HistogramSum: number,
|
|
112
112
|
HistogramAvg: number,
|
|
113
|
-
|
|
113
|
+
DoubleExponentialSmoothing: number,
|
|
114
114
|
Hour: number,
|
|
115
115
|
Idelta: number,
|
|
116
116
|
Increase: number,
|
|
117
|
+
Info: number,
|
|
117
118
|
Irate: number,
|
|
118
119
|
LabelReplace: number,
|
|
119
120
|
LabelJoin: number,
|
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,
|
|
@@ -112,7 +112,7 @@ const promQLHighLight = styleTags({
|
|
|
112
112
|
NumberDurationLiteral: tags.number,
|
|
113
113
|
NumberDurationLiteralInDurationContext: tags.number,
|
|
114
114
|
Identifier: tags.variableName,
|
|
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
|
|
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 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':
|
|
116
116
|
tags.function(tags.variableName),
|
|
117
117
|
'Avg Bottomk Count Count_values Group LimitK LimitRatio Max Min Quantile Stddev Stdvar Sum Topk': tags.operatorKeyword,
|
|
118
118
|
'By Without Bool On Ignoring GroupLeft GroupRight Offset Start End': tags.modifier,
|
|
@@ -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
|
|
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^O0WQSO'#FaO0cQQO'#F`OOQO'#F`'#F`OOQO'#Ft'#FtOOQO'#Df'#DfOOQO'#Dh'#DhOOQO'#Di'#DiOOQO'#Dj'#DjOOQO'#Dk'#DkOOQO'#Dl'#DlOOQO'#Dm'#DmOOQO'#Dn'#DnOOQO'#Do'#DoOOQO'#Dp'#D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$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#l$KV$KW#l&FU&FV#l~$dQ!_!`$j#r#s$o~$oO!V~~$tO$Y~~$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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2iO!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,
|
|
@@ -239,67 +239,68 @@ const inf = 157,
|
|
|
239
239
|
HistogramStdVar = 88,
|
|
240
240
|
HistogramSum = 89,
|
|
241
241
|
HistogramAvg = 90,
|
|
242
|
-
|
|
242
|
+
DoubleExponentialSmoothing = 91,
|
|
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, End, Eql, EqlRegex, EqlSingle, Exp, Floor, FunctionCall, FunctionCallBody, FunctionIdentifier, Group, GroupLeft, GroupRight, GroupingLabels, Gte, Gtr, HistogramAvg, HistogramCount, HistogramFraction, HistogramQuantile, HistogramStdDev, HistogramStdVar, HistogramSum,
|
|
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
|
},
|