X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=contrib%2Fredhat%2Fcollectd.spec;h=85b7aac39d1cb27e341cc58952de8cfa6db4159c;hb=6cd1399acdd8aa5a34e8ccbd77a831e5283dddf7;hp=6f86b7e8429f9d533af8b4fada17c737a9f12351;hpb=0d5f3a040375be8936a85614e31c589f668cebaf;p=collectd.git diff --git a/contrib/redhat/collectd.spec b/contrib/redhat/collectd.spec index 6f86b7e8..85b7aac3 100644 --- a/contrib/redhat/collectd.spec +++ b/contrib/redhat/collectd.spec @@ -116,6 +116,7 @@ %define with_openvpn 0%{!?_without_openvpn:1} %define with_ovs_events 0%{!?_without_ovs_events:1} %define with_ovs_stats 0%{!?_without_ovs_stats:1} +%define with_pcie_errors 0%{!?_without_pcie_errors:1} %define with_perl 0%{!?_without_perl:1} %define with_pinba 0%{!?_without_pinba:1} %define with_ping 0%{!?_without_ping:1} @@ -160,7 +161,9 @@ %define with_write_prometheus 0%{!?_without_write_prometheus:1} %define with_write_redis 0%{!?_without_write_redis:1} %define with_write_riemann 0%{!?_without_write_riemann:1} +%define with_write_stackdriver 0%{!?_without_write_stackdriver:1} %define with_write_sensu 0%{!?_without_write_sensu:1} +%define with_write_syslog 0%{!?_without_write_syslog:1} %define with_write_tsdb 0%{!?_without_write_tsdb:1} %define with_xmms 0%{!?_without_xmms:0%{?_has_xmms}} %define with_zfs_arc 0%{!?_without_zfs_arc:1} @@ -213,6 +216,13 @@ %define with_xencpu 0%{!?_without_xencpu:0} # plugin zone disabled, requires Solaris %define with_zone 0%{!?_without_zone:0} +# plugin gpu_nvidia requires cuda-nvml-dev +# get it from https://developer.nvidia.com/cuda-downloads +# then use rpm2cpio to extract it from the huge cuda-repo rpm +# rpm2cpio cuda-repo-rhel7-10-1-local-10.1.168-418.67-1.0-1.x86_64.rpm | cpio -icv '*cuda-nvml-dev-10-1-10.1.168-1.x86_64.rpm' '*cuda-license-10-1-10.1.168-1.x86_64.rpm' +%define with_gpu_nvidia 0%{!?_without_gpu_nvidia:0} +# not sure why this one's failing +%define with_write_stackdriver 0%{!?_without_write_stackdriver:0} # Plugins not buildable on RHEL < 6 %if 0%{?rhel} && 0%{?rhel} < 6 @@ -251,8 +261,8 @@ Summary: Statistics collection and monitoring daemon Name: collectd -Version: 5.7.1 -Release: 9%{?dist} +Version: 5.9.0 +Release: 1%{?dist} URL: https://collectd.org Source: https://collectd.org/files/%{name}-%{version}.tar.bz2 License: GPLv2 @@ -740,6 +750,16 @@ The Perl plugin embeds a Perl interpreter into collectd and exposes the application programming interface (API) to Perl-scripts. %endif +%if %{with_pcie_errors} +%package pcie_errors +Summary: PCI Express errors plugin for collectd +Group: System Environment/Daemons +Requires: %{name}%{?_isa} = %{version}-%{release} +%description pcie_errors +The pcie_errors plugin collects PCI Express errors from Device Status in Capability +structure and from Advanced Error Reporting Extended Capability. +%endif + %if %{with_pinba} %package pinba Summary: Pinba plugin for collectd @@ -944,6 +964,27 @@ BuildRequires: riemann-c-client-devel >= 1.6 The riemann plugin submits values to Riemann, an event stream processor. %endif +%if %{with_write_stackdriver} +%package write_stackdriver +Summary: stackdriver plugin for collectd +Group: System Environment/Daemons +Requires: %{name}%{?_isa} = %{version}-%{release} +BuildRequires: curl-devel, yajl-devel, openssl-devel +%description write_stackdriver +The write_stackdriver collectd plugin writes metrics to the +Google Stackdriver Monitoring service. +%endif + +%if %{with_gpu_nvidia} +%package gpu_nvidia +Summary: stackdriver plugin for collectd +Group: System Environment/Daemons +Requires: %{name}%{?_isa} = %{version}-%{release} +BuildRequires: cuda-nvml-dev-10-1 +%description gpu_nvidia +The gpu_nvidia collectd plugin collects NVidia GPU metrics. +%endif + %if %{with_xencpu} %package xencpu Summary: xencpu plugin for collectd @@ -1552,6 +1593,12 @@ Collectd utilities %define _with_perl --disable-perl %endif +%if %{with_pcie_errors} +%define _with_pcie_errors --enable-pcie_errors +%else +%define _with_pcie_errors --disable-pcie_errors +%endif + %if %{with_pf} %define _with_pf --enable-pf %else @@ -1851,12 +1898,30 @@ Collectd utilities %define _with_write_riemann --disable-write_riemann %endif +%if %{with_write_stackdriver} +%define _with_write_stackdriver --enable-write_stackdriver +%else +%define _with_write_stackdriver --disable-write_stackdriver +%endif + +%if %{with_gpu_nvidia} +%define _with_gpu_nvidia --enable-gpu_nvidia +%else +%define _with_gpu_nvidia --disable-gpu_nvidia +%endif + %if %{with_write_sensu} %define _with_write_sensu --enable-write_sensu %else %define _with_write_sensu --disable-write_sensu %endif +%if %{with_write_syslog} +%define _with_write_syslog --enable-write_syslog +%else +%define _with_write_syslog --disable-write_syslog +%endif + %if %{with_write_tsdb} %define _with_write_tsdb --enable-write_tsdb %else @@ -2002,6 +2067,7 @@ Collectd utilities %{?_with_ovs_events} \ %{?_with_ovs_stats} \ %{?_with_perl} \ + %{?_with_pcie_errors} \ %{?_with_pf} \ %{?_with_pinba} \ %{?_with_ping} \ @@ -2053,7 +2119,10 @@ Collectd utilities %{?_with_write_prometheus} \ %{?_with_write_redis} \ %{?_with_write_riemann} \ + %{?_with_write_stackdriver} \ + %{?_with_gpu_nvidia} \ %{?_with_write_sensu} \ + %{?_with_write_syslog} \ %{?_with_write_tsdb} \ %{?_with_xencpu} \ %{?_with_xmms} \ @@ -2388,6 +2457,9 @@ fi %if %{with_write_log} %{_libdir}/%{name}/write_log.so %endif +%if %{with_write_syslog} +%{_libdir}/%{name}/write_syslog.so +%endif %if %{with_write_sensu} %{_libdir}/%{name}/write_sensu.so %endif @@ -2656,6 +2728,11 @@ fi %{_libdir}/%{name}/perl.so %endif +%if %{with_pcie_errors} +%files pcie_errors +%{_libdir}/%{name}/pcie_errors.so +%endif + %if %{with_pinba} %files pinba %{_libdir}/%{name}/pinba.so @@ -2749,6 +2826,16 @@ fi %{_libdir}/%{name}/write_riemann.so %endif +%if %{with_write_stackdriver} +%files write_stackdriver +%{_libdir}/%{name}/write_stackdriver.so +%endif + +%if %{with_gpu_nvidia} +%files write_gpu_nvidia +%{_libdir}/%{name}/write_gpu_nvidia.so +%endif + %if %{with_xencpu} %files xencpu %{_libdir}/%{name}/xencpu.so @@ -2771,6 +2858,11 @@ fi %doc contrib/ %changelog +* Fri Jun 14 2019 Fabien Wernli - 5.9.0-1 +- add code for write_stackdriver (disabled for now) +- add code for gpu_nvidia (disabled for now) +- add pcie_errors + * Thu Sep 28 2017 Jakub Jankowski - 5.7.1-9 - Fix mbmon/mcelog build options