Skip to content

Commit 8605fa1

Browse files
authored
Merge branch 'prometheus:main' into main
2 parents d1a03cf + e239e3e commit 8605fa1

File tree

179 files changed

+7189
-5374
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

179 files changed

+7189
-5374
lines changed

.circleci/config.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ executors:
1212
golang:
1313
docker:
1414
- image: quay.io/prometheus/golang-builder:1.17-base
15-
golang_115:
15+
golang_oldest:
1616
docker:
17-
- image: quay.io/prometheus/golang-builder:1.15-base
17+
- image: quay.io/prometheus/golang-builder:1.16-base
1818

1919
jobs:
2020
test_go:
@@ -37,6 +37,7 @@ jobs:
3737
GOMAXPROCS: "2"
3838
GO111MODULE: "on"
3939
- run: go test ./tsdb/ -test.tsdb-isolation=false
40+
- run: make -C documentation/examples/remote_storage
4041
- prometheus/check_proto:
4142
version: "3.15.8"
4243
- prometheus/store_artifact:
@@ -89,10 +90,11 @@ jobs:
8990
GOGC: "20"
9091
GOOPTS: "-p 2"
9192

92-
test_tsdb_go115:
93-
executor: golang_115
93+
test_golang_oldest:
94+
executor: golang_oldest
9495
steps:
9596
- checkout
97+
- run: make build
9698
- run: go test ./tsdb/...
9799
- run: go test ./tsdb/ -test.tsdb-isolation=false
98100

@@ -128,7 +130,7 @@ workflows:
128130
filters:
129131
tags:
130132
only: /.*/
131-
- test_tsdb_go115:
133+
- test_golang_oldest:
132134
filters:
133135
tags:
134136
only: /.*/
@@ -179,10 +181,10 @@ workflows:
179181
branches:
180182
ignore: /.*/
181183
image: circleci/golang:1-node
182-
nightly:
184+
daily:
183185
triggers:
184186
- schedule:
185-
cron: "0 0 * * *"
187+
cron: "49 19 * * *"
186188
filters:
187189
branches:
188190
only:

.github/dependabot.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,16 @@ updates:
33
- package-ecosystem: "gomod"
44
directory: "/"
55
schedule:
6-
interval: "weekly"
6+
interval: "monthly"
77
- package-ecosystem: "npm"
88
directory: "/web/ui"
9-
open-pull-requests-limit: 0
109
schedule:
11-
interval: "weekly"
10+
interval: "monthly"
1211
- package-ecosystem: "github-actions"
1312
directory: "/"
1413
schedule:
15-
interval: "weekly"
14+
interval: "monthly"
1615
- package-ecosystem: "docker"
1716
directory: "/"
1817
schedule:
19-
interval: "weekly"
18+
interval: "monthly"

.github/workflows/buf-lint.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: buf.build
2+
on:
3+
pull_request:
4+
paths:
5+
- ".github/workflows/buf-lint.yml"
6+
- "**.proto"
7+
jobs:
8+
buf:
9+
name: lint
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: bufbuild/buf-setup-action@v0.6.0
14+
- uses: bufbuild/buf-lint-action@v1
15+
with:
16+
input: 'prompb'
17+
- uses: bufbuild/buf-breaking-action@v1
18+
with:
19+
input: 'prompb'
20+
against: 'https://github.com/prometheus/prometheus.git#branch=main,ref=HEAD,subdir=prompb'

.github/workflows/buf.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: buf.build
2+
on:
3+
push:
4+
branches:
5+
- main
6+
jobs:
7+
buf:
8+
name: lint and publish
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: bufbuild/buf-setup-action@v0.6.0
13+
- uses: bufbuild/buf-lint-action@v1
14+
with:
15+
input: 'prompb'
16+
- uses: bufbuild/buf-breaking-action@v1
17+
with:
18+
input: 'prompb'
19+
against: 'https://github.com/prometheus/prometheus.git#branch=main,ref=HEAD~1,subdir=prompb'
20+
- uses: bufbuild/buf-push-action@v1
21+
with:
22+
input: 'prompb'
23+
buf_token: ${{ secrets.BUF_TOKEN }}

.golangci.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,11 @@ linters-settings:
2424
depguard:
2525
list-type: blacklist
2626
include-go-root: true
27-
packages:
28-
- sync/atomic
29-
- github.com/stretchr/testify/assert
3027
packages-with-error-message:
3128
- sync/atomic: "Use go.uber.org/atomic instead of sync/atomic"
3229
- github.com/stretchr/testify/assert: "Use github.com/stretchr/testify/require instead of github.com/stretchr/testify/assert"
3330
- github.com/go-kit/kit/log: "Use github.com/go-kit/log instead of github.com/go-kit/kit/log"
31+
- regexp: "Use github.com/grafana/regexp instead of regexp"
3432
errcheck:
3533
exclude: scripts/errcheck_excludes.txt
3634
goimports:

