View | Details | Raw Unified | Return to bug 246791 | Differences between
and this patch

Collapse All | Expand All

(-)sysutils/node_exporter/Makefile (-7 / +3 lines)
Lines 2-12 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	node_exporter
4
PORTNAME=	node_exporter
5
PORTVERSION=	0.18.1
5
PORTVERSION=	1.0.0
6
DISTVERSIONPREFIX=v
6
DISTVERSIONPREFIX=v
7
CATEGORIES=	sysutils
7
CATEGORIES=	sysutils
8
8
9
MAINTAINER=	ports@ecadlabs.com
9
MAINTAINER=	dor.bsd@xm0.uk
10
COMMENT=	Prometheus exporter for machine metrics
10
COMMENT=	Prometheus exporter for machine metrics
11
11
12
LICENSE=	APACHE20
12
LICENSE=	APACHE20
Lines 40-46 Link Here
40
		${LD_FLAG_X_PREFIX}.BuildUser=${BUILD_USER}
40
		${LD_FLAG_X_PREFIX}.BuildUser=${BUILD_USER}
41
GO_BUILDFLAGS=	-v -ldflags "${LD_FLAG_STRING}"
41
GO_BUILDFLAGS=	-v -ldflags "${LD_FLAG_STRING}"
42
42
43
OPTIONS_DEFINE=	DOCS EXAMPLES
43
OPTIONS_DEFINE=	DOCS
44
44
45
post-install-DOCS-on:
45
post-install-DOCS-on:
46
	${MKDIR} ${STAGEDIR}${DOCSDIR}
46
	${MKDIR} ${STAGEDIR}${DOCSDIR}
