freebsd-ports/sysutils/node_exporter/Makefile
David O'Rourke d48c30e408 sysutils/node_exporter: update to 1.6.1
Changes in this release are:

    [CHANGE] Fix cpustat when some cpus are offline
    [CHANGE] Remove metrics of offline CPUs in CPU collector
    [CHANGE] Deprecate ntp collector
    [CHANGE] Remove bcache cache_readaheads_totals metrics
    [CHANGE] Deprecate supervisord collector
    [FEATURE] Enable uname collector on NetBSD
    [FEATURE] NetBSD support for the meminfo collector
    [FEATURE] NetBSD support for CPU collector
    [FEATURE] Add FreeBSD collector for netisr subsystem
    [FEATURE] Add softirqs collector
    [ENHANCEMENT] Add suspended as a node_zfs_zpool_state
    [ENHANCEMENT] Add administrative state of Linux network interfaces
    [ENHANCEMENT] Log current value of GOMAXPROCS
    [ENHANCEMENT] Add profiler options for perf collector
    [ENHANCEMENT] Allow root path as metrics path
    [ENHANCEMENT] Add cpu frequency governor metrics
    [ENHANCEMENT] Add new landing page
    [ENHANCEMENT] Reduce privileges needed for btrfs device stats
    [ENHANCEMENT] Add ZFS memory_available_bytes
    [ENHANCEMENT] Use SCSI_IDENT_SERIAL as serial in diskstats
    [ENHANCEMENT] Read missing from netlink netclass attributes from sysfs
    [BUGFIX] perf: fixes for automatically detecting the correct tracefs mountpoints
    [BUGFIX] Fix thermal_zone collector noise
    [BUGFIX] Fix a problem fetching the user wire count on FreeBSD
    [BUGFIX] interrupts: Fix fields on linux aarch64
    [BUGFIX] Remove metrics of offline CPUs in CPU collector
    [BUGFIX] Fix OpenBSD filesystem collector string parsing
    [BUGFIX] Fix bad reporting of node_cpu_seconds_total in OpenBSD

A full changelog with links to issues is available at
https://github.com/prometheus/node_exporter/blob/master/CHANGELOG.md

Additionally the following actions on the port were taken:
  - Switch the port over to GO_MODULES, making maintenance of the port simpler
  - Remove a patch for the BSD memory collector, as the patch was upstreamed

PR:		274327
2023-10-11 02:02:17 -04:00

35 lines
939 B
Makefile

PORTNAME= node_exporter
DISTVERSIONPREFIX=v
DISTVERSION= 1.6.1
CATEGORIES= sysutils
MAINTAINER= dor.bsd@xm0.uk
COMMENT= Prometheus exporter for machine metrics
WWW= https://github.com/prometheus/node_exporter
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= gmake go:modules shebangfix
USE_RC_SUBR= node_exporter
GO_MODULE= github.com/prometheus/${PORTNAME}
GO_BUILDFLAGS= -v -ldflags "${LD_FLAG_STRING}"
OPTIONS_DEFINE= DOCS
BUILD_USER?= ${USER}
LD_FLAG_STRING= -s \
${LD_FLAG_X_PREFIX}.Version=${PORTVERSION} \
${LD_FLAG_X_PREFIX}.Revision=${PORTREVISION} \
${LD_FLAG_X_PREFIX}.Branch=release-${PORTVERSION:R} \
${LD_FLAG_X_PREFIX}.BuildUser=${BUILD_USER}
LD_FLAG_X_PREFIX= -X ${GO_PKGNAME:H}/common/version
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/docs && \
${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>