CHANGELOG.md

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,45 @@
1+
## 2.33.3 / 2022-02-11
2+
3+
* [BUGFIX] Azure SD: Fix a regression when public IP Address isn't set. #10289
4+
5+
## 2.33.2 / 2022-02-11
6+
7+
* [BUGFIX] Azure SD: Fix panic when public IP Address isn't set. #10280
8+
* [BUGFIX] Remote-write: Fix deadlock when stopping a shard. #10279
9+
10+
## 2.33.1 / 2022-02-02
11+
12+
* [BUGFIX] SD: Fix _no such file or directory_ in K8s SD when not running inside K8s. #10235
13+
14+
## 2.33.0 / 2022-01-29
15+
16+
* [CHANGE] PromQL: Promote negative offset and `@` modifer to stable features. #10121
17+
* [CHANGE] Web: Promote remote-write-receiver to stable. #10119
18+
* [FEATURE] Config: Add `stripPort` template function. #10002
19+
* [FEATURE] Promtool: Add cardinality analysis to `check metrics`, enabled by flag `--extended`. #10045
20+
* [FEATURE] SD: Enable target discovery in own K8s namespace. #9881
21+
* [FEATURE] SD: Add provider ID label in K8s SD. #9603
22+
* [FEATURE] Web: Add limit field to the rules API. #10152
23+
* [ENHANCEMENT] Remote-write: Avoid allocations by buffering concrete structs instead of interfaces. #9934
24+
* [ENHANCEMENT] Remote-write: Log time series details for out-of-order samples in remote write receiver. #9894
25+
* [ENHANCEMENT] Remote-write: Shard up more when backlogged. #9274
26+
* [ENHANCEMENT] TSDB: Use simpler map key to improve exemplar ingest performance. #10111
27+
* [ENHANCEMENT] TSDB: Avoid allocations when popping from the intersected postings heap. #10092
28+
* [ENHANCEMENT] TSDB: Make chunk writing non-blocking, avoiding latency spikes in remote-write. #10051
29+
* [ENHANCEMENT] TSDB: Improve label matching performance. #9907
30+
* [ENHANCEMENT] UI: Optimize the service discovery page and add a search bar. #10131
31+
* [ENHANCEMENT] UI: Optimize the target page and add a search bar. #10103
32+
* [BUGFIX] Promtool: Make exit codes more consistent. #9861
33+
* [BUGFIX] Promtool: Fix flakiness of rule testing. #8818
34+
* [BUGFIX] Remote-write: Update `prometheus_remote_storage_queue_highest_sent_timestamp_seconds` metric when write irrecoverably fails. #10102
35+
* [BUGFIX] Storage: Avoid panic in `BufferedSeriesIterator`. #9945
36+
* [BUGFIX] TSDB: CompactBlockMetas should produce correct mint/maxt for overlapping blocks. #10108
37+
* [BUGFIX] TSDB: Fix logging of exemplar storage size. #9938
38+
* [BUGFIX] UI: Fix overlapping click targets for the alert state checkboxes. #10136
39+
* [BUGFIX] UI: Fix _Unhealthy_ filter on target page to actually display only _Unhealthy_ targets. #10103
40+
* [BUGFIX] UI: Fix autocompletion when expression is empty. #10053
41+
* [BUGFIX] TSDB: Fix deadlock from simultaneous GC and write. #10166
42+
143
## 2.32.1 / 2021-12-17
244

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

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

16-
* [CHANGE] remote-write: Change default max retry time from 100ms to 5 seconds. #9634
58+
* [CHANGE] Remote-write: Change default max retry time from 100ms to 5 seconds. #9634
1759
* [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
1860
* [FEATURE] Promtool: Add `promtool check service-discovery` command. #8970
1961
* [FEATURE] UI: Add search in metrics dropdown. #9629

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Prometheus will now be reachable at http://localhost:9090/.
5656
### Building from source
5757

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

RELEASE.md

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

4244
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.
4345

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

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

73-
### 0. Updating dependencies
75+
### 0. Updating dependencies and promoting/demoting experimental features
7476

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

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

90+
This is also a good time to consider any experimental features and feature
91+
flags for promotion to stable or for deprecation or ultimately removal. Do any
92+
of these in pull requests, one per feature.
93+
8894
#### Updating Go dependencies
8995

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

157163
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.
164+
165+
Finally, in case there is no release shepherd listed for the next release yet, find a volunteer.

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.32.1
1+
2.33.3

0 commit comments

Comments
 (0)