@prometheus-io/lezer-promql 0.37.1 → 0.39.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 +31 -5
- package/dist/index.cjs +1 -1
- package/dist/index.es.js +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,36 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## 2.
|
|
4
|
-
|
|
5
|
-
* [
|
|
6
|
-
* [
|
|
7
|
-
|
|
3
|
+
## 2.39.0-rc.0 / 2022-09-27
|
|
4
|
+
|
|
5
|
+
* [FEATURE] **experimental** TSDB: Add support for ingesting out-of-order samples. This is configured via `out_of_order_time_window` field in the config file; check config file docs for more info. #11075
|
|
6
|
+
* [ENHANCEMENT] API: `/-/healthy` and `/-/ready` API calls now also respond to a `HEAD` request on top of existing `GET` support. #11160
|
|
7
|
+
* [ENHANCEMENT] PuppetDB SD: Add `__meta_puppetdb_query` label. #11238
|
|
8
|
+
* [ENHANCEMENT] AWS Lightsail SD: Add `__meta_ec2_region` label. #11326
|
|
9
|
+
* [ENHANCEMENT] AWS EC2 SD: Add `____meta_lightsail_region` label. #11326
|
|
10
|
+
* [ENHANCEMENT] Scrape: Optimise relabeling by re-using memory. #11147
|
|
11
|
+
* [ENHANCEMENT] TSDB: Improve WAL replay timings. #10973 #11307 #11319
|
|
12
|
+
* [ENHANCEMENT] TSDB: Optimise memory by not storing unnecessary data in the memory. #11280 #11288 #11296
|
|
13
|
+
* [ENHANCEMENT] TSDB: Allow overlapping blocks by default. `--storage.tsdb.allow-overlapping-blocks` now has no effect. #11331
|
|
14
|
+
* [ENHANCEMENT] UI: Click to copy label-value pair from query result to clipboard. #11229
|
|
15
|
+
* [BUGFIX] TSDB: Turn off isolation for Head compaction to fix a memory leak. #11317
|
|
16
|
+
* [BUGFIX] TSDB: Fix 'invalid magic number 0' error on Prometheus startup. #11338
|
|
17
|
+
* [BUGFIX] PromQL: Properly close file descriptor when logging unfinished queries. #11148
|
|
18
|
+
* [BUGFIX] Agent: Fix validation of flag options and prevent WAL from growing more than desired. #9876
|
|
19
|
+
|
|
20
|
+
## 2.38.0 / 2022-08-16
|
|
21
|
+
|
|
22
|
+
* [FEATURE]: Web: Add a `/api/v1/format_query` HTTP API endpoint that allows pretty-formatting PromQL expressions. #11036 #10544 #11005
|
|
23
|
+
* [FEATURE]: UI: Add support for formatting PromQL expressions in the UI. #11039
|
|
24
|
+
* [FEATURE]: DNS SD: Support MX records for discovering targets. #10099
|
|
25
|
+
* [FEATURE]: Templates: Add `toTime()` template function that allows converting sample timestamps to Go `time.Time` values. #10993
|
|
26
|
+
* [ENHANCEMENT]: Kubernetes SD: Add `__meta_kubernetes_service_port_number` meta label indicating the service port number. #11002 #11053
|
|
27
|
+
* [ENHANCEMENT]: Kubernetes SD: Add `__meta_kubernetes_pod_container_image` meta label indicating the container image. #11034 #11146
|
|
28
|
+
* [ENHANCEMENT]: PromQL: When a query panics, also log the query itself alongside the panic message. #10995
|
|
29
|
+
* [ENHANCEMENT]: UI: Tweak colors in the dark theme to improve the contrast ratio. #11068
|
|
30
|
+
* [ENHANCEMENT]: Web: Speed up calls to `/api/v1/rules` by avoiding locks and using atomic types instead. #10858
|
|
31
|
+
* [ENHANCEMENT]: Scrape: Add a `no-default-scrape-port` feature flag, which omits or removes any default HTTP (`:80`) or HTTPS (`:443`) ports in the target's scrape address. #9523
|
|
32
|
+
* [BUGFIX]: TSDB: In the WAL watcher metrics, expose the `type="exemplar"` label instead of `type="unknown"` for exemplar records. #11008
|
|
33
|
+
* [BUGFIX]: TSDB: Fix race condition around allocating series IDs during chunk snapshot loading. #11099
|
|
8
34
|
|
|
9
35
|
## 2.37.0 / 2022-07-14
|
|
10
36
|
|
package/dist/index.cjs
CHANGED
|
@@ -115,7 +115,7 @@ const parser = lr.LRParser.deserialize({
|
|
|
115
115
|
tokenData: "1R~RwX^#lpq#lqr$ars$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c!i-d#T#Z-dV-yT%zS!ZR!Q![.Y![!].Y!c!}.Y#R#S.Y#T#o.YR._T!ZR!Q![.Y![!].Y!c!}.Y#R#S.Y#T#o.Y~.sP!U~!_!`.v~.{O!T~~/QQ$PP!_!`/W#r#s/]Q/]O!QQ~/bO$Q~~/gP!S~!_!`/j~/oO!R~~/tO$T~V/{T!ZRtS!Q![/t![!].Y!c!}/t#R#S/t#T#o/t~0aO%u~~0fO%v~~0kOx~~0nRO#S0k#S#T%]#T~0k~0|O%{~~1RO%|~",
|
|
116
116
|
tokenizers: [0, 1, 2],
|
|
117
117
|
topRules: {"PromQL":[0,28],"MetricName":[1,145]},
|
|
118
|
-
specialized: [{term: 57, get: (value, stack) => (specializeIdentifier(value) << 1)},{term: 57, get: (value, stack) => (extendIdentifier(value) << 1) | 1},{term: 57, get: value => spec_Identifier[value] || -1}],
|
|
118
|
+
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}],
|
|
119
119
|
tokenPrec: 0
|
|
120
120
|
});
|
|
121
121
|
// This file was generated by lezer-generator. You probably shouldn't edit it.
|
package/dist/index.es.js
CHANGED
|
@@ -111,7 +111,7 @@ const parser = LRParser.deserialize({
|
|
|
111
111
|
tokenData: "1R~RwX^#lpq#lqr$ars$tst%huv%swx%xxy&gyz&lz{&q{|&v|}&}}!O'S!O!P'Z!P!Q(Z!Q!R(`!R![)W![!]-r!^!_.n!_!`.{!`!a/b!b!c/o!c!}/t!}#O0[#P#Q0a#Q#R0f#R#S/t#S#T0k#T#o/t#o#p0w#q#r0|#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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ers: [0, 1, 2],
|
|
113
113
|
topRules: {"PromQL":[0,28],"MetricName":[1,145]},
|
|
114
|
-
specialized: [{term: 57, get: (value, stack) => (specializeIdentifier(value) << 1)},{term: 57, get: (value, stack) => (extendIdentifier(value) << 1) | 1},{term: 57, get: value => spec_Identifier[value] || -1}],
|
|
114
|
+
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}],
|
|
115
115
|
tokenPrec: 0
|
|
116
116
|
});
|
|
117
117
|
// This file was generated by lezer-generator. You probably shouldn't edit it.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prometheus-io/lezer-promql",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.39.0-rc.0",
|
|
4
4
|
"description": "lezer-based PromQL grammar",
|
|
5
5
|
"main": "index.cjs",
|
|
6
6
|
"type": "module",
|
|
@@ -30,12 +30,12 @@
|
|
|
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.
|
|
33
|
+
"@lezer/generator": "^1.1.1",
|
|
34
|
+
"@lezer/lr": "^1.2.3",
|
|
35
|
+
"@lezer/highlight": "^1.1.0"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
|
-
"@lezer/lr": "^1.
|
|
39
|
-
"@lezer/highlight": "^1.
|
|
38
|
+
"@lezer/lr": "^1.2.3",
|
|
39
|
+
"@lezer/highlight": "^1.1.0"
|
|
40
40
|
}
|
|
41
41
|
}
|