From 8ab36df5c148aa5802968da75ff539f3c0fe21d50bebffb52ab7615cb11aef9a Mon Sep 17 00:00:00 2001
From: Jeff Kowalczyk <jkowalczyk@suse.com>
Date: Mon, 25 Apr 2022 22:00:02 +0000
Subject: [PATCH] Accepting request 972725 from
 home:jfkw:branches:devel:languages:go

- Update to version 1.22.1:
- Refresh harden_telegraf.service.patch

OBS-URL: https://build.opensuse.org/request/show/972725
OBS-URL: https://build.opensuse.org/package/show/devel:languages:go/telegraf?expand=0&rev=39
---
 _service                      |   2 +-
 _servicedata                  |   2 +-
 harden_telegraf.service.patch |  14 +-
 telegraf-1.21.2.tar.xz        |   3 -
 telegraf-1.22.1.tar.xz        |   3 +
 telegraf.changes              | 450 ++++++++++++++++++++++++++++++++++
 telegraf.spec                 |   2 +-
 vendor.tar.xz                 |   4 +-
 8 files changed, 465 insertions(+), 15 deletions(-)
 delete mode 100644 telegraf-1.21.2.tar.xz
 create mode 100644 telegraf-1.22.1.tar.xz

diff --git a/_service b/_service
index a66bbc1..bd101f3 100644
--- a/_service
+++ b/_service
@@ -3,7 +3,7 @@
     <param name="url">https://github.com/influxdata/telegraf</param>
     <param name="scm">git</param>
     <param name="exclude">.git</param>
-    <param name="revision">v1.21.2</param>
+    <param name="revision">v1.22.1</param>
     <param name="versionformat">@PARENT_TAG@</param>
     <param name="changesgenerate">enable</param>
     <param name="versionrewrite-pattern">v(.*)</param>
diff --git a/_servicedata b/_servicedata
index 0fab4b3..16436ae 100644
--- a/_servicedata
+++ b/_servicedata
@@ -1,4 +1,4 @@
 <servicedata>
 <service name="tar_scm">
                 <param name="url">https://github.com/influxdata/telegraf</param>
-              <param name="changesrevision">29fe0159ac105fbce41a9b2751bc361db87bc9cb</param></service></servicedata>
\ No newline at end of file
+              <param name="changesrevision">f2a6653b57a11098b3dd37aed2345217c3209968</param></service></servicedata>
\ No newline at end of file
diff --git a/harden_telegraf.service.patch b/harden_telegraf.service.patch
index 97fa387..d37943a 100644
--- a/harden_telegraf.service.patch
+++ b/harden_telegraf.service.patch
@@ -1,8 +1,8 @@
-Index: telegraf-1.19.0/scripts/telegraf.service
-===================================================================
---- telegraf-1.19.0.orig/scripts/telegraf.service
-+++ telegraf-1.19.0/scripts/telegraf.service
-@@ -4,6 +4,19 @@ Documentation=https://github.com/influxd
+diff --git a/scripts/telegraf.service b/scripts/telegraf.service
+index c4eed38e..288dd806 100644
+--- a/scripts/telegraf.service
++++ b/scripts/telegraf.service
+@@ -4,6 +4,19 @@ Documentation=https://github.com/influxdata/telegraf
  After=network.target
  
  [Service]
@@ -18,7 +18,7 @@ Index: telegraf-1.19.0/scripts/telegraf.service
 +ProtectKernelLogs=true
 +ProtectControlGroups=true
 +RestrictRealtime=true
-+# end of automatic additions 
++# end of automatic additions
+ Type=notify
  EnvironmentFile=-/etc/default/telegraf
  User=telegraf
