Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Jun 2020 16:05:58 +0000 (UTC)
From:      Mikael Urankar <mikael@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r539427 - in head/sysutils/node_exporter: . files
Message-ID:  <202006171605.05HG5w8i082216@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mikael
Date: Wed Jun 17 16:05:57 2020
New Revision: 539427
URL: https://svnweb.freebsd.org/changeset/ports/539427

Log:
  sysutils/node_exporter: update to 1.0.1
  
  In addition to the 1.0.0 changes, this release fixes:
      [BUGFIX] filesystem_freebsd: Fix label values
      [BUGFIX] Update prometheus/procfs to fix log noise
      [BUGFIX] Fix build tags for collectors
      [BUGFIX] Handle no data from powersupplyclass
  
  For a full changelog, see https://github.com/prometheus/node_exporter/blob/master/CHANGELOG.md
  
  PR:		246791
  Submitted by:	David O'Rourke (maintainer)

Modified:
  head/sysutils/node_exporter/Makefile
  head/sysutils/node_exporter/distinfo
  head/sysutils/node_exporter/files/node_exporter.in
  head/sysutils/node_exporter/pkg-message
  head/sysutils/node_exporter/pkg-plist

Modified: head/sysutils/node_exporter/Makefile
==============================================================================
--- head/sysutils/node_exporter/Makefile	Wed Jun 17 15:56:21 2020	(r539426)
+++ head/sysutils/node_exporter/Makefile	Wed Jun 17 16:05:57 2020	(r539427)
@@ -2,11 +2,11 @@
 # $FreeBSD$
 
 PORTNAME=	node_exporter
-PORTVERSION=	0.18.1
+PORTVERSION=	1.0.1
 DISTVERSIONPREFIX=v
 CATEGORIES=	sysutils
 
-MAINTAINER=	ports@ecadlabs.com
+MAINTAINER=	dor.bsd@xm0.uk
 COMMENT=	Prometheus exporter for machine metrics
 
 LICENSE=	APACHE20
@@ -40,17 +40,13 @@ LD_FLAG_STRING=	-s \
 		${LD_FLAG_X_PREFIX}.BuildUser=${BUILD_USER}
 GO_BUILDFLAGS=	-v -ldflags "${LD_FLAG_STRING}"
 
