Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Dec 2025 10:30:14 +0000
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: a3a0b0e15375 - main - net-mgmt/{victoria-metrics,vmutils}: update to version 1.132.0
Message-ID:  <695106b6.2147a.2d8c6be2@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by danfe:

URL: https://cgit.FreeBSD.org/ports/commit/?id=a3a0b0e15375ebf059840f06c4181bc9c1742a5b

commit a3a0b0e15375ebf059840f06c4181bc9c1742a5b
Author:     Alexey Dokuchaev <danfe@FreeBSD.org>
AuthorDate: 2025-12-28 10:29:22 +0000
Commit:     Alexey Dokuchaev <danfe@FreeBSD.org>
CommitDate: 2025-12-28 10:29:22 +0000

    net-mgmt/{victoria-metrics,vmutils}: update to version 1.132.0
    
    Also, fix two problems with vmagent startup script:
    
    1) We shouldn't use /tmp for buffered data, since that directory is
    typically wiped upon reboot.  The argument name is a bit misleading
    (remoteWrite.tmpDataPath), but that directory is used to store a
    persistent queue, and /tmp is very much not persistent.  Default to
    /var/db/vmagent instead.
    
    2) Previously, vmagent was offloading to itself because remoteWrite.url
    in ``vmagent_args'' pointed to port 8429 which is the vmagent port,
    leading to a massive load on the machine over time.
    
    PR:             284564
    Submitted by:   Jan van der Lugt
    Reported by:    Michael Gruner
---
 net-mgmt/victoria-metrics/Makefile         | 6 +++---
 net-mgmt/victoria-metrics/distinfo         | 6 +++---
 net-mgmt/victoria-metrics/files/vmagent.in | 2 +-
 net-mgmt/victoria-metrics/pkg-plist        | 3 +++
 net-mgmt/vmutils/Makefile                  | 7 ++++++-
 net-mgmt/vmutils/pkg-plist                 | 1 +
 6 files changed, 17 insertions(+), 8 deletions(-)

diff --git a/net-mgmt/victoria-metrics/Makefile b/net-mgmt/victoria-metrics/Makefile
index 4003f1cb1cc3..ea4a811142b8 100644
--- a/net-mgmt/victoria-metrics/Makefile
+++ b/net-mgmt/victoria-metrics/Makefile
@@ -1,7 +1,7 @@
 PORTNAME?=	victoria-metrics
-PORTVERSION=	1.131.0		# don't forget to update BUILDINFO_TAG
+PORTVERSION=	1.132.0		# don't forget to update BUILDINFO_TAG
 DISTVERSIONPREFIX=	v
-PORTREVISION?=	1
+PORTREVISION?=	0
 CATEGORIES=	net-mgmt
 
 MAINTAINER=	danfe@FreeBSD.org
@@ -14,7 +14,7 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 USES=		gmake go:1.25+,no_targets
 USE_RC_SUBR?=	${PORTNAME}
 MAKE_ENV=	PKG_TAG=v${PORTVERSION} GOOS=${OPSYS:tl} \
-		BUILDINFO_TAG=tags-v${PORTVERSION}-0-g84658e7 \
+		BUILDINFO_TAG=tags-v${PORTVERSION}-0-gd04a42e \
 		DATEINFO_TAG=${_GET_DATE:sh}
 ALL_TARGET=	${PORTNAME}-pure
 
diff --git a/net-mgmt/victoria-metrics/distinfo b/net-mgmt/victoria-metrics/distinfo
index ca772c291397..ea8d33716851 100644
--- a/net-mgmt/victoria-metrics/distinfo
+++ b/net-mgmt/victoria-metrics/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1764583914
-SHA256 (VictoriaMetrics-VictoriaMetrics-v1.131.0_GH0.tar.gz) = 135c782858ae4c67570eb9ef5eb49a9c5eb3dfbcc3b80b43439989753d061151
-SIZE (VictoriaMetrics-VictoriaMetrics-v1.131.0_GH0.tar.gz) = 42635395
+TIMESTAMP = 1765540213
+SHA256 (VictoriaMetrics-VictoriaMetrics-v1.132.0_GH0.tar.gz) = 50af0c893558b886889cf61ec1d2b8188f1cba92abe132d3fc3c84408eeab0a2
+SIZE (VictoriaMetrics-VictoriaMetrics-v1.132.0_GH0.tar.gz) = 42494355
diff --git a/net-mgmt/victoria-metrics/files/vmagent.in b/net-mgmt/victoria-metrics/files/vmagent.in
index 41382a202d1d..fb055fa0e39d 100644
--- a/net-mgmt/victoria-metrics/files/vmagent.in
+++ b/net-mgmt/victoria-metrics/files/vmagent.in
@@ -14,7 +14,7 @@ daemon_pidfile="/var/run/${name}-daemon.pid"
 logdir="/var/log/${name}"
 logfile="${logdir}/vmagent.log"
 command="%%PREFIX%%/bin/vmagent"
