Skip to content

Commit 6e5fb5d

Browse files
Merge pull request #23 from simonpasquier/aos-bump-v2.7.1
Bump to v2.7.1
2 parents 41e87f1 + 077967e commit 6e5fb5d

File tree

1,031 files changed

+125730
-31578
lines changed

Some content is hidden

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

1,031 files changed

+125730
-31578
lines changed

.circleci/config.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,19 @@ executors:
1111
jobs:
1212
test:
1313
executor: golang
14-
resource_class: large
1514

1615
steps:
1716
- checkout
1817
- run: make promu
19-
# 'unused' and 'staticcheck' are skipped because 'go mod tidy' gives different results for Go1.11.3 and Go 1.11.4.
20-
# They should be added back once CircleCI updates to 1.11.4.
21-
- run: make check_license style build check_assets
18+
- run: make check_license style unused staticcheck build check_assets
19+
- run:
20+
command: |
21+
curl -s -L https://github.com/protocolbuffers/protobuf/releases/download/v3.5.1/protoc-3.5.1-linux-x86_64.zip > /tmp/protoc.zip
22+
unzip -d /tmp /tmp/protoc.zip
23+
chmod +x /tmp/bin/protoc
24+
echo 'export PATH=/tmp/bin:$PATH' >> $BASH_ENV
25+
source $BASH_ENV
26+
make proto
2227
- run: git diff --exit-code
2328
- store_artifacts:
2429
path: prometheus

CHANGELOG.md

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,48 @@
1+
## 2.7.1 / 2019-01-31
2+
3+
This release has a fix for a Stored DOM XSS vulnerability that can be triggered when using the query history functionality. Thanks to Dor Tumarkin from Checkmarx for reporting it.
4+
5+
* [BUGFIX/SECURITY] Fix a Stored DOM XSS vulnerability with query history. #5163
6+
* [BUGFIX] `prometheus_rule_group_last_duration_seconds` now reports seconds instead of nanoseconds. #5153
7+
* [BUGFIX] Make sure the targets are consistently sorted in the targets page. #5161
8+
9+
## 2.7.0 / 2019-01-28
10+
11+
We're rolling back the Dockerfile changes introduced in 2.6.0. If you made changes to your docker deployment in 2.6.0, you will need to roll them back. This release also adds experimental support for disk size based retention. To accomodate that we are deprecating the flag `storage.tsdb.retention` in favour of `storage.tsdb.retention.time`. We print a warning if the flag is in use, but it will function without breaking until Prometheus 3.0.
12+
13+
* [CHANGE] Rollback Dockerfile to version at 2.5.0. Rollback of the breaking change introduced in 2.6.0. #5122
14+
* [FEATURE] Add subqueries to PromQL. #4831
15+
* [FEATURE] [EXPERIMENTAL] Add support for disk size based retention. Note that we don't consider the WAL size which could be significant and the time based retention policy also applies. #5109 prometheus/tsdb#343
16+
* [FEATURE] Add CORS origin flag. #5011
17+
* [ENHANCEMENT] Consul SD: Add tagged address to the discovery metadata. #5001
18+
* [ENHANCEMENT] Kubernetes SD: Add service external IP and external name to the discovery metadata. #4940
19+
* [ENHANCEMENT] Azure SD: Add support for Managed Identity authentication. #4590
20+
* [ENHANCEMENT] Azure SD: Add tenant and subscription IDs to the discovery metadata. #4969
21+
* [ENHANCEMENT] OpenStack SD: Add support for application credentials based authentication. #4968
22+
* [ENHANCEMENT] Add metric for number of rule groups loaded. #5090
23+
* [BUGFIX] Avoid duplicate tests for alert unit tests. #4964
24+
* [BUGFIX] Don't depend on given order when comparing samples in alert unit testing. #5049
25+
* [BUGFIX] Make sure the retention period doesn't overflow. #5112
26+
* [BUGFIX] Make sure the blocks don't get very large. #5112
27+
* [BUGFIX] Don't generate blocks with no samples. prometheus/tsdb#374
28+
* [BUGFIX] Reintroduce metric for WAL corruptions. prometheus/tsdb#473
29+
30+
## 2.6.1 / 2019-01-15
31+
32+
* [BUGFIX] Azure SD: Fix discovery getting stuck sometimes. #5088
33+
* [BUGFIX] Marathon SD: Use `Tasks.Ports` when `RequirePorts` is `false`. #5026
34+
* [BUGFIX] Promtool: Fix "out-of-order sample" errors when testing rules. #5069
35+
136
## 2.6.0 / 2018-12-17
237

