@prometheus-io/lezer-promql 0.41.0 → 0.42.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 +23 -1
- package/dist/index.cjs +1 -1
- package/dist/index.es.js +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.42.0 / 2023-01-31
|
|
4
|
+
|
|
5
|
+
This release comes with a bunch of feature coverage for native histograms and breaking changes.
|
|
6
|
+
|
|
7
|
+
If you are trying native histograms already, we recommend you remove the `wal` directory when upgrading.
|
|
8
|
+
Because the old WAL record for native histograms is not backward compatible in v2.42.0, this will lead to some data loss for the latest data.
|
|
9
|
+
|
|
10
|
+
Additionally, if you scrape "float histograms" or use recording rules on native histograms in v2.42.0 (which writes float histograms),
|
|
11
|
+
it is a one-way street since older versions do not support float histograms.
|
|
12
|
+
|
|
13
|
+
* [CHANGE] **breaking** TSDB: Changed WAL record format for the experimental native histograms. #11783
|
|
14
|
+
* [FEATURE] Add 'keep_firing_for' field to alerting rules. #11827
|
|
15
|
+
* [FEATURE] Promtool: Add support of selecting timeseries for TSDB dump. #11872
|
|
16
|
+
* [ENHANCEMENT] Agent: Native histogram support. #11842
|
|
17
|
+
* [ENHANCEMENT] Rules: Support native histograms in recording rules. #11838
|
|
18
|
+
* [ENHANCEMENT] SD: Add container ID as a meta label for pod targets for Kubernetes. #11844
|
|
19
|
+
* [ENHANCEMENT] SD: Add VM size label to azure service discovery. #11650
|
|
20
|
+
* [ENHANCEMENT] Support native histograms in federation. #11830
|
|
21
|
+
* [ENHANCEMENT] TSDB: Add gauge histogram support. #11783 #11840 #11814
|
|
22
|
+
* [ENHANCEMENT] TSDB/Scrape: Support FloatHistogram that represents buckets as float64 values. #11522 #11817 #11716
|
|
23
|
+
* [ENHANCEMENT] UI: Show individual scrape pools on /targets page. #11142
|
|
24
|
+
|
|
3
25
|
## 2.41.0 / 2022-12-20
|
|
4
26
|
|
|
5
27
|
* [FEATURE] Relabeling: Add `keepequal` and `dropequal` relabel actions. #11564
|
|
@@ -61,7 +83,7 @@ Your existing histograms won't switch to native histograms until `NativeHistogra
|
|
|
61
83
|
* [ENHANCEMENT] Kubernetes SD: Use protobuf encoding. #11353
|
|
62
84
|
* [ENHANCEMENT] TSDB: Use golang.org/x/exp/slices for improved sorting speed. #11054 #11318 #11380
|
|
63
85
|
* [ENHANCEMENT] Consul SD: Add enterprise admin partitions. Adds `__meta_consul_partition` label. Adds `partition` config in `consul_sd_config`. #11482
|
|
64
|
-
* [BUGFIX] API: Fix API error codes for `/api/v1/labels` and `/api/v1/series`. #11356
|
|
86
|
+
* [BUGFIX] API: Fix API error codes for `/api/v1/labels` and `/api/v1/series`. #11356
|
|
65
87
|
|
|
66
88
|
## 2.39.2 / 2022-11-09
|
|
67
89
|
|
package/dist/index.cjs
CHANGED
|
@@ -116,7 +116,7 @@ const parser = lr.LRParser.deserialize({
|
|
|
116
116
|
propSources: [promQLHighLight],
|
|
117
117
|
skippedNodes: [0,27],
|
|
118
118
|
repeatNodeCount: 3,
|
|
119
|
-
tokenData: "
|
|
119
|
+
tokenData: "3s~RwX^#lpq#lqr$ars$tst&luv'Twx'Yxy({yz)Qz{)V{|)[|})c}!O)h!O!P)o!P!Q*o!Q!R*t!R![+l![!]0W!^!_1S!_!`1a!`!a1v!b!c2T!c!}2Y!}#O2p#P#Q2u#Q#R2z#R#S2Y#S#T3P#T#o2Y#o#p3i#q#r3n#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$[~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!R~~$tO$O~~$yW#t~OY$tZr$trs%cs#O$t#O#P%h#P;'S$t;'S;=`&f<%lO$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`1l#r#s1qQ1qO|Q~1vO#}~~1{P!O~!_!`2O~2TO}~~2YO$Q~V2aT!VRqS!Q![2Y![!]0n!c!}2Y#R#S2Y#T#o2Y~2uO%z~~2zO%{~~3POt~~3STO#S3P#S#T%c#T;'S3P;'S;=`3c<%lO3P~3fP;=`<%l3P~3nO&Q~~3sO&R~",
|
|
120
120
|
tokenizers: [0, 1, 2],
|
|
121
121
|
topRules: {"PromQL":[0,28],"MetricName":[1,142]},
|
|
122
122
|
specialized: [{term: 53, get: (value, stack) => (specializeIdentifier(value) << 1), external: specializeIdentifier},{term: 53, get: (value, stack) => (extendIdentifier(value) << 1) | 1, external: extendIdentifier, extend: true},{term: 53, get: value => spec_Identifier[value] || -1}],
|
package/dist/index.es.js
CHANGED
|
@@ -112,7 +112,7 @@ const parser = LRParser.deserialize({
|
|
|
112
112
|
propSources: [promQLHighLight],
|
|
113
113
|
skippedNodes: [0,27],
|
|
114
114
|
repeatNodeCount: 3,
|
|
115
|
-
tokenData: "
|
|
115
|
+
tokenData: "3s~RwX^#lpq#lqr$ars$tst&luv'Twx'Yxy({yz)Qz{)V{|)[|})c}!O)h!O!P)o!P!Q*o!Q!R*t!R![+l![!]0W!^!_1S!_!`1a!`!a1v!b!c2T!c!}2Y!}#O2p#P#Q2u#Q#R2z#R#S2Y#S#T3P#T#o2Y#o#p3i#q#r3n#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$[~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!R~~$tO$O~~$yW#t~OY$tZr$trs%cs#O$t#O#P%h#P;'S$t;'S;=`&f<%lO$t~%hO#t~~%kRO;'S$t;'S;=`%t;=`O$t~%yX#t~OY$tZr$trs%cs#O$t#O#P%h#P;'S$t;'S;=`&f;=`<%l$t<%lO$t~&iP;=`<%l$t~&qSk~O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POt~~3STO#S3P#S#T%c#T;'S3P;'S;=`3c<%lO3P~3fP;=`<%l3P~3nO&Q~~3sO&R~",
|
|
116
116
|
tokenizers: [0, 1, 2],
|
|
117
117
|
topRules: {"PromQL":[0,28],"MetricName":[1,142]},
|
|
118
118
|
specialized: [{term: 53, get: (value, stack) => (specializeIdentifier(value) << 1), external: specializeIdentifier},{term: 53, get: (value, stack) => (extendIdentifier(value) << 1) | 1, external: extendIdentifier, extend: true},{term: 53, get: value => spec_Identifier[value] || -1}],
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prometheus-io/lezer-promql",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.42.0",
|
|
4
4
|
"description": "lezer-based PromQL grammar",
|
|
5
|
-
"main": "index.cjs",
|
|
5
|
+
"main": "dist/index.cjs",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
8
8
|
"import": "./dist/index.es.js",
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"test": "NODE_OPTIONS=--experimental-vm-modules jest"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@lezer/generator": "^1.
|
|
34
|
-
"@lezer/lr": "^1.
|
|
35
|
-
"@lezer/highlight": "^1.1.
|
|
33
|
+
"@lezer/generator": "^1.2.2",
|
|
34
|
+
"@lezer/lr": "^1.3.1",
|
|
35
|
+
"@lezer/highlight": "^1.1.3"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"@lezer/lr": "^1.2.3",
|