New Upstream Release - golang-github-victoriametrics-metrics
Ready changes
Summary
Merged new upstream version: 1.23.1+ds1 (was: 1.23.0+ds1).
Resulting package
Built on 2023-04-27T02:10 (took 7m33s)
The resulting binary packages can be installed (if you have the apt repository enabled) by running one of:
apt install -t fresh-releases golang-github-victoriametrics-metrics-dev
Lintian Result
Diff
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index d8d8d12..39fbee3 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -10,7 +10,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v1
with:
- go-version: 1.13
+ go-version: 1.15
id: go
- name: Code checkout
uses: actions/checkout@v1
diff --git a/debian/changelog b/debian/changelog
index c69bfcf..e92fa8b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+golang-github-victoriametrics-metrics (1.23.1+ds1-1) UNRELEASED; urgency=low
+
+ * New upstream release.
+
+ -- Debian Janitor <janitor@jelmer.uk> Thu, 27 Apr 2023 02:03:49 -0000
+
golang-github-victoriametrics-metrics (1.23.0+ds1-1) unstable; urgency=medium
* New upstream release.
diff --git a/process_metrics_linux.go b/process_metrics_linux.go
index 005af82..48def1c 100644
--- a/process_metrics_linux.go
+++ b/process_metrics_linux.go
@@ -9,6 +9,7 @@ import (
"os"
"strconv"
"strings"
+ "sync/atomic"
"time"
)
@@ -48,6 +49,7 @@ func writeProcessMetrics(w io.Writer) {
log.Printf("ERROR: metrics: cannot open %s: %s", statFilepath, err)
return
}
+
// Search for the end of command.
n := bytes.LastIndex(data, []byte(") "))
if n < 0 {
@@ -85,12 +87,20 @@ func writeProcessMetrics(w io.Writer) {
writeIOMetrics(w)
}
+var procSelfIOErrLogged uint32
+
func writeIOMetrics(w io.Writer) {
ioFilepath := "/proc/self/io"
data, err := ioutil.ReadFile(ioFilepath)
if err != nil {
- log.Printf("ERROR: metrics: cannot open %q: %s", ioFilepath, err)
+ // Do not spam the logs with errors - this error cannot be fixed without process restart.
+ // See https://github.com/VictoriaMetrics/metrics/issues/42
+ if atomic.CompareAndSwapUint32(&procSelfIOErrLogged, 0, 1) {
+ log.Printf("ERROR: metrics: cannot read process_io_* metrics from %q, so these metrics won't be updated until the error is fixed; "+
+ "see https://github.com/VictoriaMetrics/metrics/issues/42 ; The error: %s", ioFilepath, err)
+ }
}
+
getInt := func(s string) int64 {
n := strings.IndexByte(s, ' ')
if n < 0 {
Debdiff
File lists identical (after any substitutions)
No differences were encountered in the control files