38+
* [CHANGE] Remove default flags from the container's entrypoint, run Prometheus from `/etc/prometheus` and symlink the storage directory to `/etc/prometheus/data`. #4976
339
* [CHANGE] Promtool: Remove the `update` command. #3839
440
* [FEATURE] Add JSON log format via the `--log.format` flag. #4876
541
* [FEATURE] API: Add /api/v1/labels endpoint to get all label names. #4835
642
* [FEATURE] Web: Allow setting the page's title via the `--web.ui-title` flag. #4841
743
* [ENHANCEMENT] Add `prometheus_tsdb_lowest_timestamp_seconds`, `prometheus_tsdb_head_min_time_seconds` and `prometheus_tsdb_head_max_time_seconds` metrics. #4888
844
* [ENHANCEMENT] Add `rule_group_last_evaluation_timestamp_seconds` metric. #4852
945
* [ENHANCEMENT] Add `prometheus_template_text_expansion_failures_total` and `prometheus_template_text_expansions_total` metrics. #4747
10-
* [ENHANCEMENT] Remove default flags from the container's entrypoint. #4976
1146
* [ENHANCEMENT] Set consistent User-Agent header in outgoing requests. #4891
1247
* [ENHANCEMENT] Azure SD: Error out at load time when authentication parameters are missing. #4907
1348
* [ENHANCEMENT] EC2 SD: Add the machine's private DNS name to the discovery metadata. #4693

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ LABEL io.k8s.display-name="OpenShift Prometheus" \
88
io.k8s.description="The Prometheus monitoring system and time series database." \
99
io.openshift.tags="prometheus,monitoring" \
1010
maintainer="The Prometheus Authors <[email protected]>" \
11-
version="v2.6.0"
11+
version="v2.7.1"
1212

1313
ARG FROM_DIRECTORY=/go/src/github.com/prometheus/prometheus
1414
COPY --from=builder ${FROM_DIRECTORY}/prometheus /bin/prometheus

Dockerfile.rhel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ LABEL io.k8s.display-name="OpenShift Prometheus" \
99
io.k8s.description="The Prometheus monitoring system and time series database." \
1010
io.openshift.tags="prometheus,monitoring" \
1111
maintainer="OpenShift Development <[email protected]>" \
12-
version="v2.6.0"
12+
version="v2.7.1"
1313

1414
ARG FROM_DIRECTORY=/go/src/github.com/prometheus/prometheus
1515
COPY --from=builder ${FROM_DIRECTORY}/prometheus /bin/prometheus

Makefile

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,8 @@
1414
include Makefile.common
1515

1616
STATICCHECK_IGNORE = \
17-
github.com/prometheus/prometheus/discovery/kubernetes/kubernetes.go:SA1019 \
18-
github.com/prometheus/prometheus/discovery/kubernetes/node.go:SA1019 \
19-
github.com/prometheus/prometheus/documentation/examples/remote_storage/remote_storage_adapter/main.go:SA1019 \
2017
github.com/prometheus/prometheus/pkg/textparse/promlex.l.go:SA4006 \
21-
github.com/prometheus/prometheus/pkg/textparse/openmetricslex.l.go:SA4006 \
22-
github.com/prometheus/prometheus/pkg/pool/pool.go:SA6002 \
23-
github.com/prometheus/prometheus/promql/engine.go:SA6002 \
24-
github.com/prometheus/prometheus/prompb/rpc.pb.gw.go:SA1019
18+
github.com/prometheus/prometheus/pkg/textparse/openmetricslex.l.go:SA4006
2519

2620
DOCKER_IMAGE_NAME ?= prometheus
2721

Makefile.common

Lines changed: 25 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ GO ?= go
2929
GOFMT ?= $(GO)fmt
3030
FIRST_GOPATH := $(firstword $(subst :, ,$(shell $(GO) env GOPATH)))
3131
GOOPTS ?=
32+
GOHOSTOS ?= $(shell $(GO) env GOHOSTOS)
33+
GOHOSTARCH ?= $(shell $(GO) env GOHOSTARCH)
3234

3335
GO_VERSION ?= $(shell $(GO) version)
3436
GO_VERSION_NUMBER ?= $(word 3, $(GO_VERSION))
@@ -66,17 +68,30 @@ endif
6668
STATICCHECK := $(FIRST_GOPATH)/bin/staticcheck
6769
pkgs = ./...
6870