- ExecStart=/usr/bin/telegraf -config /etc/telegraf/telegraf.conf -config-directory /etc/telegraf/telegraf.d $TELEGRAF_OPTS
diff --git a/telegraf-1.21.2.tar.xz b/telegraf-1.21.2.tar.xz
deleted file mode 100644
index 7c93a56..0000000
--- a/telegraf-1.21.2.tar.xz
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:eacc24b026f0175a1821294da44ea53f2f538e5f30bde90e4e9273e067e94b28
-size 2263492
diff --git a/telegraf-1.22.1.tar.xz b/telegraf-1.22.1.tar.xz
new file mode 100644
index 0000000..25e9ae2
--- /dev/null
+++ b/telegraf-1.22.1.tar.xz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4babe127514b2b44515e582d7289cb758235f74c588669b524fd2fbef76761fa
+size 2453288
diff --git a/telegraf.changes b/telegraf.changes
index d1ba645..27f3656 100644
--- a/telegraf.changes
+++ b/telegraf.changes
@@ -1,3 +1,453 @@
+-------------------------------------------------------------------
+Mon Apr 25 21:06:04 UTC 2022 - Jeff Kowalczyk <jkowalczyk@suse.com>
+
+- Refresh harden_telegraf.service.patch
+
+-------------------------------------------------------------------
+Mon Apr 25 18:12:44 UTC 2022 - jkowalczyk@suse.com
+
+- Update to version 1.22.1:
+  * fix: bump gonum.org/v1/gonum from 0.9.3 to 0.11.0 (#10937)
+  * fix: bump github.com/golang-jwt/jwt/v4 from 4.2.0 to 4.4.1 (#10906)
+  * chore: add actions/setup-go@v2 to linter config (#10935)
+  * docs(external.psi): add psi plugin (#10462)
+  * fix: Update gopsutil and associated dependencies for improved OpenBSD supp… (#10931)
+  * docs: update rpm/deb instructions with stable URLs (#10905)
+  * fix: inconsistencies in sql*Requests queries (#10553)
+  * fix: default value for logfile rotation interval (#10883)
+  * fix: redundant zfs pool tag (#10871)
+  * docs: update license of dependencies (#10914)
+  * fix: update vsphere info message to debug (#10903)
+  * docs: fix contribute button link (#10904)
+  * docs: improve documentation around contribution (#10825)
+  * chore: set telegraf log as text block in bug reports (#10895)
+  * fix: include body in error message (#10866)
+  * docs: clarify the k and fields topk params (#10830)
+  * chore: remove slow process test (#10856)
+  * chore: update slow file rotation tests (#10857)
+  * chore: switch HTTP 100 test case values (#10858)
+  * chore: fix slow running intel-pmu test (#10859)
+  * chore: skip longer/integration tests on -short mode (#10860)
+  * chore: remove CircleCI parallelism (#10862)
+  * chore: reduce timeouts and sleeps (#10861)
+
+-------------------------------------------------------------------
+Mon Apr 25 18:09:49 UTC 2022 - jkowalczyk@suse.com
+
+- Update to version 1.22.0:
+  * feat: update etc/telegraf.conf and etc/telegraf_windows.conf (#10843)
+  * fix: fix handling of imports in protocol-buffer definitions (#10798)
+  * fix: change name of snmp translator setting (#10872)
+  * fix: rename consul_metrics -> consul_agent (#10876)
+  * fix: consul_metrics input plugin docs (#10873)
+  * tests: remove redundant newlines that go 1.18 treats as errors (#10847)
+  * fix: Add option to select translator (#10802)
+  * feat: new input Hugepages plugin (#10763)
+  * fix: update the precision parameter default value (#10814)
+  * fix: bump github.com/nats-io/nats-server/v2 from 2.7.3 to 2.7.4 (#10807)
+  * feat: add new rtt per op field to nfsclient (#10787)
+  * fix(parsers.json_v2): Check if gpath exists and support optional in fields/tags (#10799)
+  * fix(inputs.snmp):  use the correct path when evaluating symlink (#10748)
+  * fix: bump github.com/Shopify/sarama from 1.29.1 to 1.32.0 (#10772)
+  * fix: update parsing logic of config.Duration (#10803)
+  * feat: update etc/telegraf.conf and etc/telegraf_windows.conf (#10805)
+  * feat(parsers.influx): New influx line protocol via feature flag (#10749)
+  * feat: update etc/telegraf.conf and etc/telegraf_windows.conf (#10804)
+  * docs: Improve language related to the New Relic license key. (#10796)
+  * fix: correctly read ntpq long poll output (#10790)
+  * fix(inputs.docker): keep field type of tasks_desired the same (#10711)
+  * fix(json_v2): allow multiple optional objects (#10777)
+  * feat: update etc/telegraf.conf and etc/telegraf_windows.conf (#10789)
+  * docs: update wavefront docs for clearer proxy server use (#10774)
+  * feat: update etc/telegraf.conf and etc/telegraf_windows.conf (#10779)
+  * feat: HTTP basic auth for webhooks (#9332)
+  * docs: update uri scheme for default RavenDB configuration (#10764)
+  * feat: update etc/telegraf.conf and etc/telegraf_windows.conf (#10769)
+  * fix: sql unsigned settings (#10673)
+  * docs: better specify agent precision is integer + unit (#10746)
+  * fix: bump github.com/shirou/gopsutil/v3 from 3.21.12 to 3.22.2 (#10758)
+  * feat: update etc/telegraf.conf and etc/telegraf_windows.conf (#10760)
+  * style: Add deprecation notices to plugin options (#10616)
+  * fix: sanitize stasd names (#10466)
+  * fix: bump github.com/aws/aws-sdk-go-v2/feature/ec2/imds (#10759)
+  * fix: bump github.com/miekg/dns from 1.1.43 to 1.1.46 (#10757)
+  * fix: bump github.com/aws/aws-sdk-go-v2/service/dynamodb (#10751)
+  * fix: bump github.com/nats-io/nats-server/v2 from 2.7.2 to 2.7.3 (#10752)
+  * docs: add value_field_name to value processor (#10740)
+  * fix: log err when loading mibs (#10735)
+  * docs: add info on Graylog GELF spec (#10745)
+  * fix: typo metadata support in csv parser (#10742)
+  * feat: update etc/telegraf.conf and etc/telegraf_windows.conf (#10737)
+  * feat: Add tag batch-processing to XPath parser (#10585)
+  * fix: add push only updated values flag to histogram aggregator (#10515)
+  * feat(parsers/csv): Add metadata support to CSV parser plugin (#10083)
+  * fix: Revert "fix: error msg for missing env variables in config (#10681)" (#10727)
+  * fix: bump github.com/aws/aws-sdk-go-v2/config from 1.8.3 to 1.13.1 (#10720)
+  * fix: bump github.com/testcontainers/testcontainers-go (#10728)
+  * fix: bump github.com/aws/aws-sdk-go-v2/service/cloudwatchlogs (#10719)
+  * fix: bump github.com/aws/aws-sdk-go-v2/feature/ec2/imds (#10721)
+  * fix: bump github.com/wavefronthq/wavefront-sdk-go from 0.9.9 to 0.9.10 (#10718)
+  * fix: bump github.com/ClickHouse/clickhouse-go from 1.5.1 to 1.5.4 (#10717)
+  * fix: Linter fixes for config/config.go (#10710)
+  * fix: bump k8s.io/api from 0.23.3 to 0.23.4 (#10713)
+  * fix: bump cloud.google.com/go/pubsub from 1.17.1 to 1.18.0 (#10714)
+  * fix: bump github.com/newrelic/newrelic-telemetry-sdk-go (#10715)
+  * fix: mdstat when sync is less than 10% (#10701)
+  * feat: update etc/telegraf.conf and etc/telegraf_windows.conf (#10708)
+  * fix: Remove verbose logging from disk input plugin (#10527)
+  * feat: Bump github.com/aerospike/aerospike-client-go from 1.27.0 to 5.7.0 (#10604)
+  * feat(inputs/memcached): Support client TLS origination to memcached (#10642)
+  * feat: socks5 proxy support for websocket (#10672)
+  * fix: error msg for missing env variables in config (#10681)
+  * fix: include influxdb bucket name in error messages (#10706)
+  * fix: openweathermap add feels_like field (#10705)
+  * fix: Set NextCheckTime to LastCheckTime to avoid GroundWork to invent a value (#10623)
+  * fix: bump github.com/aws/aws-sdk-go-v2/service/dynamodb from 1.5.0 to 1.13.0 (#10692)
+  * fix: bump github.com/sensu/sensu-go/api/core/v2 from 2.12.0 to 2.13.0 (#10704)
+  * fix: bump github.com/gophercloud/gophercloud from 0.16.0 to 0.24.0 (#10693)
+  * fix: bump github.com/jackc/pgx/v4 from 4.14.1 to 4.15.0 (#10702)
+  * fix(dedup): Modifying slice while iterating is dangerous (#10684)
+  * fix: linter fixes for "import-shadowing: The name '...' shadows an import name" (#10689)
+  * fix: bump github.com/aws/aws-sdk-go-v2/service/sts from 1.7.2 to 1.14.0 (#10602)
+  * fix: update gosmi from v0.4.3 to v0.4.4 (#10686)
+  * feat: update configs (#10676)
+  * feat[elastic output]: add elastic pipeline flags (#10505)
+  * fix: ensure folders do not get loaded more than once (#10551)
+  * docs: update VMWare doc links (#10663)
+  * fix: prometheusremotewrite wrong timestamp unit (#10547)
+  * feat: update configs (#10662)
+  * fix: add graylog toml tags (#10660)
+  * feat: add socks5 proxy support for kafka output plugin (#8192)
+  * docs: override reported OpenSearch version (#10586)
+  * feat: update etc/telegraf.conf and etc/telegraf_windows.conf (#10659)
+  * fix: bump all go.opentelemetry.io dependencies (#10647)
+  * feat: collection offset implementation (#10545)
+  * chore: update go to 1.17.7 (#10658)
+  * fix: check for nil client before closing in amqp (#10635)
+  * fix: timestamp change during execution of json_v2 parser. (#10657)
+  * fix: bump github.com/signalfx/golib/v3 from 3.3.38 to 3.3.43 (#10652)
+  * fix: bump github.com/aliyun/alibaba-cloud-sdk-go (#10653)
+  * fix: incorrect handling of json_v2 timestamp_path (#10618)
+  * feat: gather additional stats from memcached (#10641)
+  * feat: update etc/telegraf.conf and etc/telegraf_windows.conf (#10649)
+  * fix: Revert deprecation of http_listener_v2 (#10648)
+  * fix: bump github.com/denisenkom/go-mssqldb from 0.10.0 to 0.12.0 (#10503)
+  * fix: bump github.com/gopcua/opcua from 0.2.3 to 0.3.1 (#10626)
+  * fix: use current time as ecs timestamp (#10636)
+  * fix: bump github.com/nats-io/nats-server/v2 from 2.6.5 to 2.7.2 (#10638)
+  * chore: add -race flag to go tests (#10629)
+  * feat: update etc/telegraf.conf and etc/telegraf_windows.conf (#10631)
+  * fix: license doc outdated causing CI failure (#10630)
+  * fix: bump k8s.io/client-go from 0.22.2 to 0.23.3 (#10589)
+  * feat: Implemented support for reading raw values, added tests and doc (#6501)
+  * fix: Improve parser tests by using go-cmp/cmp (#10497)
+  * feat(mongodb): add FsTotalSize and FsUsedSize informations (#10625)
+  * docs: update quay docs for auth (#10612)
+  * chore: allow downgrade of go version in windows script (#10614)
+  * chore: update CI go to 1.17.6 (#10611)
+  * feat: update etc/telegraf.conf and etc/telegraf_windows.conf (#10600)
+  * fix(inputs.opcua): add more data to error log (#10465)
+  * fix: bump github.com/aws/aws-sdk-go-v2/service/kinesis from 1.6.0 to 1.13.0 (#10601)
+  * refactor: use early return pattern (#10591)
+  * fix: bump github.com/benbjohnson/clock from 1.1.0 to 1.3.0 (#10588)
+  * feat: add dynamic tagging to gnmi plugin (#7484)
+  * fix: bump github.com/Azure/azure-kusto-go from 0.5.0 to 0.5.2 (#10598)
+  * feat: update etc/telegraf.conf and etc/telegraf_windows.conf (#10584)
+  * fix(parsers.json_v2): allow optional paths and handle wrong paths correctly (#10468)
+  * docs: add expriation_interval to readme (#10583)
+  * feat: aggregator histogram add expiration (#10520)
+  * fix[elasticsearch output]: add scheme to fix error in sniffing option (#10513)
+  * chore: fix typo in bug report template (#10582)
+  * style: Add deprecated warning and version to win_perf_counters option (#10579)
+  * feat: Add autorestart and restartdelay flags to Windows service (#10559)
+  * fix: Statefull parser handling (#10575)
+  * fix: bump github.com/vmware/govmomi from 0.27.2 to 0.27.3 (#10571)
+  * fix: bump github.com/prometheus/client_golang from 1.11.0 to 1.12.1 (#10572)
+  * fix: remove signed macOS dotfile artifacts (#10560)
+  * fix: bump go.mongodb.org/mongo-driver from 1.7.3 to 1.8.3 (#10564)
+  * fix: bump github.com/google/go-cmp from 0.5.6 to 0.5.7 (#10563)
+  * fix: bump go.opentelemetry.io/collector/model from 0.39.0 to 0.43.2 (#10562)
+  * fix: bump github.com/multiplay/go-ts3 from 1.0.0 to 1.0.1 (#10538)
+  * fix: bump cloud.google.com/go/monitoring from 0.2.0 to 1.2.0 (#10454)
+  * feat: update etc/telegraf.conf and etc/telegraf_windows.conf (#10561)
+  * docs: updates readme to add service SID auth and cleans up AAD auth dupe info (#10541)
+  * feat: Add caching to internet_speed (#10530)
+  * feat: Xtremio input (#9697)
+  * feat(inputs.win_perf_counter): allow errors to be ignored (#10535)
+  * fix(outputs/azure_data_explorer): Added azureBlob controls to lower RAM usage (#10179)
+  * fix: bump github.com/vmware/govmomi from 0.26.0 to 0.27.2 (#10536)
+  * docs: add apt and knot to EXTERNAL_PLUGINS.md (#10552)
+  * feat: update etc/telegraf.conf and etc/telegraf_windows.conf (#10546)
+  * fix: move "Starting Telegraf" log (#10528)
+  * fix: update docker memory usage calculation (#10491)
+  * feat: Add ClickHouse driver to sql inputs/outputs plugins (#9671)
+  * fix: collapsed fields by calling more indepth function (#10430)
+  * feat: update etc/telegraf.conf and etc/telegraf_windows.conf (#10533)
+  * feat: process group tag for groundwork output plugin (#10499)
+  * feat: update etc/telegraf.conf and etc/telegraf_windows.conf (#10532)
+  * docs: Update deprecation readme (#10529)
+  * feat: add FileVersion and icon to Win exe (#10487)
+  * chore: update grpc to v1.44.0 (#10525)
+  * fix: bump google.golang.org/api from 0.54.0 to 0.65.0 (#10434)
+  * fix: typo in docs (#10441)
+  * fix: bump github.com/antchfx/xmlquery from 1.3.6 to 1.3.9 (#10507)
+  * fix: bump github.com/nsqio/go-nsq from 1.0.8 to 1.1.0 (#10521)
+  * fix: bump github.com/prometheus/common from 0.31.1 to 0.32.1 (#10506)
+  * fix: ipset crash when command not found (#10474)
+  * fix: bump cloud.google.com/go/pubsub from 1.17.0 to 1.17.1 (#10504)
+  * fix: bump github.com/influxdata/influxdb-observability/influx2otel from 0.2.8 to 0.2.10 (#10432)
+  * fix: Update modbus readme (#10501)
+  * Fix: Update README.md (#10500)
+  * docs: Fixes for input/sql readme (#10498)
+  * feat: update configs (#10490)
+  * fix: graylog readme to use graylog 3 URLs (#10481)
+  * fix: add RFC3164 to RFC5424 translation to docs (#10480)
+  * fix: add comment to logparser (#10479)
+  * chore: Add `openConnections` to enterprise cluster metrics Readme (#10483)
+  * fix: remove duplicate addition of fields (#10478)
+  * fix(parsers.nagios): nagios parser now uses real error for logging #10472 (#10473)
+  * fix: add newline in execd for prometheus parsing (#10463)
+  * fix: bump github.com/shirou/gopsutil/v3 from 3.21.10 to 3.21.12 (#10451)
+  * fix: do not save cache on i386 builds (#10464)
+  * chore: readme escape rpm variables
+  * fix: address flaky tests in cookie_test.go and graylog_test.go (#10326)
+  * feat: check TLSConfig early to catch missing certificates (#10341)
+  * fix: ensure CI tests runs against i386 (#10457)
+  * fix: bump github.com/jackc/pgx/v4 from 4.6.0 to 4.14.1 (#10453)
+  * fix: bump github.com/Azure/azure-event-hubs-go/v3 from 3.3.13 to 3.3.17 (#10449)
+  * fix: bump github.com/gosnmp/gosnmp from 1.33.0 to 1.34.0 (#10450)
+  * fix: wavefront_disable_prefix_conversion case missing from missingTomlField func (#10442)
+  * fix: bump github.com/hashicorp/consul/api from 1.9.1 to 1.12.0 (#10435)
+  * feat: Parser plugin restructuring (#8791)
+  * fix: bump github.com/antchfx/jsonquery from 1.1.4 to 1.1.5 (#10433)
+  * fix: bump github.com/prometheus/procfs from 0.6.0 to 0.7.3 (#10414)
+  * feat: update etc/telegraf.conf and etc/telegraf_windows.conf (#10429)
+  * feat: Add noise plugin (#10057)
+  * feat: update configs (#10425)
+  * fix: Accept non-standard OPC UA OK status by implementing a configurable workaround (#10384)
+  * feat: support headers for http plugin with cookie auth (#10404)
+  * fix: snmp input plugin errors if mibs folder doesn't exist (#10346) (#10354)
+  * fix: correctly set ASCII trailer for syslog output (#10393)
+  * feat: update configs (#10424)
+  * chore: go mod tidy (#10423)
+  * fix: bump github.com/aws/aws-sdk-go-v2/service/cloudwatchlogs from 1.5.2 to 1.12.0 (#10415)
+  * fix: bump github.com/kardianos/service from 1.0.0 to 1.2.1 (#10416)
+  * fix: ensure http body is empty (#10396)
+  * feat: add bearer token support to elasticsearch output (#10399)
+  * fix: bump github.com/couchbase/go-couchbase from 0.1.0 to 0.1.1 (#10417)
+  * feat: update etc/telegraf.conf and etc/telegraf_windows.conf (#10411)
+  * fix(json_v2): use raw values for timestamps (#10413)
+  * fix: bump github.com/pion/dtls/v2 from 2.0.9 to 2.0.13 (#10418)
+  * chore: update mqtt documentation (#10394)
+  * feat: deprecate unused snmp_trap timeout configuration option (#10339)
+  * fix: update containerd to 1.5.9 (#10402)
+  * feat: update configs (#10400)
+  * feat:  add compression to Datadog Output (#9963)
+  * feat: update etc/telegraf.conf and etc/telegraf_windows.conf (#10395)
+  * fix: re-enable OpenBSD modbus support (#10385)
+  * fix: Fix batching logic with write records, introduce concurrent requests (#8947)
+  * feat: Add additional stats to bond collector (#10137)
+  * fix(outputs/amqp): Close the last connection when writing error to avoid connection leaks (#10360)
+  * feat: update docker client API version (#10382)
+  * feat: update etc/telegraf.conf and etc/telegraf_windows.conf (#10381)
+  * fix: fix missing storage in container with disk plugin (#10318)
+  * feat: add systemd notify support (#10340)
+  * chore: typos across source code comments (#10361)
+  * chore: sql readme with more details on data types (#10378)
+  * fix: empty import tzdata for Windows binaries (#10377)
+  * feat: update configs (#10374)
+  * chore: document deprecation of timeout (#10373)
+  * feat: update configs (#10345)
+  * feat: add mock input plugin (#9782)
+  * chore: use 4 cores on linux systems (#10342)
+  * fix: update go-ldap to v3.4.1 (#10343)
+  * chore: remove "i386" test job (#10344)
+  * fix: update GroundWork SDK and improve logging (#10255)
+  * feat: add more functionality to template processor (#10316)
+  * chore: run release signing jobs at the same time (#10333)
+  * feat: update configs (#10336)
+  * feat: update etc/telegraf.conf and etc/telegraf_windows.conf (#10335)
+  * feat: add builds for riscv64 (#10262)
+  * feat: add consul metrics input plugin (#10258)
+  * fix: snmp marshal error (#10322)
+  * feat: add exclude_root_certs option to x509_cert plugin (#9822)
+  * feat: add option to disable prepared statements for PostgreSQL (#9710)
+  * fix: cumulative interval start times for stackdriver output (#10097)
+  * feat: add option to skip errors during CSV parsing (#10267)
+  * feat: update configs (#10334)
+  * feat: socketstat input plugin (#3649)
+  * fix: update djherbis/times and fix dependabot (#10332)
+  * fix: warning output when running with --test (#10329)
+  * feat: update configs (#10325)
+  * docs: add note about dpdk and socket availability (#10324)
+  * feat: reworked varnish_cache plugin (#9432)
+  * chore:  release packaging run in parallel (#10314)
+  * fix: update bug template
+  * chore: add logs section for bug reports (#10323)
+  * fix: do not require networking during tests (#10321)
+  * chore: update mac signing job to use latest xcode (#10311)
+  * chore: update Go version to 1.17.5 (#10310)
+  * feat: update configs (#10319)
+  * chore: cleanup go.mod (#10313)
+  * feat: add timeout-setting to Graylog-plugin (#10220)
+  * feat: Improve error logging on plugin initialization (#10307)
+  * fix: Fix panic in logparser due to missing Log. (#10296)
+  * fix: panic due to no module (#10303)
+  * fix: grab table columns more accurately (#10295)
+  * fix: check index before assignment (#10299)
+  * feat: adds optional list of non retryable http statuscodes to http output plugin (#10186)
+  * fix: panic is no mibs folder is found (#10301)
+  * fix: mac signing issue with arm64 (#10293)
+  * fix: Update go-sensu to v2.12.0 (#10247)
+  * fix: typo in openstack neutron input plugin (newtron) (#10284)
+  * fix: Fix panic in parsers due to missing Log for all plugins using SetParserFunc. (#10288)
+  * fix: mark TestGatherUDPCert as an integration test (#10279)
+  * feat: support darwin arm64 (#10239)
+  * feat: update configs (#10275)
+  * fix: run gofmt (#10274)
+  * fix: run go mod tidy (#10273)
+  * fix: inputs.snmp to respect number of retries configured (#10268)
+  * feat: add Redis Sentinel input plugin (#10042)
+  * fix: flush wavefront output sender on error to clean up broken connections (#10225)
+  * feat: Add option to disable Wavefront prefix conversion (#10252)
+  * feat: add heap_size_limit field for input.kibana (#10243)
+  * fix: use sha256 for RPM digest (#10272)
+  * feat: Update underlying KNX library to support new types. (#10263)
+  * chore: restart service if it is already running and upgraded via RPM (#9970)
+  * feat: update etc/telegraf.conf and etc/telegraf_windows.conf (#10237)
+  * fix: Handle duplicate registration of protocol-buffer files gracefully. (#10188)
+  * fix(http_listener_v2): fix panic on close (#10132)
+  * feat: add Vault input plugin (#10198)
+  * feat: support aws managed service for prometheus (#10202)
+  * fix: Make telegraf compile on Windows with golang 1.16.2 (#10246)
+  * feat: Modbus add per-request tags (#10231)
+  * fix: Implement NaN and inf handling for elasticsearch output (#10196)
+  * feat: add nomad input plugin (#10106)
+  * fix: Print loaded plugins and deprecations for once and test (#10205)
+  * fix: eliminate MIB dependency for ifname processor (#10214)
+  * feat: Optimize locking for SNMP MIBs loading. (#10206)
+  * feat: Add SMART plugin concurrency configuration option, nvme-cli v1.14+ support and lint fixes. (#10150)
+  * feat: update configs (#10236)
+  * fix(inputs/kube_inventory): set TLS server name config properly (#9975)
+  * fix: Sudden close of Telegraf caused by OPC UA input plugin (#10230)
+  * fix: bump github.com/eclipse/paho.mqtt.golang from 1.3.0 to 1.3.5 (#9913)
+  * fix: json_v2 parser timestamp setting (#10221)
+  * fix: ensure graylog spec fields not prefixed with '_' (#10209)
+  * docs: remove duplicate links in CONTRIBUTING.md (#10218)
+  * fix: pool detection and metrics gathering for ZFS >= 2.1.x (#10099)
+  * fix: parallelism fix for ifname processor (#10007)
+  * chore: Forbids "log" package only for aggregators, inputs, outputs, parsers and processors (#10191)
+  * docs: address documentation gap when running telegraf in k8s (#10215)
+  * feat: update etc/telegraf.conf and etc/telegraf_windows.conf (#10211)
+  * fix: mqtt topic extracting no longer requires all three fields (#10208)
+  * fix: windows service - graceful shutdown of telegraf (#9616)
+  * feat: update etc/telegraf.conf and etc/telegraf_windows.conf (#10201)
+  * feat: Modbus support multiple slaves (gateway feature) (#9279)
+  * fix: Revert unintented corruption of the Makefile from #10200. (#10203)
+  * chore: remove triggering update-config bot in CI (#10195)
+
+-------------------------------------------------------------------
+Mon Apr 25 18:06:57 UTC 2022 - jkowalczyk@suse.com
+
+- Update to version 1.21.4:
+  * fix: ensure folders do not get loaded more than once (#10551)
+  * docs: update VMWare doc links (#10663)
+  * fix: prometheusremotewrite wrong timestamp unit (#10547)
+  * docs: override reported OpenSearch version (#10586)
+  * fix: bump all go.opentelemetry.io dependencies (#10647)
+  * chore: update go to 1.17.7 (#10658)
+  * fix: check for nil client before closing in amqp (#10635)
+  * fix: timestamp change during execution of json_v2 parser. (#10657)
+  * fix: bump github.com/signalfx/golib/v3 from 3.3.38 to 3.3.43 (#10652)
+  * fix: bump github.com/aliyun/alibaba-cloud-sdk-go (#10653)
+  * fix: incorrect handling of json_v2 timestamp_path (#10618)
+  * fix: Revert deprecation of http_listener_v2 (#10648)
+  * fix: bump github.com/denisenkom/go-mssqldb from 0.10.0 to 0.12.0 (#10503)
+  * fix: bump github.com/gopcua/opcua from 0.2.3 to 0.3.1 (#10626)
+  * fix: update go.mod
+  * fix: use current time as ecs timestamp (#10636)
+  * fix(outputs/azure_data_explorer): Added azureBlob controls to lower RAM usage (#10179)
+  * fix: bump github.com/nats-io/nats-server/v2 from 2.6.5 to 2.7.2 (#10638)
+  * chore: add -race flag to go tests (#10629)
+  * fix: license doc outdated causing CI failure (#10630)
+  * fix: bump k8s.io/client-go from 0.22.2 to 0.23.3 (#10589)
+  * docs: update quay docs for auth (#10612)
+  * chore: allow downgrade of go version in windows script (#10614)
+  * chore: update CI go to 1.17.6 (#10611)
+  * fix: bump github.com/aws/aws-sdk-go-v2/service/kinesis from 1.6.0 to 1.13.0 (#10601)
+  * refactor: use early return pattern (#10591)
+  * fix: bump github.com/benbjohnson/clock from 1.1.0 to 1.3.0 (#10588)
+  * fix: bump github.com/Azure/azure-kusto-go from 0.5.0 to 0.5.2 (#10598)
+  * fix(parsers.json_v2): allow optional paths and handle wrong paths correctly (#10468)
+  * fix[elasticsearch output]: add scheme to fix error in sniffing option (#10513)
+  * chore: fix typo in bug report template (#10582)
+  * style: Add deprecated warning and version to win_perf_counters option (#10579)
+  * fix: bump github.com/vmware/govmomi from 0.27.2 to 0.27.3 (#10571)
+  * fix: bump github.com/prometheus/client_golang from 1.11.0 to 1.12.1 (#10572)
+  * fix: remove signed macOS dotfile artifacts (#10560)
+  * fix: bump go.mongodb.org/mongo-driver from 1.7.3 to 1.8.3 (#10564)
+  * fix: bump github.com/google/go-cmp from 0.5.6 to 0.5.7 (#10563)
+  * fix: bump go.opentelemetry.io/collector/model from 0.39.0 to 0.43.2 (#10562)
+  * fix: bump github.com/multiplay/go-ts3 from 1.0.0 to 1.0.1 (#10538)
+  * fix: bump cloud.google.com/go/monitoring from 0.2.0 to 1.2.0 (#10454)
+  * fix: bump github.com/vmware/govmomi from 0.26.0 to 0.27.2 (#10536)
+  * docs: add apt and knot to EXTERNAL_PLUGINS.md (#10552)
+  * fix: update docker memory usage calculation (#10491)
+
+-------------------------------------------------------------------
+Mon Apr 25 18:04:22 UTC 2022 - jkowalczyk@suse.com
+
+- Update to version 1.21.3:
+  * Update license of dependencies file
+  * fix: collapsed fields by calling more indepth function (#10430)
+  * docs: Update deprecation readme (#10529)
+  * chore: update grpc to v1.44.0 (#10525)
+  * fix: bump google.golang.org/api from 0.54.0 to 0.65.0 (#10434)
+  * fix: typo in docs (#10441)
+  * fix: bump github.com/antchfx/xmlquery from 1.3.6 to 1.3.9 (#10507)
+  * fix: bump github.com/nsqio/go-nsq from 1.0.8 to 1.1.0 (#10521)
+  * fix: bump github.com/prometheus/common from 0.31.1 to 0.32.1 (#10506)
+  * fix: ipset crash when command not found (#10474)
+  * fix: bump cloud.google.com/go/pubsub from 1.17.0 to 1.17.1 (#10504)
+  * fix: bump github.com/influxdata/influxdb-observability/influx2otel from 0.2.8 to 0.2.10 (#10432)
+  * fix: Update modbus readme (#10501)
+  * Fix: Update README.md (#10500)
+  * docs: Fixes for input/sql readme (#10498)
+  * fix: graylog readme to use graylog 3 URLs (#10481)
+  * fix: add RFC3164 to RFC5424 translation to docs (#10480)
+  * fix: add comment to logparser (#10479)
+  * chore: Add `openConnections` to enterprise cluster metrics Readme (#10483)
+  * fix: remove duplicate addition of fields (#10478)
+  * fix(parsers.nagios): nagios parser now uses real error for logging #10472 (#10473)
+  * fix: add newline in execd for prometheus parsing (#10463)
+  * fix: bump github.com/shirou/gopsutil/v3 from 3.21.10 to 3.21.12 (#10451)
+  * fix: do not save cache on i386 builds (#10464)
+  * chore: readme escape rpm variables
+  * fix: address flaky tests in cookie_test.go and graylog_test.go (#10326)
+  * fix: ensure CI tests runs against i386 (#10457)
+  * fix: bump github.com/jackc/pgx/v4 from 4.6.0 to 4.14.1 (#10453)
+  * fix: bump github.com/Azure/azure-event-hubs-go/v3 from 3.3.13 to 3.3.17 (#10449)
+  * fix: bump github.com/gosnmp/gosnmp from 1.33.0 to 1.34.0 (#10450)
+  * fix: wavefront_disable_prefix_conversion case missing from missingTomlField func (#10442)
+  * fix: bump github.com/hashicorp/consul/api from 1.9.1 to 1.12.0 (#10435)
+  * fix: bump github.com/antchfx/jsonquery from 1.1.4 to 1.1.5 (#10433)
+  * fix: bump github.com/prometheus/procfs from 0.6.0 to 0.7.3 (#10414)
+  * fix: snmp input plugin errors if mibs folder doesn't exist (#10346) (#10354)
+  * fix: correctly set ASCII trailer for syslog output (#10393)
+  * chore: go mod tidy (#10423)
+  * fix: bump github.com/aws/aws-sdk-go-v2/service/cloudwatchlogs from 1.5.2 to 1.12.0 (#10415)
+  * fix: bump github.com/kardianos/service from 1.0.0 to 1.2.1 (#10416)
+  * fix: ensure http body is empty (#10396)
+  * fix: bump github.com/couchbase/go-couchbase from 0.1.0 to 0.1.1 (#10417)
+  * fix(json_v2): use raw values for timestamps (#10413)
+  * fix: bump github.com/pion/dtls/v2 from 2.0.9 to 2.0.13 (#10418)
+  * chore: update mqtt documentation (#10394)
+  * fix: update containerd to 1.5.9 (#10402)
+  * fix: Fix batching logic with write records, introduce concurrent requests (#8947)
+  * fix(outputs/amqp): Close the last connection when writing error to avoid connection leaks (#10360)
+  * fix: cumulative interval start times for stackdriver output (#10097)
+  * fix: Make telegraf compile on Windows with golang 1.16.2 (#10246)
+
 -------------------------------------------------------------------
 Fri Jan 21 09:20:49 UTC 2022 - Felix Niederwanger <felix.niederwanger@suse.com>
 
diff --git a/telegraf.spec b/telegraf.spec
index 0a686c1..10f5250 100644
--- a/telegraf.spec
+++ b/telegraf.spec
@@ -18,7 +18,7 @@
 
 %define _config_dir %{_sysconfdir}/%{name}
 Name:           telegraf
-Version:        1.21.2
+Version:        1.22.1
 Release:        0
 Summary:        The plugin-driven server agent for collecting & reporting metrics
 License:        MIT
diff --git a/vendor.tar.xz b/vendor.tar.xz
index f549ba2..3298704 100644
--- a/vendor.tar.xz
+++ b/vendor.tar.xz
@@ -1,3 +1,3 @@
 version https://git-lfs.github.com/spec/v1
-oid sha256:9e81f1c36f2cec1936dd22167d63cc7d168c48b18c555987f82505f6e67846f9
-size 17771852
+oid sha256:8f27fca236fce8ab696c14784319824304945f44fee97b40b8c98b6a8f26867d
+size 248872960