From eeacbaf0b6790912549efae05d010ab9d22783f1 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Thu, 8 Dec 2022 16:41:22 -0800 Subject: [PATCH] all: update Go builder from v1.19.3 to v1.19.4 See https://github.com/golang/go/issues?q=milestone%3AGo1.19.4+label%3ACherryPickApproved --- .github/workflows/check-licenses.yml | 2 +- .github/workflows/main.yml | 2 +- README.md | 6 +++--- app/vmagent/README.md | 4 ++-- app/vmalert/README.md | 4 ++-- app/vmauth/README.md | 2 +- app/vmbackup/README.md | 2 +- app/vmctl/README.md | 4 ++-- app/vmrestore/README.md | 2 +- app/vmui/Dockerfile-web | 2 +- deployment/docker/Makefile | 2 +- docs/README.md | 6 +++--- docs/Single-server-VictoriaMetrics.md | 6 +++--- docs/vmagent.md | 13 +++++++------ docs/vmalert.md | 4 ++-- docs/vmauth.md | 2 +- docs/vmbackup.md | 2 +- docs/vmctl.md | 4 ++-- docs/vmrestore.md | 2 +- snap/local/Makefile | 2 +- 20 files changed, 37 insertions(+), 36 deletions(-) diff --git a/.github/workflows/check-licenses.yml b/.github/workflows/check-licenses.yml index b66b466e9c..304df12971 100644 --- a/.github/workflows/check-licenses.yml +++ b/.github/workflows/check-licenses.yml @@ -17,7 +17,7 @@ jobs: - name: Setup Go uses: actions/setup-go@main with: - go-version: 1.19.3 + go-version: 1.19.4 id: go - name: Code checkout uses: actions/checkout@master diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c16f86d321..79cbd5a915 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -19,7 +19,7 @@ jobs: - name: Setup Go uses: actions/setup-go@main with: - go-version: 1.19.3 + go-version: 1.19.4 id: go - name: Code checkout uses: actions/checkout@master diff --git a/README.md b/README.md index ed6f9caff5..d411f9d01e 100644 --- a/README.md +++ b/README.md @@ -787,7 +787,7 @@ to your needs or when testing bugfixes. ### Development build -1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19.3. +1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19. 2. Run `make victoria-metrics` from the root folder of [the repository](https://github.com/VictoriaMetrics/VictoriaMetrics). It builds `victoria-metrics` binary and puts it into the `bin` folder. @@ -803,7 +803,7 @@ ARM build may run on Raspberry Pi or on [energy-efficient ARM servers](https://b ### Development ARM build -1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19.3. +1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19. 2. Run `make victoria-metrics-linux-arm` or `make victoria-metrics-linux-arm64` from the root folder of [the repository](https://github.com/VictoriaMetrics/VictoriaMetrics). It builds `victoria-metrics-linux-arm` or `victoria-metrics-linux-arm64` binary respectively and puts it into the `bin` folder. @@ -817,7 +817,7 @@ ARM build may run on Raspberry Pi or on [energy-efficient ARM servers](https://b `Pure Go` mode builds only Go code without [cgo](https://golang.org/cmd/cgo/) dependencies. -1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19.3. +1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19. 2. Run `make victoria-metrics-pure` from the root folder of [the repository](https://github.com/VictoriaMetrics/VictoriaMetrics). It builds `victoria-metrics-pure` binary and puts it into the `bin` folder. diff --git a/app/vmagent/README.md b/app/vmagent/README.md index 1f5f4f6810..2fc8fb3ca9 100644 --- a/app/vmagent/README.md +++ b/app/vmagent/README.md @@ -1032,7 +1032,7 @@ It may be needed to build `vmagent` from source code when developing or testing ### Development build -1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19.3. +1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19. 2. Run `make vmagent` from the root folder of [the repository](https://github.com/VictoriaMetrics/VictoriaMetrics). It builds the `vmagent` binary and puts it into the `bin` folder. @@ -1061,7 +1061,7 @@ ARM build may run on Raspberry Pi or on [energy-efficient ARM servers](https://b ### Development ARM build -1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19.3. +1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19. 2. Run `make vmagent-linux-arm` or `make vmagent-linux-arm64` from the root folder of [the repository](https://github.com/VictoriaMetrics/VictoriaMetrics) It builds `vmagent-linux-arm` or `vmagent-linux-arm64` binary respectively and puts it into the `bin` folder. diff --git a/app/vmalert/README.md b/app/vmalert/README.md index 266924ba8e..d5a49ac21d 100644 --- a/app/vmalert/README.md +++ b/app/vmalert/README.md @@ -1317,7 +1317,7 @@ spec: ### Development build -1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19.3. +1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19. 2. Run `make vmalert` from the root folder of [the repository](https://github.com/VictoriaMetrics/VictoriaMetrics). It builds `vmalert` binary and puts it into the `bin` folder. @@ -1333,7 +1333,7 @@ ARM build may run on Raspberry Pi or on [energy-efficient ARM servers](https://b ### Development ARM build -1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19.3. +1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19. 2. Run `make vmalert-linux-arm` or `make vmalert-linux-arm64` from the root folder of [the repository](https://github.com/VictoriaMetrics/VictoriaMetrics). It builds `vmalert-linux-arm` or `vmalert-linux-arm64` binary respectively and puts it into the `bin` folder. diff --git a/app/vmauth/README.md b/app/vmauth/README.md index 89e102430e..426dd1dffb 100644 --- a/app/vmauth/README.md +++ b/app/vmauth/README.md @@ -167,7 +167,7 @@ It is recommended using [binary releases](https://github.com/VictoriaMetrics/Vic ### Development build -1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19.3. +1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19. 2. Run `make vmauth` from the root folder of [the repository](https://github.com/VictoriaMetrics/VictoriaMetrics). It builds `vmauth` binary and puts it into the `bin` folder. diff --git a/app/vmbackup/README.md b/app/vmbackup/README.md index cfb2f96c10..7b3b4d56fb 100644 --- a/app/vmbackup/README.md +++ b/app/vmbackup/README.md @@ -286,7 +286,7 @@ It is recommended using [binary releases](https://github.com/VictoriaMetrics/Vic ### Development build -1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19.3. +1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19. 2. Run `make vmbackup` from the root folder of [the repository](https://github.com/VictoriaMetrics/VictoriaMetrics). It builds `vmbackup` binary and puts it into the `bin` folder. diff --git a/app/vmctl/README.md b/app/vmctl/README.md index 38be9a1c72..49275898a7 100644 --- a/app/vmctl/README.md +++ b/app/vmctl/README.md @@ -1017,7 +1017,7 @@ It is recommended using [binary releases](https://github.com/VictoriaMetrics/Vic ### Development build -1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19.3. +1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19. 2. Run `make vmctl` from the root folder of [the repository](https://github.com/VictoriaMetrics/VictoriaMetrics). It builds `vmctl` binary and puts it into the `bin` folder. @@ -1046,7 +1046,7 @@ ARM build may run on Raspberry Pi or on [energy-efficient ARM servers](https://b #### Development ARM build -1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19.3. +1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19. 2. Run `make vmctl-linux-arm` or `make vmctl-linux-arm64` from the root folder of [the repository](https://github.com/VictoriaMetrics/VictoriaMetrics). It builds `vmctl-linux-arm` or `vmctl-linux-arm64` binary respectively and puts it into the `bin` folder. diff --git a/app/vmrestore/README.md b/app/vmrestore/README.md index 960775d3f8..45cf532092 100644 --- a/app/vmrestore/README.md +++ b/app/vmrestore/README.md @@ -186,7 +186,7 @@ It is recommended using [binary releases](https://github.com/VictoriaMetrics/Vic ### Development build -1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19.3. +1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19. 2. Run `make vmrestore` from the root folder of [the repository](https://github.com/VictoriaMetrics/VictoriaMetrics). It builds `vmrestore` binary and puts it into the `bin` folder. diff --git a/app/vmui/Dockerfile-web b/app/vmui/Dockerfile-web index c29bf28ea0..af99bed687 100644 --- a/app/vmui/Dockerfile-web +++ b/app/vmui/Dockerfile-web @@ -1,4 +1,4 @@ -FROM golang:1.19.3 as build-web-stage +FROM golang:1.19.4 as build-web-stage COPY build /build WORKDIR /build diff --git a/deployment/docker/Makefile b/deployment/docker/Makefile index 80e6bd7d88..676f3186e0 100644 --- a/deployment/docker/Makefile +++ b/deployment/docker/Makefile @@ -4,7 +4,7 @@ DOCKER_NAMESPACE := victoriametrics ROOT_IMAGE ?= alpine:3.17.0 CERTS_IMAGE := alpine:3.17.0 -GO_BUILDER_IMAGE := golang:1.19.3-alpine +GO_BUILDER_IMAGE := golang:1.19.4-alpine BUILDER_IMAGE := local/builder:2.0.0-$(shell echo $(GO_BUILDER_IMAGE) | tr :/ __)-1 BASE_IMAGE := local/base:1.1.3-$(shell echo $(ROOT_IMAGE) | tr :/ __)-$(shell echo $(CERTS_IMAGE) | tr :/ __) diff --git a/docs/README.md b/docs/README.md index c9d5f9ea95..04f46b3caa 100644 --- a/docs/README.md +++ b/docs/README.md @@ -788,7 +788,7 @@ to your needs or when testing bugfixes. ### Development build -1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19.3. +1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19. 2. Run `make victoria-metrics` from the root folder of [the repository](https://github.com/VictoriaMetrics/VictoriaMetrics). It builds `victoria-metrics` binary and puts it into the `bin` folder. @@ -804,7 +804,7 @@ ARM build may run on Raspberry Pi or on [energy-efficient ARM servers](https://b ### Development ARM build -1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19.3. +1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19. 2. Run `make victoria-metrics-linux-arm` or `make victoria-metrics-linux-arm64` from the root folder of [the repository](https://github.com/VictoriaMetrics/VictoriaMetrics). It builds `victoria-metrics-linux-arm` or `victoria-metrics-linux-arm64` binary respectively and puts it into the `bin` folder. @@ -818,7 +818,7 @@ ARM build may run on Raspberry Pi or on [energy-efficient ARM servers](https://b `Pure Go` mode builds only Go code without [cgo](https://golang.org/cmd/cgo/) dependencies. -1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19.3. +1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19. 2. Run `make victoria-metrics-pure` from the root folder of [the repository](https://github.com/VictoriaMetrics/VictoriaMetrics). It builds `victoria-metrics-pure` binary and puts it into the `bin` folder. diff --git a/docs/Single-server-VictoriaMetrics.md b/docs/Single-server-VictoriaMetrics.md index aff18a8497..31c20f2720 100644 --- a/docs/Single-server-VictoriaMetrics.md +++ b/docs/Single-server-VictoriaMetrics.md @@ -791,7 +791,7 @@ to your needs or when testing bugfixes. ### Development build -1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19.3. +1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19. 2. Run `make victoria-metrics` from the root folder of [the repository](https://github.com/VictoriaMetrics/VictoriaMetrics). It builds `victoria-metrics` binary and puts it into the `bin` folder. @@ -807,7 +807,7 @@ ARM build may run on Raspberry Pi or on [energy-efficient ARM servers](https://b ### Development ARM build -1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19.3. +1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19. 2. Run `make victoria-metrics-linux-arm` or `make victoria-metrics-linux-arm64` from the root folder of [the repository](https://github.com/VictoriaMetrics/VictoriaMetrics). It builds `victoria-metrics-linux-arm` or `victoria-metrics-linux-arm64` binary respectively and puts it into the `bin` folder. @@ -821,7 +821,7 @@ ARM build may run on Raspberry Pi or on [energy-efficient ARM servers](https://b `Pure Go` mode builds only Go code without [cgo](https://golang.org/cmd/cgo/) dependencies. -1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19.3. +1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19. 2. Run `make victoria-metrics-pure` from the root folder of [the repository](https://github.com/VictoriaMetrics/VictoriaMetrics). It builds `victoria-metrics-pure` binary and puts it into the `bin` folder. diff --git a/docs/vmagent.md b/docs/vmagent.md index 87318c0a0f..8d7164aa5f 100644 --- a/docs/vmagent.md +++ b/docs/vmagent.md @@ -658,8 +658,9 @@ scrape_configs: 'match[]': ['{__name__!=""}'] ``` -Note that `sample_limit` and `series_limit` [scrape_config options](https://docs.victoriametrics.com/sd_configs.html#scrape_configs) -cannot be used in stream parsing mode because the parsed data is pushed to remote storage as soon as it is parsed. +Note that `vmagent` in stream parsing mode stores up to `sample_limit` samples to the configured `-remoteStorage.url` +instead of droping all the samples read from the target, because the parsed data is sent to the remote storage +as soon as it is parsed in stream parsing mode. ## Scraping big number of targets @@ -748,8 +749,8 @@ By default `vmagent` doesn't limit the number of time series each scrape target * Via `-promscrape.seriesLimitPerTarget` command-line option. This limit is applied individually to all the scrape targets defined in the file pointed by `-promscrape.config`. -* Via `series_limit` config option at `scrape_config` section. This limit is applied individually - to all the scrape targets defined in the given `scrape_config`. +* Via `series_limit` config option at [scrape_config](https://docs.victoriametrics.com/sd_configs.html#scrape_configs) section. + This limit is applied individually to all the scrape targets defined in the given `scrape_config`. * Via `__series_limit__` label, which can be set with [relabeling](#relabeling) at `relabel_configs` section. This limit is applied to the corresponding scrape targets. Typical use case: to set the limit via [Kubernetes annotations](https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/) for targets, @@ -1035,7 +1036,7 @@ It may be needed to build `vmagent` from source code when developing or testing ### Development build -1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19.3. +1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19. 2. Run `make vmagent` from the root folder of [the repository](https://github.com/VictoriaMetrics/VictoriaMetrics). It builds the `vmagent` binary and puts it into the `bin` folder. @@ -1064,7 +1065,7 @@ ARM build may run on Raspberry Pi or on [energy-efficient ARM servers](https://b ### Development ARM build -1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19.3. +1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19. 2. Run `make vmagent-linux-arm` or `make vmagent-linux-arm64` from the root folder of [the repository](https://github.com/VictoriaMetrics/VictoriaMetrics) It builds `vmagent-linux-arm` or `vmagent-linux-arm64` binary respectively and puts it into the `bin` folder. diff --git a/docs/vmalert.md b/docs/vmalert.md index f733628575..d1c890aaf2 100644 --- a/docs/vmalert.md +++ b/docs/vmalert.md @@ -1321,7 +1321,7 @@ spec: ### Development build -1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19.3. +1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19. 2. Run `make vmalert` from the root folder of [the repository](https://github.com/VictoriaMetrics/VictoriaMetrics). It builds `vmalert` binary and puts it into the `bin` folder. @@ -1337,7 +1337,7 @@ ARM build may run on Raspberry Pi or on [energy-efficient ARM servers](https://b ### Development ARM build -1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19.3. +1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19. 2. Run `make vmalert-linux-arm` or `make vmalert-linux-arm64` from the root folder of [the repository](https://github.com/VictoriaMetrics/VictoriaMetrics). It builds `vmalert-linux-arm` or `vmalert-linux-arm64` binary respectively and puts it into the `bin` folder. diff --git a/docs/vmauth.md b/docs/vmauth.md index 4912ca6382..da633ef10d 100644 --- a/docs/vmauth.md +++ b/docs/vmauth.md @@ -171,7 +171,7 @@ It is recommended using [binary releases](https://github.com/VictoriaMetrics/Vic ### Development build -1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19.3. +1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19. 2. Run `make vmauth` from the root folder of [the repository](https://github.com/VictoriaMetrics/VictoriaMetrics). It builds `vmauth` binary and puts it into the `bin` folder. diff --git a/docs/vmbackup.md b/docs/vmbackup.md index 2caffde57c..90001a93d3 100644 --- a/docs/vmbackup.md +++ b/docs/vmbackup.md @@ -290,7 +290,7 @@ It is recommended using [binary releases](https://github.com/VictoriaMetrics/Vic ### Development build -1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19.3. +1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19. 2. Run `make vmbackup` from the root folder of [the repository](https://github.com/VictoriaMetrics/VictoriaMetrics). It builds `vmbackup` binary and puts it into the `bin` folder. diff --git a/docs/vmctl.md b/docs/vmctl.md index dbbaf6e2cd..a268d0294e 100644 --- a/docs/vmctl.md +++ b/docs/vmctl.md @@ -1021,7 +1021,7 @@ It is recommended using [binary releases](https://github.com/VictoriaMetrics/Vic ### Development build -1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19.3. +1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19. 2. Run `make vmctl` from the root folder of [the repository](https://github.com/VictoriaMetrics/VictoriaMetrics). It builds `vmctl` binary and puts it into the `bin` folder. @@ -1050,7 +1050,7 @@ ARM build may run on Raspberry Pi or on [energy-efficient ARM servers](https://b #### Development ARM build -1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19.3. +1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19. 2. Run `make vmctl-linux-arm` or `make vmctl-linux-arm64` from the root folder of [the repository](https://github.com/VictoriaMetrics/VictoriaMetrics). It builds `vmctl-linux-arm` or `vmctl-linux-arm64` binary respectively and puts it into the `bin` folder. diff --git a/docs/vmrestore.md b/docs/vmrestore.md index 23d3e98f3f..eac807e2b4 100644 --- a/docs/vmrestore.md +++ b/docs/vmrestore.md @@ -190,7 +190,7 @@ It is recommended using [binary releases](https://github.com/VictoriaMetrics/Vic ### Development build -1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19.3. +1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19. 2. Run `make vmrestore` from the root folder of [the repository](https://github.com/VictoriaMetrics/VictoriaMetrics). It builds `vmrestore` binary and puts it into the `bin` folder. diff --git a/snap/local/Makefile b/snap/local/Makefile index 41cb791a89..63182689d8 100644 --- a/snap/local/Makefile +++ b/snap/local/Makefile @@ -1,4 +1,4 @@ -GO_VERSION ?=1.19.3 +GO_VERSION ?=1.19.4 SNAP_BUILDER_IMAGE := local/snap-builder:2.0.0-$(shell echo $(GO_VERSION) | tr :/ __)