69-
GO_VERSION ?= $(shell $(GO) version)
70-
GO_BUILD_PLATFORM ?= $(subst /,-,$(lastword $(GO_VERSION)))
71+
ifeq (arm, $(GOHOSTARCH))
72+
GOHOSTARM ?= $(shell GOARM= $(GO) env GOARM)
73+
GO_BUILD_PLATFORM ?= $(GOHOSTOS)-$(GOHOSTARCH)v$(GOHOSTARM)
74+
else
75+
GO_BUILD_PLATFORM ?= $(GOHOSTOS)-$(GOHOSTARCH)
76+
endif
7177

7278
PROMU_VERSION ?= 0.2.0
7379
PROMU_URL := https://github.com/prometheus/promu/releases/download/v$(PROMU_VERSION)/promu-$(PROMU_VERSION).$(GO_BUILD_PLATFORM).tar.gz
80+
STATICCHECK_VERSION ?= 2019.1
81+
STATICCHECK_URL := https://github.com/dominikh/go-tools/releases/download/$(STATICCHECK_VERSION)/staticcheck_$(GOHOSTOS)_$(GOHOSTARCH)
7482

7583
PREFIX ?= $(shell pwd)
7684
BIN_DIR ?= $(shell pwd)
7785
DOCKER_IMAGE_TAG ?= $(subst /,-,$(shell git rev-parse --abbrev-ref HEAD))
7886
DOCKER_REPO ?= prom
7987

88+
ifeq ($(GOHOSTARCH),amd64)
89+
ifeq ($(GOHOSTOS),$(filter $(GOHOSTOS),linux freebsd darwin windows))
90+
# Only supported on amd64
91+
test-flags := -race
92+
endif
93+
endif
94+
8095
.PHONY: all
8196
all: precheck style staticcheck unused build test
8297

@@ -114,7 +129,7 @@ common-test-short:
114129
.PHONY: common-test
115130
common-test:
116131
@echo ">> running all tests"
117-
GO111MODULE=$(GO111MODULE) $(GO) test -race $(GOOPTS) $(pkgs)
132+
GO111MODULE=$(GO111MODULE) $(GO) test $(test-flags) $(GOOPTS) $(pkgs)
118133

119134
.PHONY: common-format
120135
common-format:
@@ -129,8 +144,12 @@ common-vet:
129144
.PHONY: common-staticcheck
130145
common-staticcheck: $(STATICCHECK)
131146
@echo ">> running staticcheck"
147+
chmod +x $(STATICCHECK)
132148
ifdef GO111MODULE
133-
GO111MODULE=$(GO111MODULE) $(STATICCHECK) -ignore "$(STATICCHECK_IGNORE)" -checks "SA*" $(pkgs)
149+
# 'go list' needs to be executed before staticcheck to prepopulate the modules cache.
150+
# Otherwise staticcheck might fail randomly for some reason not yet explained.
151+
GO111MODULE=$(GO111MODULE) $(GO) list -e -compiled -test=true -export=false -deps=true -find=false -tags= -- ./... > /dev/null
152+
GO111MODULE=$(GO111MODULE) $(STATICCHECK) -ignore "$(STATICCHECK_IGNORE)" $(pkgs)
134153
else
135154
$(STATICCHECK) -ignore "$(STATICCHECK_IGNORE)" $(pkgs)
136155
endif
@@ -196,21 +215,9 @@ proto:
196215
@echo ">> generating code from proto files"
197216
@./scripts/genproto.sh
198217

199-
.PHONY: $(STATICCHECK)
200218
$(STATICCHECK):
201-
ifdef GO111MODULE
202-
# Get staticcheck from a temporary directory to avoid modifying the local go.{mod,sum}.
203-
# See https://github.com/golang/go/issues/27643.
204-
# For now, we are using the next branch of staticcheck because master isn't compatible yet with Go modules.
205-
tmpModule=$$(mktemp -d 2>&1) && \
206-
mkdir -p $${tmpModule}/staticcheck && \
207-
cd "$${tmpModule}"/staticcheck && \
208-
GO111MODULE=on $(GO) mod init example.com/staticcheck && \
209-
GO111MODULE=on GOOS= GOARCH= $(GO) get -u honnef.co/go/tools/cmd/staticcheck@next && \
210-
rm -rf $${tmpModule};
211-
else
212-
GOOS= GOARCH= GO111MODULE=off $(GO) get -u honnef.co/go/tools/cmd/staticcheck
213-
endif
219+
mkdir -p $(FIRST_GOPATH)/bin
220+
curl -s -L $(STATICCHECK_URL) > $(STATICCHECK)
214221