Lines 48-57 Link Here
48
		${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
48
		${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
49
	${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
49
	${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
50
50
51
post-install-EXAMPLES-on:
52
	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/text_collector_examples
53
	cd ${WRKSRC} && ${COPYTREE_SHARE} ./text_collector_examples ${STAGEDIR}${EXAMPLESDIR}
54
55
# TestFileDescriptorLeak is being skipped at the moment because procfs(5) is
51
# TestFileDescriptorLeak is being skipped at the moment because procfs(5) is
56
# not properly detected.
52
# not properly detected.
57
pre-test:
53
pre-test:
(-)sysutils/node_exporter/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1560802738
1
TIMESTAMP = 1590769126
2
SHA256 (prometheus-node_exporter-v0.18.1_GH0.tar.gz) = 9ddf187c462f2681ab4516410ada0e6f0f03097db6986686795559ea71a07694
2
SHA256 (prometheus-node_exporter-v1.0.0_GH0.tar.gz) = 2d82dac251e789b75879ebf1ebe94d1dc15c59ffa28ffe4e15b8d2ff63190607
3
SIZE (prometheus-node_exporter-v0.18.1_GH0.tar.gz) = 2110072
3
SIZE (prometheus-node_exporter-v1.0.0_GH0.tar.gz) = 2779482
(-)sysutils/node_exporter/files/node_exporter.in (-1 / +1 lines)
Lines 38-44 Link Here
38
pidfile=/var/run/node_exporter.pid
38
pidfile=/var/run/node_exporter.pid
39
command="/usr/sbin/daemon"
39
command="/usr/sbin/daemon"
40
procname="%%PREFIX%%/bin/node_exporter"
40
procname="%%PREFIX%%/bin/node_exporter"
41
command_args="-p ${pidfile} -T ${name} \
41
command_args="-f -p ${pidfile} -T ${name} \
42
    /usr/bin/env ${procname} \
42
    /usr/bin/env ${procname} \
43
    --web.listen-address=${node_exporter_listen_address} \
43
    --web.listen-address=${node_exporter_listen_address} \
44
    --collector.textfile.directory=${node_exporter_textfile_dir} \
44
    --collector.textfile.directory=${node_exporter_textfile_dir} \
(-)sysutils/node_exporter/pkg-message (-1 / +23 lines)
Lines 1-6 Link Here
1
[
1
[
2
{ type: install
2
{
3
  type: upgrade
3
  message: <<EOM
4
  message: <<EOM
5
Text collector examples have been moved to a new repository at
6
https://github.com/prometheus-community/node-exporter-textfile-collector-scripts.
7
8
The netdev collector CLI argument `--collector.netdev.ignored-devices` was
9
renamed to `--collector.netdev.device-blacklist`.
10
11
Additional label `mountaddr` added to NFS device metrics to distinguish mounts
12
from the same URL, but different IP addresses.
13
14
Metrics `node_cpu_scaling_frequency_min_hrts` and
15
`node_cpu_scaling_frequency_max_hrts` of the cpufreq collector were renamed to
16
`node_cpu_scaling_frequency_min_hertz` and
17
`node_cpu_scaling_frequency_max_hertz`.
18
19
Collectors that are enabled, but are unable to find data to collect, now return
20
`0` for `node_scrape_collector_success`.
21
EOM
22
}
23
{
24
  type: install
25
  message: <<EOM
4
If upgrading from a version of node_exporter <0.15.0 you'll need to update any
26
If upgrading from a version of node_exporter <0.15.0 you'll need to update any
5
custom command line flags that you may have set as it now requires a
27
custom command line flags that you may have set as it now requires a
6
double-dash (--flag) instead of a single dash (-flag).
28
double-dash (--flag) instead of a single dash (-flag).
(-)sysutils/node_exporter/pkg-plist (-17 / +13 lines)
Lines 6-25 Link Here
6
%%PORTDOCS%%%%DOCSDIR%%/example-16-compatibility-rules.yml
6
%%PORTDOCS%%%%DOCSDIR%%/example-16-compatibility-rules.yml
7
%%PORTDOCS%%%%DOCSDIR%%/example-17-compatibility-rules-new-to-old.yml
7
%%PORTDOCS%%%%DOCSDIR%%/example-17-compatibility-rules-new-to-old.yml
8
%%PORTDOCS%%%%DOCSDIR%%/example-17-compatibility-rules.yml
8
%%PORTDOCS%%%%DOCSDIR%%/example-17-compatibility-rules.yml
9
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/text_collector_examples/README.md
9
%%PORTDOCS%%%%DOCSDIR%%/node-mixin/Makefile
10
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/text_collector_examples/apt.sh
10
%%PORTDOCS%%%%DOCSDIR%%/node-mixin/README.md
11
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/text_collector_examples/btrfs_stats.py
11
%%PORTDOCS%%%%DOCSDIR%%/node-mixin/alerts.jsonnet
12
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/text_collector_examples/deleted_libraries.py
12
%%PORTDOCS%%%%DOCSDIR%%/node-mixin/alerts/alerts.libsonnet
13
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/text_collector_examples/directory-size.sh
13
%%PORTDOCS%%%%DOCSDIR%%/node-mixin/config.libsonnet
14
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/text_collector_examples/inotify-instances
14
%%PORTDOCS%%%%DOCSDIR%%/node-mixin/dashboards.jsonnet
15
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/text_collector_examples/ipmitool
15
%%PORTDOCS%%%%DOCSDIR%%/node-mixin/dashboards/dashboards.libsonnet
16
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/text_collector_examples/md_info.sh
16
%%PORTDOCS%%%%DOCSDIR%%/node-mixin/dashboards/node.libsonnet
17
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/text_collector_examples/md_info_detail.sh
17
%%PORTDOCS%%%%DOCSDIR%%/node-mixin/dashboards/use.libsonnet
18
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/text_collector_examples/mellanox_hca_temp
18
%%PORTDOCS%%%%DOCSDIR%%/node-mixin/jsonnetfile.json
19
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/text_collector_examples/ntpd_metrics.py
19
%%PORTDOCS%%%%DOCSDIR%%/node-mixin/mixin.libsonnet
20
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/text_collector_examples/nvme_metrics.sh
20
%%PORTDOCS%%%%DOCSDIR%%/node-mixin/rules.jsonnet
21
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/text_collector_examples/pacman.sh
21
%%PORTDOCS%%%%DOCSDIR%%/node-mixin/rules/rules.libsonnet
22
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/text_collector_examples/smartmon.py
23
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/text_collector_examples/smartmon.sh
24
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/text_collector_examples/storcli.py
25
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/text_collector_examples/yum.sh

Return to bug 246791