Index: head/net-mgmt/Makefile =================================================================== --- head/net-mgmt/Makefile +++ head/net-mgmt/Makefile @@ -209,6 +209,7 @@ SUBDIR += nsca27-client SUBDIR += nstat SUBDIR += nstreams + SUBDIR += nvidia_gpu_prometheus_exporter SUBDIR += observium SUBDIR += ocsinventory-agent SUBDIR += ocsinventory-ocsreports Index: head/net-mgmt/nvidia_gpu_prometheus_exporter/Makefile =================================================================== --- head/net-mgmt/nvidia_gpu_prometheus_exporter/Makefile +++ head/net-mgmt/nvidia_gpu_prometheus_exporter/Makefile @@ -0,0 +1,29 @@ +# $FreeBSD$ + +PORTNAME= nvidia_gpu_prometheus_exporter +DISTVERSION= g20181028 +CATEGORIES= net-mgmt + +MAINTAINER= 0mp@FreeBSD.org +COMMENT= NVIDIA GPU Prometheus exporter + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +ONLY_FOR_ARCHS= amd64 i386 + +USES= go +USE_GITHUB= yes +GH_ACCOUNT= mindprince +GH_TAGNAME= 0d52cd2 + +PLIST_FILES= bin/${PORTNAME} +PORTDOCS= README.md + +OPTIONS_DEFINE= DOCS + +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR} + +.include Index: head/net-mgmt/nvidia_gpu_prometheus_exporter/distinfo =================================================================== --- head/net-mgmt/nvidia_gpu_prometheus_exporter/distinfo +++ head/net-mgmt/nvidia_gpu_prometheus_exporter/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1548678036 +SHA256 (mindprince-nvidia_gpu_prometheus_exporter-g20181028-0d52cd2_GH0.tar.gz) = 2fc957543b0e8b0cc864e1e734831cc7616269e1fc124aef224c1c4055af7eca +SIZE (mindprince-nvidia_gpu_prometheus_exporter-g20181028-0d52cd2_GH0.tar.gz) = 243278 Index: head/net-mgmt/nvidia_gpu_prometheus_exporter/pkg-descr =================================================================== --- head/net-mgmt/nvidia_gpu_prometheus_exporter/pkg-descr +++ head/net-mgmt/nvidia_gpu_prometheus_exporter/pkg-descr @@ -0,0 +1,6 @@ +This is a Prometheus Exporter for exporting NVIDIA GPU metrics. It uses the Go +bindings for NVIDIA Management Library (NVML) which is a C-based API that can +be used for monitoring NVIDIA GPU devices. Unlike some other similar exporters, +it does not call the nvidia-smi binary. + +WWW: https://github.com/mindprince/nvidia_gpu_prometheus_exporter Index: head/net-mgmt/nvidia_gpu_prometheus_exporter/pkg-message =================================================================== --- head/net-mgmt/nvidia_gpu_prometheus_exporter/pkg-message +++ head/net-mgmt/nvidia_gpu_prometheus_exporter/pkg-message @@ -0,0 +1,9 @@ +The libnvidia-ml.so.1 library has to be installed on the system for +nvidia_gpu_prometheus_exporter to be able to query GPUs. + +It can be installed with one of the NVIDIA drivers available in the FreeBSD +Ports Collection: + +- nvidia-driver +- nvidia-driver-304 +- nvidia-driver-340