-OPTIONS_DEFINE=	DOCS EXAMPLES
+OPTIONS_DEFINE=	DOCS
 
 post-install-DOCS-on:
 	${MKDIR} ${STAGEDIR}${DOCSDIR}
 	cd ${WRKSRC}/docs && \
 		${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
 	${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
-
-post-install-EXAMPLES-on:
-	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/text_collector_examples
-	cd ${WRKSRC} && ${COPYTREE_SHARE} ./text_collector_examples ${STAGEDIR}${EXAMPLESDIR}
 
 # TestFileDescriptorLeak is being skipped at the moment because procfs(5) is
 # not properly detected.

Modified: head/sysutils/node_exporter/distinfo
==============================================================================
--- head/sysutils/node_exporter/distinfo	Wed Jun 17 15:56:21 2020	(r539426)
+++ head/sysutils/node_exporter/distinfo	Wed Jun 17 16:05:57 2020	(r539427)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1560802738
-SHA256 (prometheus-node_exporter-v0.18.1_GH0.tar.gz) = 9ddf187c462f2681ab4516410ada0e6f0f03097db6986686795559ea71a07694
-SIZE (prometheus-node_exporter-v0.18.1_GH0.tar.gz) = 2110072
+TIMESTAMP = 1592327241
+SHA256 (prometheus-node_exporter-v1.0.1_GH0.tar.gz) = a841bf3e236376840be9e1d8e6c4a38196be6f3957b0982d1c7970a5e416b0ad
+SIZE (prometheus-node_exporter-v1.0.1_GH0.tar.gz) = 2792033

Modified: head/sysutils/node_exporter/files/node_exporter.in
==============================================================================
--- head/sysutils/node_exporter/files/node_exporter.in	Wed Jun 17 15:56:21 2020	(r539426)
+++ head/sysutils/node_exporter/files/node_exporter.in	Wed Jun 17 16:05:57 2020	(r539427)
@@ -38,7 +38,7 @@ load_rc_config $name
 pidfile=/var/run/node_exporter.pid
 command="/usr/sbin/daemon"
 procname="%%PREFIX%%/bin/node_exporter"
-command_args="-p ${pidfile} -T ${name} \
+command_args="-f -p ${pidfile} -T ${name} \
     /usr/bin/env ${procname} \
     --web.listen-address=${node_exporter_listen_address} \
     --collector.textfile.directory=${node_exporter_textfile_dir} \

Modified: head/sysutils/node_exporter/pkg-message
==============================================================================
--- head/sysutils/node_exporter/pkg-message	Wed Jun 17 15:56:21 2020	(r539426)
+++ head/sysutils/node_exporter/pkg-message	Wed Jun 17 16:05:57 2020	(r539427)
@@ -1,5 +1,27 @@
 [
-{ type: install
+{
+  type: upgrade
+  message: <<EOM
+Text collector examples have been moved to a new repository at
+https://github.com/prometheus-community/node-exporter-textfile-collector-scripts.
+
+The netdev collector CLI argument `--collector.netdev.ignored-devices` was
+renamed to `--collector.netdev.device-blacklist`.
+
+Additional label `mountaddr` added to NFS device metrics to distinguish mounts
+from the same URL, but different IP addresses.
+
+Metrics `node_cpu_scaling_frequency_min_hrts` and
+`node_cpu_scaling_frequency_max_hrts` of the cpufreq collector were renamed to
+`node_cpu_scaling_frequency_min_hertz` and
+`node_cpu_scaling_frequency_max_hertz`.
+
+Collectors that are enabled, but are unable to find data to collect, now return
+`0` for `node_scrape_collector_success`.
+EOM
+}
+{
+  type: install
   message: <<EOM
 If upgrading from a version of node_exporter <0.15.0 you'll need to update any
 custom command line flags that you may have set as it now requires a

Modified: head/sysutils/node_exporter/pkg-plist
==============================================================================
--- head/sysutils/node_exporter/pkg-plist	Wed Jun 17 15:56:21 2020	(r539426)
+++ head/sysutils/node_exporter/pkg-plist	Wed Jun 17 16:05:57 2020	(r539427)
@@ -6,20 +6,16 @@ bin/node_exporter
 %%PORTDOCS%%%%DOCSDIR%%/example-16-compatibility-rules.yml
 %%PORTDOCS%%%%DOCSDIR%%/example-17-compatibility-rules-new-to-old.yml
 %%PORTDOCS%%%%DOCSDIR%%/example-17-compatibility-rules.yml
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/text_collector_examples/README.md
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/text_collector_examples/apt.sh
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/text_collector_examples/btrfs_stats.py
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/text_collector_examples/deleted_libraries.py
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/text_collector_examples/directory-size.sh
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/text_collector_examples/inotify-instances
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/text_collector_examples/ipmitool
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/text_collector_examples/md_info.sh
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/text_collector_examples/md_info_detail.sh
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/text_collector_examples/mellanox_hca_temp
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/text_collector_examples/ntpd_metrics.py
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/text_collector_examples/nvme_metrics.sh
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/text_collector_examples/pacman.sh
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/text_collector_examples/smartmon.py
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/text_collector_examples/smartmon.sh
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/text_collector_examples/storcli.py
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/text_collector_examples/yum.sh
+%%PORTDOCS%%%%DOCSDIR%%/node-mixin/Makefile
+%%PORTDOCS%%%%DOCSDIR%%/node-mixin/README.md
+%%PORTDOCS%%%%DOCSDIR%%/node-mixin/alerts.jsonnet
+%%PORTDOCS%%%%DOCSDIR%%/node-mixin/alerts/alerts.libsonnet
+%%PORTDOCS%%%%DOCSDIR%%/node-mixin/config.libsonnet
+%%PORTDOCS%%%%DOCSDIR%%/node-mixin/dashboards.jsonnet
+%%PORTDOCS%%%%DOCSDIR%%/node-mixin/dashboards/dashboards.libsonnet
+%%PORTDOCS%%%%DOCSDIR%%/node-mixin/dashboards/node.libsonnet
+%%PORTDOCS%%%%DOCSDIR%%/node-mixin/dashboards/use.libsonnet
+%%PORTDOCS%%%%DOCSDIR%%/node-mixin/jsonnetfile.json
+%%PORTDOCS%%%%DOCSDIR%%/node-mixin/mixin.libsonnet
+%%PORTDOCS%%%%DOCSDIR%%/node-mixin/rules.jsonnet
+%%PORTDOCS%%%%DOCSDIR%%/node-mixin/rules/rules.libsonnet



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202006171605.05HG5w8i082216>