-vmagent_args=${vmagent_args-"--remoteWrite.tmpDataPath=/tmp --promscrape.config=%%PREFIX%%/etc/prometheus/prometheus.yml --remoteWrite.url=http://127.0.0.1:8429/api/v1/write --memory.allowedPercent=80"}
+vmagent_args=${vmagent_args-"--remoteWrite.tmpDataPath=%%VMAGENT_DATA%% --promscrape.config=%%PREFIX%%/etc/prometheus/prometheus.yml --remoteWrite.url=http://127.0.0.1:8428/api/v1/write --memory.allowedPercent=80"}
 vmagent_user="%%VICTORIA_USER%%"
 load_rc_config ${name}
 
diff --git a/net-mgmt/victoria-metrics/pkg-plist b/net-mgmt/victoria-metrics/pkg-plist
index 137056623917..f8cd92af7ace 100644
--- a/net-mgmt/victoria-metrics/pkg-plist
+++ b/net-mgmt/victoria-metrics/pkg-plist
@@ -76,6 +76,8 @@ bin/victoria-metrics
 %%PORTDOCS%%%%DOCSDIR%%/anomaly-detection/vmanomaly-ui-open-config-btn.webp
 %%PORTDOCS%%%%DOCSDIR%%/anomaly-detection/vmanomaly-ui-open-config-menu.webp
 %%PORTDOCS%%%%DOCSDIR%%/anomaly-detection/vmanomaly-ui-overview.webp
+%%PORTDOCS%%%%DOCSDIR%%/anomaly-detection/vmanomaly-ui-preconfigured-datasource-1.webp
+%%PORTDOCS%%%%DOCSDIR%%/anomaly-detection/vmanomaly-ui-preconfigured-datasource-2.webp
 %%PORTDOCS%%%%DOCSDIR%%/anomaly-detection/vmanomaly-ui-sections-explore.webp
 %%PORTDOCS%%%%DOCSDIR%%/anomaly-detection/vmanomaly-ui-sections-model.webp
 %%PORTDOCS%%%%DOCSDIR%%/anomaly-detection/vmanomaly-ui-sections-plot-area-detect-mode.webp
@@ -240,6 +242,7 @@ bin/victoria-metrics
 %%PORTDOCS%%%%DOCSDIR%%/victoriametrics/integrations/perses.md
 %%PORTDOCS%%%%DOCSDIR%%/victoriametrics/integrations/prometheus.md
 %%PORTDOCS%%%%DOCSDIR%%/victoriametrics/integrations/pubsub.md
+%%PORTDOCS%%%%DOCSDIR%%/victoriametrics/integrations/zabbixconnector.md
 %%PORTDOCS%%%%DOCSDIR%%/victoriametrics/keyConcepts/_index.md
 %%PORTDOCS%%%%DOCSDIR%%/victoriametrics/keyConcepts/counter.webp
 %%PORTDOCS%%%%DOCSDIR%%/victoriametrics/keyConcepts/data_collection.webp
diff --git a/net-mgmt/vmutils/Makefile b/net-mgmt/vmutils/Makefile
index 81fa7ca916df..5de9301cb631 100644
--- a/net-mgmt/vmutils/Makefile
+++ b/net-mgmt/vmutils/Makefile
@@ -1,5 +1,4 @@
 PORTNAME=	vmutils
-PORTREVISION=	1
 
 COMMENT=	Ancillary utilities and agent for VictoriaMetrics
 
@@ -8,6 +7,11 @@ USE_RC_SUBR=	vmagent
 DESCR=		${.CURDIR}/pkg-descr
 PLIST=		${.CURDIR}/pkg-plist
 
+VMAGENT_DATA?=	/var/db/vmagent
+
+SUB_LIST+=	VMAGENT_DATA=${VMAGENT_DATA}
+PLIST_SUB+=	VMAGENT_DATA=${VMAGENT_DATA}
+
 do-install:
 .for p in agent alert auth backup ctl restore
 	${INSTALL_PROGRAM} ${WRKSRC}/bin/vm${p}-pure \
@@ -16,6 +20,7 @@ do-install:
 	@${MKDIR} ${STAGEDIR}${PREFIX}/etc/prometheus
 	${INSTALL_DATA} ${FILESDIR}/prometheus.yml.sample \
 		${STAGEDIR}${PREFIX}/etc/prometheus
+	@${MKDIR} ${STAGEDIR}${VMAGENT_DATA}
 
 do-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
diff --git a/net-mgmt/vmutils/pkg-plist b/net-mgmt/vmutils/pkg-plist
index 81ff6ce8f5cc..977884782509 100644
--- a/net-mgmt/vmutils/pkg-plist
+++ b/net-mgmt/vmutils/pkg-plist
@@ -50,3 +50,4 @@ bin/vmrestore
 %%PORTDOCS%%%%DOCSDIR%%/vmrestore.md
 %%PORTDOCS%%%%DOCSDIR%%/vmselect_flags.md
 %%PORTDOCS%%%%DOCSDIR%%/vmstorage_flags.md
+@dir(%%VICTORIA_USER%%,%%VICTORIA_GROUP%%,750) %%VMAGENT_DATA%%


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?695106b6.2147a.2d8c6be2>