215222
ifdef GOVENDOR
216223
.PHONY: $(GOVENDOR)

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
# Prometheus [![Build Status](https://travis-ci.org/prometheus/prometheus.svg)][travis]
1+
# Prometheus
22

3+
[![Build Status](https://travis-ci.org/prometheus/prometheus.svg)][travis]
34
[![CircleCI](https://circleci.com/gh/prometheus/prometheus/tree/master.svg?style=shield)][circleci]
45
[![Docker Repository on Quay](https://quay.io/repository/prometheus/prometheus/status)][quay]
56
[![Docker Pulls](https://img.shields.io/docker/pulls/prom/prometheus.svg?maxAge=604800)][hub]

RELEASE.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,28 @@
11
# Releases
22

3-
This page describes the release process and the currently planned schedule for upcoming releases as well as the respective release schepherds. Release shepards are chosen on a voluntary basis.
3+
This page describes the release process and the currently planned schedule for upcoming releases as well as the respective release shepherd. Release shepherd are chosen on a voluntary basis.
44

55
## Release schedule
66

77
Release cadence of first pre-releases being cut is 6 weeks.
88

9-
| release series | date of first pre-release (year-month-day) | release shepard |
9+
| release series | date of first pre-release (year-month-day) | release shepherd |
1010
|----------------|--------------------------------------------|---------------------------------------------|
1111
| v2.4 | 2018-09-06 | Goutham Veeramachaneni (GitHub: @gouthamve) |
1212
| v2.5 | 2018-10-24 | Frederic Branczyk (GitHub: @brancz) |
1313
| v2.6 | 2018-12-05 | Simon Pasquier (GitHub: @simonpasquier) |
14-
| v2.7 | 2019-01-16 | **searching for volunteer** |
14+
| v2.7 | 2019-01-16 | Goutham Veeramachaneni (GitHub: @gouthamve) |
15+
| v2.8 | 2019-02-27 | **searching for volunteer** |
16+
| v2.9 | 2019-04-10 | **searching for volunteer** |
1517

1618
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.
1719

18-
## Release shepard responsibilities
20+
## Release shepherd responsibilities
1921

20-
The release shepard is responsible for the entire release series of a minor release, meaning all pre- and patch releases of a minor release. The process starts with the initial pre-release.
22+
The release shepherd is responsible for the entire release series of a minor release, meaning all pre- and patch releases of a minor release. The process starts with the initial pre-release.
2123

2224
* The first pre-release is scheduled according to the above schedule.
23-
* With the pre-release the release shepard is responsible for running and monitoring a benchmark run of the pre-release for 3 days, after which, if successful, the pre-release is promoted to a stable release.
25+
* With the pre-release the release shepherd is responsible for running and monitoring a benchmark run of the pre-release for 3 days, after which, if successful, the pre-release is promoted to a stable release.
2426
* Once a pre-release has been released, the `master` branch of the repository is frozen for any feature work, only critical bug fix work concerning the minor release is merged.
2527
* Pre-releases are done from `master`, after pre-releases are promoted to the stable release a `release-major.minor` branch is created.
2628

@@ -36,7 +38,7 @@ We use [Semantic Versioning](http://semver.org/).
3638

3739
We maintain a separate branch for each minor release, named `release-<major>.<minor>`, e.g. `release-1.1`, `release-2.0`.
3840

39-
The usual flow is to merge new features and changes into the master branch and to merge bug fixes into the latest release branch. Bug fixes are then merged into master from the latest release branch. The master branch should always contain all commits from the latest release branch. Whether merging master back into a release branch makes more sense is left up to the shepard's judgement.
41+
The usual flow is to merge new features and changes into the master branch and to merge bug fixes into the latest release branch. Bug fixes are then merged into master from the latest release branch. The master branch should always contain all commits from the latest release branch. Whether merging master back into a release branch makes more sense is left up to the shepherd's judgement.
4042

4143
If a bug fix got accidentally merged into master, cherry-pick commits have to be created in the latest release branch, which then have to be merged back into master. Try to avoid that situation.
4244

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.6.0
1+
2.7.1

0 commit comments

Comments
 (0)