forked from pool/telegraf
9bd765f134
- Update to version 1.15.3: * Revert "fix cloudwatch tests" * Update etc/telegraf.conf * [fix] add missing error check for HTTP req failure (#8071) * add tagpass/tagdrop note in docs (#8053) * Fix docker-image make target (#8005) * Fix CI AppVeyor 'make check' errors for go 1.15 on windows (#8061) * add release notes * fix bug in shim logger affecting AddError (#8052) * fix docker build. update dockerfiles to Go 1.14 (#8051) * docs fix * Create external plugins doc file and update contributing guide (#8001) * Add addTag debugging in ifname plugin (#8018) * vSphere Fixed missing clustername issue 7878 (#8026) * Fix string to int conversion in eventhub consumer (#8006) * improve the quality of starlark docs by executing them as tests (#8020) * Fix Ping Input plugin for FreeBSD's ping6 (#7861) * add example input/outputs to starlark examples (#7980) * Fix configuration.md formatting (#7965) * [outputs.application_insights] Added the ability to set the endpoint url (#7134) * fix issue with shim use of config.Duration (#7996) * fix minor agent race condition around error messages (#7999) * http_listener_v2: make http header tags case insensitive (#7986) * add pivot example for starlark processor (#7976) * fix(puppet): update broken link (#7977) * fix(ipmi): update link in readme (#7975) * chore: extend gitignore to ignore .DS_Store (#7974) * fix(readmes): standarize first line of readmes (#7973) * Updated http_response input plugin README.md (#7962) * added new counter - Lock Timeouts (timeout > 0)/sec (#7808) OBS-URL: https://build.opensuse.org/request/show/833988 OBS-URL: https://build.opensuse.org/package/show/devel:languages:go/telegraf?expand=0&rev=24
89 lines
2.5 KiB
RPMSpec
89 lines
2.5 KiB
RPMSpec
#
|
|
# spec file for package telegraf
|
|
#
|
|
# Copyright (c) 2020 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define _config_dir %{_sysconfdir}/%{name}
|
|
Name: telegraf
|
|
Version: 1.15.3
|
|
Release: 0
|
|
Summary: The plugin-driven server agent for collecting & reporting metrics
|
|
License: MIT
|
|
Group: System/Monitoring
|
|
URL: https://github.com/influxdata/telegraf
|
|
Source: %{name}-%{version}.tar.gz
|
|
Source1: vendor.tar.gz
|
|
BuildRequires: git-core
|
|
BuildRequires: go1.13
|
|
BuildRequires: golang-packaging
|
|
BuildRequires: systemd-rpm-macros
|
|
%{?systemd_ordering}
|
|
|
|
%description
|
|
Telegraf is an agent written in Go for collecting, processing, aggregating, and writing metrics.
|
|
|
|
Design goals are to have a minimal memory footprint with a plugin system so that developers in the community can
|
|
easily add support for collecting metrics from local or remote services.
|
|
|
|
%prep
|
|
%setup -q
|
|
%setup -q -T -D -a 1
|
|
|
|
%build
|
|
# Build the binary.
|
|
go build \
|
|
-mod=vendor \
|
|
%ifnarch ppc64 ppc64le
|
|
-buildmode=pie \
|
|
%endif
|
|
./cmd/telegraf;
|
|
|
|
%install
|
|
# Install the binary.
|
|
install -D -m 0755 %{name} "%{buildroot}/%{_bindir}/%{name}"
|
|
|
|
mkdir -p %{buildroot}/%{_config_dir}
|
|
mkdir -p %{buildroot}/%{_config_dir}/%{name}.d
|
|
install -m644 etc/%{name}.conf %{buildroot}/%{_config_dir}
|
|
|
|
install -D -m 644 scripts/%{name}.service %{buildroot}%{_unitdir}/%{name}.service
|
|
sed -i '/User=/d' %{buildroot}%{_unitdir}/%{name}.service
|
|
mkdir -p %{buildroot}%{_sbindir}
|
|
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}
|
|
|
|
%pre
|
|
%service_add_pre %{name}.service
|
|
|
|
%post
|
|
%service_add_post %{name}.service
|
|
|
|
%preun
|
|
%service_del_preun %{name}.service
|
|
|
|
%postun
|
|
%service_del_postun %{name}.service
|
|
|
|
%files
|
|
%{_sbindir}/rc%{name}
|
|
%{_unitdir}/%{name}.service
|
|
%doc CHANGELOG.md CONTRIBUTING.md README.md
|
|
%license LICENSE
|
|
%dir %{_config_dir}
|
|
%config(noreplace) %{_config_dir}/%{name}.conf
|
|
%{_bindir}/%{name}
|
|
|
|
%changelog
|