@prometheus-io/lezer-promql 0.300.0-beta.0 → 0.300.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,36 @@
1
1
  # Changelog
2
2
 
3
+ ## unreleased
4
+
5
+ ## 3.0.0-beta.1 / 2024-10-09
6
+
7
+ * [CHANGE] regexp `.` now matches all characters (performance improvement). #14505
8
+ * [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
9
+ * [CHANGE] API: The OTLP receiver endpoint can now be enabled using `--web.enable-otlp-receiver` instead of `--enable-feature=otlp-write-receiver`. #14894
10
+ * [CHANGE] Prometheus will not add or remove port numbers from the target address. `no-default-scrape-port` feature flag removed. #14160
11
+ * [CHANGE] Logging: the format of log lines has changed a little, along with the adoption of Go's Structured Logging package. #14906
12
+ * [CHANGE] Don't create extra `_created` timeseries if feature-flag `created-timestamp-zero-ingestion' is enabled. #14738
13
+ * [CHANGE] Float literals and time durations being the same is now a stable fetaure. #15111
14
+ * [ENHANCEMENT] UI: Many fixes and improvements. #14898, #14899, #14907, #14908, #14912, #14913, #14914, #14931, #14940, #14945, #14946, #14972, #14981, #14982, #14994, #15096
15
+ * [ENHANCEMENT] UI: Web UI now displays notifications, e.g. when starting up and shutting down. #15082
16
+ * [ENHANCEMENT] PromQL: Introduce exponential interpolation for native histograms. #14677
17
+ * [ENHANCEMENT] TSDB: Add support for ingestion of out-of-order native histogram samples. #14850, #14546
18
+ * [ENHANCEMENT] Alerts: remove metrics for removed Alertmanagers. #13909
19
+ * [ENHANCEMENT] Scraping: support Created-Timestamp feature on native histograms. #14694
20
+ * [ENHANCEMENT] Kubernetes SD: Support sidecar containers in endpoint discovery. #14929
21
+ * [ENHANCEMENT] Consul SD: Support catalog filters. #11224
22
+ * [PERF] TSDB: Parallelize deletion of postings after head compaction. #14975
23
+ * [PERF] TSDB: Chunk encoding: shorten some write sequences. #14932
24
+ * [PERF] TSDB: Grow postings by doubling. #14721
25
+ * [PERF] Relabeling: Optimize adding a constant label pair. #12180
26
+ * [BUGFIX] Scraping: Unit was missing when using protobuf format. #15095
27
+ * [BUGFIX] PromQL: Only return "possible non-counter" annotation when `rate` returns points. #14910
28
+ * [BUGFIX] TSDB: Chunks could have one unnecessary zero byte at the end. #14854
29
+ * [BUGFIX] "superfluous response.WriteHeader call" messages in log. #14884
30
+ * [BUGFIX] PromQL: Unary negation of native histograms. #14821
31
+ * [BUGFIX] PromQL: Handle stale marker in native histogram series (e.g. if series goes away and comes back). #15025
32
+ * [BUGFIX] Autoreload: Reload invalid yaml files. #14947
33
+
3
34
  ## 3.0.0-beta.0 / 2024-09-05
4
35
 
5
36
  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 +47,40 @@ As is traditional with a beta release, we do **not** recommend users install 3.0
16
47
  * [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
48
  * [CHANGE] Remove deprecated `remote-write-receiver`,`promql-at-modifier`, and `promql-negative-offset` feature flags. #13456, #14526
18
49
  * [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
50
+ * [ENHANCEMENT] Move AM discovery page from "Monitoring status" to "Server status". #14875
51
+ * [BUGFIX] Scrape: Do not override target parameter labels with config params. #11029
52
+
53
+ ## 2.55.0-rc.0 / 2024-09-20
54
+
55
+ * [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
+ * [FEATURE] Scraping: Add the ability to set custom `http_headers` in config. #14817
58
+ * [FEATURE] Scraping: Support feature flag `created-timestamp-zero-ingestion` in OpenMetrics. #14356, #14815
59
+ * [FEATURE] Scraping: `scrape_failure_log_file` option to log failures to a file. #14734
60
+ * [FEATURE] OTLP receiver: Optional promotion of resource attributes to series labels. #14200
61
+ * [FEATURE] Remote-Write: Support Google Cloud Monitoring authorization. #14346
62
+ * [FEATURE] Promtool: `tsdb create-blocks` new option to add labels. #14403
63
+ * [FEATURE] Promtool: `promtool test` adds `--junit` flag to format results. #14506
64
+ * [ENHANCEMENT] OTLP receiver: Warn on exponential histograms with zero count and non-zero sum. #14706
23
65
  * [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
66
  * [ENHANCEMENT] Remote Read client: Enable streaming remote read if the server supports it. #11379
67
+ * [ENHANCEMENT] Remote-Write: Don't reshard if we haven't successfully sent a sample since last update. #14450
27
68
  * [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
69
+ * [ENHANCEMENT] PromQL: Experimental `sort_by_label` and `sort_by_label_desc` sort by all labels when label is equal. #14655
70
+ * [ENHANCEMENT] PromQL: Clarify error message logged when Go runtime panic occurs during query evaluation. #14621
71
+ * [ENHANCEMENT] PromQL: Use Kahan summation for better accuracy in `avg` and `avg_over_time`. #14413
72
+ * [ENHANCEMENT] Tracing: Improve PromQL tracing, including showing the operation performed for aggregates, operators, and calls. #14816
73
+ * [ENHANCEMENT] API: Support multiple listening addresses. #14665
74
+ * [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
76
+ * [PERF] TSDB: Streamline reading of overlapping out-of-order head chunks. #14729
77
+ * [BUGFIX] SD: Fix dropping targets (with feature flag `new-service-discovery-manager`). #13147
78
+ * [BUGFIX] SD: Stop storing stale targets (with feature flag `new-service-discovery-manager`). #13622
79
+ * [BUGFIX] Scraping: exemplars could be dropped in protobuf scraping. #14810
80
+ * [BUGFIX] Remote-Write: fix metadata sending for experimental Remote-Write V2. #14766
81
+ * [BUGFIX] Remote-Write: Return 4xx not 5xx when timeseries has duplicate label. #14716
82
+ * [BUGFIX] Experimental Native Histograms: many fixes for incorrect results, panics, warnings. #14513, #14575, #14598, #14609, #14611, #14771, #14821
83
+ * [BUGFIX] TSDB: Only count unknown record types in `record_decode_failures_total` metric. #14042
45
84
 
46
85
  ## 2.54.1 / 2024-08-27
47
86
 
@@ -140,7 +179,7 @@ This release changes the default for GOGC, the Go runtime control for the trade-
140
179
  * [ENHANCEMENT] TSDB: Pause regular block compactions if the head needs to be compacted (prioritize head as it increases memory consumption). #13754
141
180
  * [ENHANCEMENT] Observability: Improved logging during signal handling termination. #13772
142
181
  * [ENHANCEMENT] Observability: All log lines for drop series use "num_dropped" key consistently. #13823
143
- * [ENHANCEMENT] Observability: Log chunk snapshot and mmaped chunk replay duration during WAL replay. #13838
182
+ * [ENHANCEMENT] Observability: Log chunk snapshot and mmapped chunk replay duration during WAL replay. #13838
144
183
  * [ENHANCEMENT] Observability: Log if the block is being created from WBL during compaction. #13846
145
184
  * [BUGFIX] PromQL: Fix inaccurate sample number statistic when querying histograms. #13667
146
185
  * [BUGFIX] PromQL: Fix `histogram_stddev` and `histogram_stdvar` for cases where the histogram has negative buckets. #13852
@@ -677,7 +716,7 @@ The binaries published with this release are built with Go1.17.8 to avoid [CVE-2
677
716
 
678
717
  ## 2.33.0 / 2022-01-29
679
718
 
680
- * [CHANGE] PromQL: Promote negative offset and `@` modifer to stable features. #10121
719
+ * [CHANGE] PromQL: Promote negative offset and `@` modifier to stable features. #10121
681
720
  * [CHANGE] Web: Promote remote-write-receiver to stable. #10119
682
721
  * [FEATURE] Config: Add `stripPort` template function. #10002
683
722
  * [FEATURE] Promtool: Add cardinality analysis to `check metrics`, enabled by flag `--extended`. #10045
@@ -914,7 +953,7 @@ This vulnerability has been reported by Aaron Devaney from MDSec.
914
953
  * [ENHANCEMENT] Templating: Enable parsing strings in `humanize` functions. #8682
915
954
  * [BUGFIX] UI: Provide errors instead of blank page on TSDB Status Page. #8654 #8659
916
955
  * [BUGFIX] TSDB: Do not panic when writing very large records to the WAL. #8790
917
- * [BUGFIX] TSDB: Avoid panic when mmaped memory is referenced after the file is closed. #8723
956
+ * [BUGFIX] TSDB: Avoid panic when mmapped memory is referenced after the file is closed. #8723
918
957
  * [BUGFIX] Scaleway Discovery: Fix nil pointer dereference. #8737
919
958
  * [BUGFIX] Consul Discovery: Restart no longer required after config update with no targets. #8766
920
959
 
@@ -1840,7 +1879,7 @@ information, read the announcement blog post and migration guide.
1840
1879
  ## 1.7.0 / 2017-06-06
1841
1880
 
1842
1881
  * [CHANGE] Compress remote storage requests and responses with unframed/raw snappy.
1843
- * [CHANGE] Properly ellide secrets in config.
1882
+ * [CHANGE] Properly elide secrets in config.
1844
1883
  * [FEATURE] Add OpenStack service discovery.
1845
1884
  * [FEATURE] Add ability to limit Kubernetes service discovery to certain namespaces.
1846
1885
  * [FEATURE] Add metric for discovered number of Alertmanagers.
package/dist/index.cjs CHANGED
@@ -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 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':
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,13 +128,13 @@ 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: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};
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, double_exponential_smoothing: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};
132
132
  const parser = lr.LRParser.deserialize({
133
133
  version: 14,
134
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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$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",
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 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",
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 OffsetExpr ParenExpr SubqueryExpr UnaryExpr UnaryOp VectorSelector LabelMatchers UnquotedLabelMatcher MatchOp EqlSingle EqlRegex NeqRegex QuotedLabelMatcher StepInvariantExpr At AtModifierPreprocessors MetricName",
138
138
  maxTerm: 249,
139
139
  nodeProps: [
140
140
  ["group", -12,31,37,39,54,133,135,136,137,138,139,141,149,"Expr"]
@@ -241,7 +241,7 @@ const inf = 157,
241
241
  HistogramStdVar = 88,
242
242
  HistogramSum = 89,
243
243
  HistogramAvg = 90,
244
- HoltWinters = 91,
244
+ DoubleExponentialSmoothing = 91,
245
245
  Hour = 92,
246
246
  Idelta = 93,
247
247
  Increase = 94,
@@ -346,6 +346,7 @@ exports.Deg = Deg;
346
346
  exports.Delta = Delta;
347
347
  exports.Deriv = Deriv;
348
348
  exports.Div = Div;
349
+ exports.DoubleExponentialSmoothing = DoubleExponentialSmoothing;
349
350
  exports.End = End;
350
351
  exports.Eql = Eql;
351
352
  exports.EqlRegex = EqlRegex;
@@ -368,7 +369,6 @@ exports.HistogramQuantile = HistogramQuantile;
368
369
  exports.HistogramStdDev = HistogramStdDev;
369
370
  exports.HistogramStdVar = HistogramStdVar;
370
371
  exports.HistogramSum = HistogramSum;
371
- exports.HoltWinters = HoltWinters;
372
372
  exports.Hour = Hour;
373
373
  exports.Idelta = Idelta;
374
374
  exports.Identifier = Identifier;
package/dist/index.d.ts CHANGED
@@ -110,7 +110,7 @@ export const
110
110
  HistogramStdVar: number,
111
111
  HistogramSum: number,
112
112
  HistogramAvg: number,
113
- HoltWinters: number,
113
+ DoubleExponentialSmoothing: number,
114
114
  Hour: number,
115
115
  Idelta: number,
116
116
  Increase: number,
package/dist/index.es.js CHANGED
@@ -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 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':
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,13 +126,13 @@ 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: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};
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, double_exponential_smoothing: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};
130
130
  const parser = LRParser.deserialize({
131
131
  version: 14,
132
132
  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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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",
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
136
  maxTerm: 249,
137
137
  nodeProps: [
138
138
  ["group", -12,31,37,39,54,133,135,136,137,138,139,141,149,"Expr"]
@@ -239,7 +239,7 @@ const inf = 157,
239
239
  HistogramStdVar = 88,
240
240
  HistogramSum = 89,
241
241
  HistogramAvg = 90,
242
- HoltWinters = 91,
242
+ DoubleExponentialSmoothing = 91,
243
243
  Hour = 92,
244
244
  Idelta = 93,
245
245
  Increase = 94,
@@ -302,4 +302,4 @@ const inf = 157,
302
302
  AtModifierPreprocessors = 151,
303
303
  MetricName = 152;
304
304
 
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 };
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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prometheus-io/lezer-promql",
3
- "version": "0.300.0-beta.0",
3
+ "version": "0.300.0-beta.1",
4
4
  "description": "lezer-based PromQL grammar",
5
5
  "main": "dist/index.cjs",
6
6
  "type": "module",