Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
167 commits
Select commit Hold shift + click to select a range
764f2d0
add const for exit codes
Nov 24, 2021
319249f
Batch samples before sending them to channels
csmarchbanks Nov 19, 2021
c655684
Subtract from enqueued samples/exemplars upon send
csmarchbanks Nov 30, 2021
99bb56f
add errcodes from sd file
Dec 1, 2021
2de4874
build(deps-dev): bump @typescript-eslint/parser in /web/ui (#9918)
dependabot[bot] Dec 1, 2021
5a8e147
build(deps): bump sass from 1.43.4 to 1.44.0 in /web/ui (#9912)
dependabot[bot] Dec 1, 2021
ec002ae
extend the number of attribute check to know if it's a prometheusConf…
Nexucis Dec 1, 2021
e95d4ec
Merge pull request #9830 from prometheus/batch-queues
csmarchbanks Dec 2, 2021
54e2efc
Cut Prometheus 2.32.0-rc.0 (#9919) (#9925)
juliusv Dec 2, 2021
4262889
promtool: Add `--syntax-only` flag for `check config`
zzehring Nov 30, 2021
b9b57f9
Merge pull request #9909 from zzehring/add-syntax-only-flag-to-promto…
JessicaGreben Dec 3, 2021
c478d64
remote-write: benchmark just sending, on 20 shards
bboreham Nov 30, 2021
ed0543f
fix branch referenced in the codemirror-promql readme
Nexucis Dec 3, 2021
50878eb
remote-write: buffer struct instead of interface
bboreham Dec 3, 2021
d61d31b
Merge pull request #9933 from Nexucis/bugfix/typo-codemirror
juliusv Dec 3, 2021
14986e5
Fix Uyuni SD initialization (#9924)
witekest Dec 4, 2021
2c49860
Add license notice for code adapted from Go
juliusv Dec 5, 2021
3563db2
Fix docs/configuration typo (#9922)
alyiox Dec 6, 2021
084bd70
Convert atomic Int64 to native type when logging value (#9938)
56quarters Dec 6, 2021
a3e9628
Kubernetes service discovery: add provider ID label (#9603)
EdSchouten Dec 6, 2021
46529bf
Merge pull request #9942 from prometheus/add-go-license-notice
juliusv Dec 7, 2021
2185eb4
build(deps): bump @codemirror/view from 0.19.24 to 0.19.27 in /web/ui…
dependabot[bot] Dec 7, 2021
b42615a
build(deps-dev): bump eslint from 8.3.0 to 8.4.0 in /web/ui (#9954)
dependabot[bot] Dec 7, 2021
f303571
build(deps): bump github.com/aws/aws-sdk-go from 1.42.16 to 1.42.20 (…
dependabot[bot] Dec 7, 2021
41f7e99
build(deps): bump @codemirror/language from 0.19.6 to 0.19.7 in /web/…
dependabot[bot] Dec 7, 2021
cfa008e
build(deps): bump google.golang.org/api from 0.60.0 to 0.61.0 (#9959)
dependabot[bot] Dec 7, 2021
08a856b
build(deps-dev): bump prettier from 2.5.0 to 2.5.1 in /web/ui (#9951)
dependabot[bot] Dec 7, 2021
3e482c9
fix:storage:avoid panic when iterater exhauested (#9945)
detailyang Dec 7, 2021
f87de1a
build(deps): bump golang.org/x/tools from 0.1.7 to 0.1.8 (#9962)
dependabot[bot] Dec 7, 2021
bbbbe5b
build(deps-dev): bump @types/node from 16.11.11 to 16.11.12 in /web/u…
dependabot[bot] Dec 7, 2021
655e2d2
build(deps): bump github.com/digitalocean/godo from 1.72.0 to 1.73.0 …
dependabot[bot] Dec 8, 2021
d8b8678
Log time series details for out-of-order samples in remote write rece…
rabenhorst Dec 8, 2021
05d4d97
Fix queries after a failed snapshot replay (#9980)
codesome Dec 8, 2021
c965a75
web: use t.TempDir instead of ioutil.TempDir on tests (#9981)
mattheusv Dec 8, 2021
902817e
Fix queries after a failed snapshot replay (#9980) (#9987)
codesome Dec 9, 2021
087e3c7
Fix queries after a failed snapshot replay (#9980) (#9986)
codesome Dec 9, 2021
c0a8b0c
Cut v2.30.4 (#9988)
codesome Dec 9, 2021
bd21aaf
Cut v2.31.2 (#9989)
codesome Dec 9, 2021
bd64366
Review feedback
bboreham Dec 9, 2021
0a8d28e
Merge pull request #9934 from bboreham/remote-write-struct
csmarchbanks Dec 9, 2021
a97da71
deactivate dependabot for web dependencies (#9973)
Nexucis Dec 10, 2021
77670cb
build(deps): bump github.com/aws/aws-sdk-go from 1.42.20 to 1.42.22 (…
dependabot[bot] Dec 10, 2021
0e2b3ab
build(deps): bump k8s.io/client-go from 0.22.4 to 0.23.0 (#9976)
dependabot[bot] Dec 10, 2021
86adf4f
build(deps-dev): bump eslint from 8.4.0 to 8.4.1 in /web/ui (#9961)
dependabot[bot] Dec 10, 2021
f45e9f9
build(deps): bump github.com/Azure/azure-sdk-for-go (#9998)
dependabot[bot] Dec 10, 2021
6f3e664
build(deps): bump actions/upload-artifact from 2.2.4 to 2.3.0 (#9994)
dependabot[bot] Dec 10, 2021
de87515
Implement target discovery in own k8s namespace
fpetkovski Nov 27, 2021
2366d23
Format endpointslice documentation like other sections
Dec 14, 2021
18ee5fd
build(deps): bump github.com/aws/aws-sdk-go from 1.42.22 to 1.42.23
dependabot[bot] Dec 13, 2021
e140851
Update circleci orb
Dec 14, 2021
77503e3
build(deps): bump google.golang.org/api from 0.61.0 to 0.63.0
dependabot[bot] Dec 14, 2021
1de77fe
build(deps): bump github.com/Azure/go-autorest/autorest
dependabot[bot] Dec 14, 2021
9cf3f8e
build(deps): bump github.com/docker/docker
dependabot[bot] Dec 14, 2021
db1551b
Merge pull request #10016 from prometheus/release-2.32
Dec 14, 2021
87c5e9b
build(deps): bump github.com/gophercloud/gophercloud (#10017)
dependabot[bot] Dec 15, 2021
a14960e
build(deps): bump github.com/prometheus/exporter-toolkit (#9975)
dependabot[bot] Dec 15, 2021
13af247
Add stripPort to template function (#10002)
Dec 16, 2021
c92673f
Remove check against cfg so interval/ timeout are always set (#10023)
blottn Dec 16, 2021
3462b79
fix TestAgentAPIEndPoints (#9882)
wangrzneu Dec 17, 2021
2734327
Merge release-2.32 forward into main (#10032)
Dec 17, 2021
3696d7d
fix potential goroutine leaks
charlesxsh Dec 17, 2021
59f7ef0
update exit code for sd
Dec 18, 2021
f5c3ea1
fix missing db.Close() in web_test.go in order to avoid goroutine lea…
charlesxsh Dec 20, 2021
0c7838c
Merge remote-tracking branch 'upstream/release-2.30' into merge-releases
codesome Dec 20, 2021
ae3eca0
Merge remote-tracking branch 'upstream/release-2.31' into merge-releases
codesome Dec 20, 2021
b8565c5
Merge 2.30.4 and 2.31.2 into main (#10049)
codesome Dec 20, 2021
8746325
upgrade lezer deps to be aligned between the mirror and prometheus
Nexucis Dec 20, 2021
1a2a9db
fix the case when there is nothing in the expr
Nexucis Dec 20, 2021
257a9c1
Merge pull request #10053 from prometheus/bugfix/codemirror
juliusv Dec 20, 2021
d3ae69b
Cut v0.19.0 of codemirror-promql
juliusv Dec 20, 2021
52a1a1a
Also update codemirror-promql version in react-app
juliusv Dec 20, 2021
54dbfa7
Update package-lock.json
juliusv Dec 20, 2021
33c4f93
Merge pull request #10052 from prometheus/cm-promql-0-19
juliusv Dec 20, 2021
6c75771
Merge pull request #10056 from charlesxsh/fix-TestWALRestoreCorrupted
codesome Dec 21, 2021
b96963d
build(deps): bump github.com/hashicorp/consul/api from 1.11.0 to 1.12…
dependabot[bot] Dec 21, 2021
489548c
build(deps): bump github.com/aws/aws-sdk-go from 1.42.23 to 1.42.24 (…
dependabot[bot] Dec 21, 2021
710e480
build(deps): bump github.com/edsrzf/mmap-go from 1.0.0 to 1.1.0 (#10060)
dependabot[bot] Dec 21, 2021
2737abf
build(deps): bump actions/upload-artifact from 2.3.0 to 2.3.1 (#10059)
dependabot[bot] Dec 21, 2021
3c400d4
Accept promql.Engine interface in v1.NewAPI() (#10050)
colega Dec 21, 2021
f041a6a
build(deps): bump github.com/miekg/dns from 1.1.43 to 1.1.44 (#10063)
dependabot[bot] Dec 21, 2021
635658d
build(deps): bump k8s.io/client-go from 0.23.0 to 0.23.1 (#10064)
dependabot[bot] Dec 23, 2021
2aa5673
build(deps): bump github.com/Azure/azure-sdk-for-go (#10067)
dependabot[bot] Dec 23, 2021
a030f43
build(deps-dev): bump @typescript-eslint/parser in /web/ui (#10055)
dependabot[bot] Dec 23, 2021
32bd177
Remove unusued npm package "i" (#10078)
juliusv Dec 23, 2021
24718ce
build(deps-dev): bump @typescript-eslint/eslint-plugin in /web/ui (#1…
dependabot[bot] Dec 23, 2021
a1ae1fa
build(deps): bump github.com/uber/jaeger-client-go
dependabot[bot] Dec 23, 2021
e226d1f
Merge pull request #9977 from prometheus/dependabot/go_modules/github…
SuperQ Dec 27, 2021
d5845f8
build(deps-dev): bump @types/sanitize-html in /web/ui (#10087)
dependabot[bot] Dec 28, 2021
3947238
Label values with matchers by intersecting postings (#9907)
colega Dec 28, 2021
d95d588
build(deps): bump github.com/miekg/dns from 1.1.44 to 1.1.45 (#10088)
dependabot[bot] Dec 28, 2021
440974f
build(deps): bump github.com/Azure/go-autorest/autorest/adal from 0.9…
dependabot[bot] Dec 28, 2021
e0cec62
build(deps): bump github.com/Azure/azure-sdk-for-go from 60.2.0+incom…
dependabot[bot] Dec 28, 2021
51b0826
build(deps): bump github.com/aws/aws-sdk-go from 1.42.24 to 1.42.25 (…
dependabot[bot] Dec 28, 2021
c3e7bfb
add proper exit for loop
charlesxsh Dec 30, 2021
4b03fa3
replace config exit code with failure exit code
Dec 30, 2021
41b43c3
Update minimum Go version
SuperQ Dec 31, 2021
a78a3ce
Rollback k8s.io to 0.22.4.
SuperQ Dec 31, 2021
174a114
Merge pull request #9861 from JessicaGreben/minor-prom-improvements
JessicaGreben Dec 31, 2021
b277571
Merge pull request #10097 from prometheus/superq/bump_go
SuperQ Jan 2, 2022
8b0e1ef
Merge pull request #10100 from ddevault/main
ddevault Jan 2, 2022
a961062
Disable time based retention in tests (#8818)
dgl Jan 2, 2022
1af81dc
Update sent timestamp when write irrecoverably fails.
gouthamve Jan 3, 2022
dfa5cb7
Merge pull request #10038 from charlesxsh/fix-TestReshardRaceWithStop
csmarchbanks Jan 3, 2022
6696b7a
Don't update metrics on context cancellation
gouthamve Jan 4, 2022
b758435
release: Volunteer @beorn7 and @csmarchbanks for 2.33 and 2.34
beorn7 Jan 4, 2022
e51a17b
CompactBlockMetas should produce correct mint/maxt for overlapping bl…
pstibrany Jan 5, 2022
5a68a41
Merge pull request #10109 from prometheus/beorn7/release
beorn7 Jan 5, 2022
3be33de
release: Extend instructions for the release shepherd
beorn7 Jan 4, 2022
7015452
Pop intersected postings heap without popping (#10092)
colega Jan 5, 2022
d26fd5c
fix potential goroutine leaks (#10057)
charlesxsh Jan 5, 2022
8fdfa52
API: Promote remote-write-receiver to stable
beorn7 Jan 5, 2022
ba03f7f
Merge pull request #10102 from prometheus/update-metrics-on-rw-fails
csmarchbanks Jan 5, 2022
82860a7
tsdb: use simpler map key to improve exemplar ingest performance (#10…
bboreham Jan 6, 2022
a83d46e
Tidy postingsWithIndexHeap (#10123)
colega Jan 6, 2022
4727c41
Update Go dependencies
beorn7 Jan 6, 2022
366cba8
Merge pull request #10110 from prometheus/beorn7/release2
beorn7 Jan 6, 2022
671bb0d
Merge pull request #10128 from prometheus/beorn7/release
beorn7 Jan 6, 2022
931acc3
fix overlapping click-targets of alert state checkboxes (#10136)
victorhaggqvist Jan 7, 2022
2ce94ac
Add '--weight' flag to 'promtool check metrics' command (#10045)
chenlujjj Jan 7, 2022
d588b14
remote_write: detailed test for shard calculation
bboreham Aug 29, 2021
6d01ce8
remote_write: shard up more when backlogged
bboreham Aug 29, 2021
954c0e8
remote_write: round desired shards up before check
bboreham Aug 30, 2021
0df3489
Write chunks via queue, predicting the refs (#10051)
replay Jan 10, 2022
dd9f96b
rework the target page (#10103)
Nexucis Jan 10, 2022
0f4a1e6
Merge pull request #10119 from prometheus/beorn7/remote
beorn7 Jan 10, 2022
bff9d06
Service Discovery Page rework (#10131)
Nexucis Jan 10, 2022
dd02675
move dependabot frequency running to monthly (#10144)
Nexucis Jan 10, 2022
714bc3f
build(deps): bump google.golang.org/api from 0.63.0 to 0.64.0 (#10135)
dependabot[bot] Jan 10, 2022
61509fc
PromQL: Promote negative offset and @ modifer to stable
beorn7 Jan 5, 2022
129ed4e
Fix Example() function in TSDB (#10153)
codesome Jan 11, 2022
076109f
build(deps): bump github.com/aws/aws-sdk-go from 1.42.28 to 1.42.31 (…
dependabot[bot] Jan 11, 2022
b39f273
PromQL: Always enable negative offset and @ modifier
beorn7 Jan 11, 2022
c2b80d8
PromQL: Test negative offset in PromQL tests
beorn7 Jan 11, 2022
eb7c10d
Merge pull request #9274 from bboreham/improve-rw-sharding
csmarchbanks Jan 11, 2022
2f4289a
add limit to the rules api (#10152)
Jan 12, 2022
933f50b
Merge pull request #10121 from prometheus/beorn7/promql
beorn7 Jan 12, 2022
b9bc8e7
create a component to handle the search bar with debounce
Nexucis Jan 12, 2022
c19e75f
Cut v2.33-rc.0
beorn7 Jan 12, 2022
de51e98
Merge pull request #10156 from prometheus/beorn7/release
beorn7 Jan 13, 2022
74f497a
Update web/ui/react-app/src/pages/serviceDiscovery/Services.tsx
Nexucis Jan 19, 2022
7e74557
Merge pull request #10157 from prometheus/nexucis/debounce-search
beorn7 Jan 19, 2022
bf959b3
Nits after PR 10051 merge (#10159)
replay Jan 19, 2022
b71a6db
tsdb/agent: Fix deadlock from simultaneous GC and write (#10166)
rfratto Jan 19, 2022
b9f05e1
bump @nexucis/kvsearch to v0.4.0
Nexucis Jan 19, 2022
d38bb1c
Merge pull request #10182 from prometheus/nexucis/bump-kvsearch
beorn7 Jan 19, 2022
ef5815f
Bump github.com/prometheus/client_golang to v1.12.0
beorn7 Jan 19, 2022
e00eefa
Cut v2.33.0-rc.1
beorn7 Jan 19, 2022
eb6022f
Merge pull request #10183 from prometheus/beorn7/release
beorn7 Jan 19, 2022
d27e766
Bump client_golang to 1.12.1
beorn7 Jan 29, 2022
ae8603c
Cut v2.33.0
beorn7 Jan 29, 2022
344a13d
Merge pull request #10223 from prometheus/beorn7/release
beorn7 Jan 29, 2022
c85efa0
Fix k8s target discovery when not running inside k8s
nilsding Feb 1, 2022
9d63502
k8s: improve 'own_namespace'
Feb 1, 2022
1ba40dd
Merge pull request #10235 from roidelapluie/ownnamespace
beorn7 Feb 1, 2022
7f57110
Cut v2.33.1
beorn7 Feb 2, 2022
4e08110
Merge pull request #10246 from prometheus/beorn7/release
beorn7 Feb 2, 2022
1b3443e
Azure: Fix panic when IP Address isn't set (#10280)
LeviHarrison Feb 10, 2022
bfb1500
Fix deadlock when stopping a shard (#10279)
csmarchbanks Feb 11, 2022
b4714db
Release 2.33.2 (#10286)
Feb 11, 2022
002ceb7
Fix panic in Azure SD when no public interface is set.
Feb 11, 2022
56e1446
Release 2.33.3
Feb 11, 2022
2482778
Fix panics when m-mapping head chunks (#10316)
codesome Feb 22, 2022
8303201
Cut v2.33.4 (#10337)
codesome Feb 22, 2022
8265f7d
Merge tag 'refs/tags/v2.33.4'
github-actions[bot] Mar 1, 2022
e2ed4e2
[bot] vendor: revendor
github-actions[bot] Mar 1, 2022
82bc08d
[bot] assets: generate
github-actions[bot] Mar 1, 2022
516b23d
[bot] update rh-manifest.txt
github-actions[bot] Mar 1, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
11 changes: 6 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ executors:
golang:
docker:
- image: quay.io/prometheus/golang-builder:1.17-base
golang_115:
golang_oldest:
docker:
- image: quay.io/prometheus/golang-builder:1.15-base
- image: quay.io/prometheus/golang-builder:1.16-base

jobs:
test_go:
Expand Down Expand Up @@ -89,10 +89,11 @@ jobs:
GOGC: "20"
GOOPTS: "-p 2"

test_tsdb_go115:
executor: golang_115
test_golang_oldest:
executor: golang_oldest
steps:
- checkout
- run: make build
- run: go test ./tsdb/...
- run: go test ./tsdb/ -test.tsdb-isolation=false

Expand Down Expand Up @@ -128,7 +129,7 @@ workflows:
filters:
tags:
only: /.*/
- test_tsdb_go115:
- test_golang_oldest:
filters:
tags:
only: /.*/
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/fuzzing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
fuzz-seconds: 600
dry-run: false
- name: Upload Crash
uses: actions/upload-artifact@v2.2.4
uses: actions/upload-artifact@v2.3.1
if: failure() && steps.build.outcome == 'success'
with:
name: artifacts
Expand Down
56 changes: 55 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,49 @@
## 2.33.4 / 2022-02-22

* [BUGFIX] TSDB: Fix panic when m-mapping head chunks onto the disk. #10316

## 2.33.3 / 2022-02-11

* [BUGFIX] Azure SD: Fix a regression when public IP Address isn't set. #10289

## 2.33.2 / 2022-02-11

* [BUGFIX] Azure SD: Fix panic when public IP Address isn't set. #10280
* [BUGFIX] Remote-write: Fix deadlock when stopping a shard. #10279

## 2.33.1 / 2022-02-02

* [BUGFIX] SD: Fix _no such file or directory_ in K8s SD when not running inside K8s. #10235

## 2.33.0 / 2022-01-29

* [CHANGE] PromQL: Promote negative offset and `@` modifer to stable features. #10121
* [CHANGE] Web: Promote remote-write-receiver to stable. #10119
* [FEATURE] Config: Add `stripPort` template function. #10002
* [FEATURE] Promtool: Add cardinality analysis to `check metrics`, enabled by flag `--extended`. #10045
* [FEATURE] SD: Enable target discovery in own K8s namespace. #9881
* [FEATURE] SD: Add provider ID label in K8s SD. #9603
* [FEATURE] Web: Add limit field to the rules API. #10152
* [ENHANCEMENT] Remote-write: Avoid allocations by buffering concrete structs instead of interfaces. #9934
* [ENHANCEMENT] Remote-write: Log time series details for out-of-order samples in remote write receiver. #9894
* [ENHANCEMENT] Remote-write: Shard up more when backlogged. #9274
* [ENHANCEMENT] TSDB: Use simpler map key to improve exemplar ingest performance. #10111
* [ENHANCEMENT] TSDB: Avoid allocations when popping from the intersected postings heap. #10092
* [ENHANCEMENT] TSDB: Make chunk writing non-blocking, avoiding latency spikes in remote-write. #10051
* [ENHANCEMENT] TSDB: Improve label matching performance. #9907
* [ENHANCEMENT] UI: Optimize the service discovery page and add a search bar. #10131
* [ENHANCEMENT] UI: Optimize the target page and add a search bar. #10103
* [BUGFIX] Promtool: Make exit codes more consistent. #9861
* [BUGFIX] Promtool: Fix flakiness of rule testing. #8818
* [BUGFIX] Remote-write: Update `prometheus_remote_storage_queue_highest_sent_timestamp_seconds` metric when write irrecoverably fails. #10102
* [BUGFIX] Storage: Avoid panic in `BufferedSeriesIterator`. #9945
* [BUGFIX] TSDB: CompactBlockMetas should produce correct mint/maxt for overlapping blocks. #10108
* [BUGFIX] TSDB: Fix logging of exemplar storage size. #9938
* [BUGFIX] UI: Fix overlapping click targets for the alert state checkboxes. #10136
* [BUGFIX] UI: Fix _Unhealthy_ filter on target page to actually display only _Unhealthy_ targets. #10103
* [BUGFIX] UI: Fix autocompletion when expression is empty. #10053
* [BUGFIX] TSDB: Fix deadlock from simultaneous GC and write. #10166

## 2.32.1 / 2021-12-17

* [BUGFIX] Scrape: Fix reporting metrics when sample limit is reached during the report. #9996
Expand All @@ -13,7 +59,7 @@ Enable with `--enable-feature=agent`.

Learn more about the Prometheus Agent in our [blog post](https://prometheus.io/blog/2021/11/16/agent/).

* [CHANGE] remote-write: Change default max retry time from 100ms to 5 seconds. #9634
* [CHANGE] Remote-write: Change default max retry time from 100ms to 5 seconds. #9634
* [FEATURE] Agent: New mode of operation optimized for remote-write only scenarios, without local storage. Enable with `--enable-feature=agent`. #8785 #9851 #9664 #9939 #9941 #9943
* [FEATURE] Promtool: Add `promtool check service-discovery` command. #8970
* [FEATURE] UI: Add search in metrics dropdown. #9629
Expand All @@ -36,6 +82,10 @@ Learn more about the Prometheus Agent in our [blog post](https://prometheus.io/b
* [BUGFIX] Uyuni SD: Fix null pointer exception during initialization. #9924 #9950
* [BUGFIX] TSDB: Fix queries after a failed snapshot replay. #9980

## 2.31.2 / 2021-12-09

* [BUGFIX] TSDB: Fix queries after a failed snapshot replay. #9980

## 2.31.1 / 2021-11-05

* [BUGFIX] SD: Fix a panic when the experimental discovery manager receives
Expand Down Expand Up @@ -66,6 +116,10 @@ Learn more about the Prometheus Agent in our [blog post](https://prometheus.io/b
* [BUGFIX] TSDB: Fix memory leak in samples deletion. #9151
* [BUGFIX] UI: Use consistent margin-bottom for all alert kinds. #9318

## 2.30.4 / 2021-12-09

* [BUGFIX] TSDB: Fix queries after a failed snapshot replay. #9980

## 2.30.3 / 2021-10-05

* [BUGFIX] TSDB: Fix panic on failed snapshot replay. #9438
Expand Down
5 changes: 5 additions & 0 deletions NOTICE
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ https://github.com/dgryski/go-tsz
Copyright (c) 2015,2016 Damian Gryski <damian@gryski.com>
See https://github.com/dgryski/go-tsz/blob/master/LICENSE for license details.

The Go programming language
https://go.dev/
Copyright (c) 2009 The Go Authors
See https://go.dev/LICENSE for license details.

The Codicon icon font from Microsoft
https://github.com/microsoft/vscode-codicons
Copyright (c) Microsoft Corporation and other contributors
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Prometheus will now be reachable at http://localhost:9090/.
### Building from source

To build Prometheus from source code, You need:
* Go [version 1.14 or greater](https://golang.org/doc/install).
* Go [version 1.16 or greater](https://golang.org/doc/install).
* NodeJS [version 16 or greater](https://nodejs.org/).
* npm [version 7 or greater](https://www.npmjs.com/).

Expand Down
12 changes: 10 additions & 2 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ Release cadence of first pre-releases being cut is 6 weeks.
| v2.30 | 2021-09-08 | Ganesh Vernekar (GitHub: @codesome) |
| v2.31 | 2021-10-20 | Julien Pivotto (GitHub: @roidelapluie) |
| v2.32 | 2021-12-01 | Julius Volz (GitHub: @juliusv) |
| v2.33 | 2022-01-12 | **searching for volunteer** |
| v2.33 | 2022-01-12 | Björn Rabenstein (GitHub: @beorn7) |
| v2.34 | 2022-02-23 | Chris Marchbanks (GitHub: @csmarchbanks) |
| v2.35 | 2022-04-06 | **searching for volunteer** |

If you are interested in volunteering please create a pull request against the [prometheus/prometheus](https://github.com/prometheus/prometheus) repository and propose yourself for the release series of your choice.

Expand Down Expand Up @@ -70,7 +72,7 @@ If a bug fix got accidentally merged into main after non-bug-fix changes in main

Maintaining the release branches for older minor releases happens on a best effort basis.

### 0. Updating dependencies
### 0. Updating dependencies and promoting/demoting experimental features

A few days before a major or minor release, consider updating the dependencies.

Expand All @@ -85,6 +87,10 @@ you can skip the dependency update or only update select dependencies. In such a
case, you have to create an issue or pull request in the GitHub project for
later follow-up.

This is also a good time to consider any experimental features and feature
flags for promotion to stable or for deprecation or ultimately removal. Do any
of these in pull requests, one per feature.

#### Updating Go dependencies

```
Expand Down Expand Up @@ -155,3 +161,5 @@ For release candidate versions (`v2.16.0-rc.0`), run the benchmark for 3 days us
If the release has happened in the latest release branch, merge the changes into main.

Once the binaries have been uploaded, announce the release on `prometheus-announce@googlegroups.com`. (Please do not use `prometheus-users@googlegroups.com` for announcements anymore.) Check out previous announcement mails for inspiration.

Finally, in case there is no release shepherd listed for the next release yet, find a volunteer.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.32.1
2.33.4
25 changes: 12 additions & 13 deletions cmd/prometheus/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,6 @@ type flagConfig struct {
featureList []string
// These options are extracted from featureList
// for ease of use.
enablePromQLAtModifier bool
enablePromQLNegativeOffset bool
enableExpandExternalLabels bool
enableNewSDManager bool

Expand All @@ -167,15 +165,9 @@ func (c *flagConfig) setFeatureListOptions(logger log.Logger) error {
opts := strings.Split(f, ",")
for _, o := range opts {
switch o {
case "promql-at-modifier":
c.enablePromQLAtModifier = true
level.Info(logger).Log("msg", "Experimental promql-at-modifier enabled")
case "promql-negative-offset":
c.enablePromQLNegativeOffset = true
level.Info(logger).Log("msg", "Experimental promql-negative-offset enabled")
case "remote-write-receiver":
c.web.RemoteWriteReceiver = true
level.Info(logger).Log("msg", "Experimental remote-write-receiver enabled")
c.web.EnableRemoteWriteReceiver = true
level.Warn(logger).Log("msg", "Remote write receiver enabled via feature flag remote-write-receiver. This is DEPRECATED. Use --web.enable-remote-write-receiver.")
case "expand-external-labels":
c.enableExpandExternalLabels = true
level.Info(logger).Log("msg", "Experimental expand-external-labels enabled")
Expand All @@ -196,6 +188,8 @@ func (c *flagConfig) setFeatureListOptions(logger log.Logger) error {
level.Info(logger).Log("msg", "Experimental agent mode enabled.")
case "":
continue
case "promql-at-modifier", "promql-negative-offset":
level.Warn(logger).Log("msg", "This option for --enable-feature is now permanently enabled and therefore a no-op.", "option", o)
default:
level.Warn(logger).Log("msg", "Unknown option for --enable-feature", "option", o)
}
Expand Down Expand Up @@ -264,6 +258,9 @@ func main() {
a.Flag("web.enable-admin-api", "Enable API endpoints for admin control actions.").
Default("false").BoolVar(&cfg.web.EnableAdminAPI)

a.Flag("web.enable-remote-write-receiver", "Enable API endpoint accepting remote write requests.").
Default("false").BoolVar(&cfg.web.EnableRemoteWriteReceiver)

a.Flag("web.console.templates", "Path to the console template directory, available at /consoles.").
Default("consoles").StringVar(&cfg.web.ConsoleTemplatesPath)

Expand Down Expand Up @@ -382,7 +379,7 @@ func main() {
serverOnlyFlag(a, "query.max-samples", "Maximum number of samples a single query can load into memory. Note that queries will fail if they try to load more samples than this into memory, so this also limits the number of samples a query can return.").
Default("50000000").IntVar(&cfg.queryMaxSamples)

a.Flag("enable-feature", "Comma separated feature names to enable. Valid options: agent, exemplar-storage, expand-external-labels, memory-snapshot-on-shutdown, promql-at-modifier, promql-negative-offset, remote-write-receiver, extra-scrape-metrics, new-service-discovery-manager. See https://prometheus.io/docs/prometheus/latest/feature_flags/ for more details.").
a.Flag("enable-feature", "Comma separated feature names to enable. Valid options: agent, exemplar-storage, expand-external-labels, memory-snapshot-on-shutdown, promql-at-modifier, promql-negative-offset, remote-write-receiver (DEPRECATED), extra-scrape-metrics, new-service-discovery-manager. See https://prometheus.io/docs/prometheus/latest/feature_flags/ for more details.").
Default("").StringsVar(&cfg.featureList)

promlogflag.AddFlags(a, &cfg.promlogConfig)
Expand Down Expand Up @@ -584,8 +581,10 @@ func main() {
ActiveQueryTracker: promql.NewActiveQueryTracker(localStoragePath, cfg.queryConcurrency, log.With(logger, "component", "activeQueryTracker")),
LookbackDelta: time.Duration(cfg.lookbackDelta),
NoStepSubqueryIntervalFn: noStepSubqueryInterval.Get,
EnableAtModifier: cfg.enablePromQLAtModifier,
EnableNegativeOffset: cfg.enablePromQLNegativeOffset,
// EnableAtModifier and EnableNegativeOffset have to be
// always on for regular PromQL as of Prometheus v2.33.
EnableAtModifier: true,
EnableNegativeOffset: true,
}

queryEngine = promql.NewEngine(opts)
Expand Down
Loading