a814431445
* Telegraf v1.33.0 * Update changelog for v1.33.0 * chore(inputs.prometheus): Improve label and field selector logging (#16228) * fix(logging): Fix deplicated prefix+attrMsg in log message when redirectLogger is used (#16274) * fix(outputs.quix): Replace deprecated serializer type * feat(outputs.quix): Add plugin (#16144) * chore: Update go to v1.23.4 (#16265) * feat(outputs.influxdb_v2): Add rate limit implementation (#15742) * feat(outputs): Add rate-limiting infrastructure (#16258) * feat(logging): Allow overriding message key for structured logging (#16242) * chore(parsers.avro): Add unit-test for enum (#16260) * chore: Fix linter findings for `revive:exported` in `plugins/inputs/o*` (#16224) * chore(serializers)!: Remove old-style creation (#15971) * chore(deps): Bump golangci-lint from v1.62.0 to v1.62.2 (#16250) * chore(deps): Bump cloud.google.com/go/storage from 1.43.0 to 1.47.0 (#16235) * fix(logging): Clean up extra empty spaces when redirectLogger is used (#16255) * feat(outputs): Implement partial write errors (#16146) * feat(inputs.vsphere): Add cpu temperature field (#16109) * docs: Fix PostgreSQL example DSN (#16229) * fix(inputs.procstat): Handle running processes correctly across multiple filters (#16257) * feat(inputs.smart): Add Power on Hours and Cycle Count (#16230) * chore: Fix function names in comments (#16231) * fix(inputs.netflow): Decode flags in TCP and IP headers correctly (#16248) * docs(serializers.json): Fix typo (#16245) * chore(actions): Only check PR title for semantic commit message (#16253) * chore(deps): Bump github.com/aws/aws-sdk-go-v2/service/kinesis from 1.29.3 to 1.32.6 (#16234) * chore(deps): Bump google.golang.org/grpc from 1.67.1 to 1.68.0 (#16233) * chore(deps): Bump cloud.google.com/go/bigquery from 1.63.1 to 1.64.0 (#16232) * chore(deps): Bump golang.org/x/net from 0.30.0 to 0.31.0 (#16236) OBS-URL: https://build.opensuse.org/package/show/devel:languages:go/telegraf?expand=0&rev=97
92 lines
2.6 KiB
RPMSpec
92 lines
2.6 KiB
RPMSpec
#
|
|
# spec file for package telegraf
|
|
#
|
|
# Copyright (c) 2024 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.33.0
|
|
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.xz
|
|
Source1: vendor.tar.xz
|
|
Patch0: harden_telegraf.service.patch
|
|
BuildRequires: git-core
|
|
BuildRequires: golang-packaging
|
|
BuildRequires: systemd-rpm-macros
|
|
BuildRequires: golang(API) >= 1.23
|
|
%{?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
|
|
%patch -P 0 -p1
|
|
|
|
%build
|
|
# Build the binary.
|
|
go build \
|
|
-mod=vendor \
|
|
%ifnarch ppc64 ppc64le
|
|
-buildmode=pie \
|
|
%endif
|
|
./cmd/telegraf;
|
|
./telegraf config > etc/telegraf.conf
|
|
|
|
%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
|