- Update to version 1.33.0:
* 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
This commit is contained in:
commit
a814431445
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
10
_constraints
Normal file
10
_constraints
Normal file
@ -0,0 +1,10 @@
|
||||
<constraints>
|
||||
<hardware>
|
||||
<memory>
|
||||
<size unit="G">6</size>
|
||||
</memory>
|
||||
<disk>
|
||||
<size unit="G">4</size>
|
||||
</disk>
|
||||
</hardware>
|
||||
</constraints>
|
21
_service
Normal file
21
_service
Normal file
@ -0,0 +1,21 @@
|
||||
<services>
|
||||
<service name="tar_scm" mode="manual">
|
||||
<param name="url">https://github.com/influxdata/telegraf</param>
|
||||
<param name="scm">git</param>
|
||||
<param name="exclude">.git</param>
|
||||
<param name="revision">v1.33.0</param>
|
||||
<param name="versionformat">@PARENT_TAG@</param>
|
||||
<param name="changesgenerate">enable</param>
|
||||
<param name="versionrewrite-pattern">v(.*)</param>
|
||||
</service>
|
||||
<service name="set_version" mode="manual">
|
||||
<param name="basename">telegraf</param>
|
||||
</service>
|
||||
<service name="recompress" mode="manual">
|
||||
<param name="file">*.tar</param>
|
||||
<param name="compression">xz</param>
|
||||
</service>
|
||||
<service name="go_modules" mode="manual">
|
||||
<param name="compression">xz</param>
|
||||
</service>
|
||||
</services>
|
4
_servicedata
Normal file
4
_servicedata
Normal file
@ -0,0 +1,4 @@
|
||||
<servicedata>
|
||||
<service name="tar_scm">
|
||||
<param name="url">https://github.com/influxdata/telegraf</param>
|
||||
<param name="changesrevision">679020053079dec8aec210efe4eceaa5cad73944</param></service></servicedata>
|
24
harden_telegraf.service.patch
Normal file
24
harden_telegraf.service.patch
Normal file
@ -0,0 +1,24 @@
|
||||
diff --git a/scripts/telegraf.service b/scripts/telegraf.service
|
||||
index 94cd26a5..c741bd59 100644
|
||||
--- a/scripts/telegraf.service
|
||||
+++ b/scripts/telegraf.service
|
||||
@@ -5,6 +5,19 @@ After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
+# added automatically, for details please see
|
||||
+# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
|
||||
+ProtectSystem=full
|
||||
+ProtectHome=true
|
||||
+PrivateDevices=true
|
||||
+ProtectHostname=true
|
||||
+ProtectClock=true
|
||||
+ProtectKernelTunables=true
|
||||
+ProtectKernelModules=true
|
||||
+ProtectKernelLogs=true
|
||||
+ProtectControlGroups=true
|
||||
+RestrictRealtime=true
|
||||
+# end of automatic additions
|
||||
Type=notify
|
||||
NotifyAccess=all
|
||||
EnvironmentFile=-/etc/default/telegraf
|
3
telegraf-1.31.1.tar.xz
Normal file
3
telegraf-1.31.1.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:55b47cd97eb752251d04a5d4e8aab3370c806f1a17143375476ebe1118cd4f2e
|
||||
size 3236140
|
3
telegraf-1.31.3.tar.xz
Normal file
3
telegraf-1.31.3.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:5ccc0c4e4dc5ea1539d2ce5b5b5cdb387348aa68610f6776915a9cbbc99da0e4
|
||||
size 3248636
|
3
telegraf-1.32.0.tar.xz
Normal file
3
telegraf-1.32.0.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:f6bbcc6ebf238d254cbc545c883612c26e2d4d58a4038972dbf2fd9faa6ffa12
|
||||
size 3298172
|
3
telegraf-1.32.1.tar.xz
Normal file
3
telegraf-1.32.1.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4702ff8f6a36541990f62d09ff6c7d05b55b223aef7755081a9f6a83e9a0abe6
|
||||
size 3298808
|
3
telegraf-1.32.2.tar.xz
Normal file
3
telegraf-1.32.2.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:239ef892400918924014c4e1c05b7abe03ede0c5df25a3b376998952b2d1c759
|
||||
size 3304692
|
3
telegraf-1.32.3.tar.xz
Normal file
3
telegraf-1.32.3.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b50e3a2dfaef915c487a99163dadb3894c2c83ab2a444c1dd8d7d450d774e22d
|
||||
size 3311604
|
3
telegraf-1.33.0.tar.xz
Normal file
3
telegraf-1.33.0.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:89f39dd5a5104ccddc268a7aef942cb43613d3c17a40f9f86e3884a97a516726
|
||||
size 3333452
|
7121
telegraf.changes
Normal file
7121
telegraf.changes
Normal file
File diff suppressed because it is too large
Load Diff
91
telegraf.spec
Normal file
91
telegraf.spec
Normal file
@ -0,0 +1,91 @@
|
||||
#
|
||||
# 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
|
3
vendor.tar.xz
Normal file
3
vendor.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d358ffac0bef2b603698e8667f8239eb6ead16e5c4de43ba0cf62a249c8529b3
|
||||
size 27893508
|
Loading…
x
Reference in New Issue
Block a user