git: b306c00db07b - main - net-mgmt/telegraf: Update to 1.22.0

From: Palle Girgensohn <girgen_at_FreeBSD.org>
Date: Fri, 25 Mar 2022 09:08:33 UTC
The branch main has been updated by girgen:

URL: https://cgit.FreeBSD.org/ports/commit/?id=b306c00db07b80036b3edbd422efee1a7dc14e71

commit b306c00db07b80036b3edbd422efee1a7dc14e71
Author:     Palle Girgensohn <girgen@FreeBSD.org>
AuthorDate: 2022-03-25 07:55:45 +0000
Commit:     Palle Girgensohn <girgen@FreeBSD.org>
CommitDate: 2022-03-25 09:08:25 +0000

    net-mgmt/telegraf: Update to 1.22.0
    
    Release notes:  https://github.com/influxdata/telegraf/releases/tag/v1.22.0
---
 net-mgmt/telegraf/Makefile                      |  2 +-
 net-mgmt/telegraf/distinfo                      | 10 +++++-----
 net-mgmt/telegraf/files/patch-etc_telegraf-conf | 16 ++++++++--------
 3 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/net-mgmt/telegraf/Makefile b/net-mgmt/telegraf/Makefile
index 369f9c5f5cb7..8626838e7bac 100644
--- a/net-mgmt/telegraf/Makefile
+++ b/net-mgmt/telegraf/Makefile
@@ -2,7 +2,7 @@
 
 PORTNAME=	telegraf
 DISTVERSIONPREFIX=v
-DISTVERSION=	1.21.4
+DISTVERSION=	1.22.0
 CATEGORIES=	net-mgmt
 
 MAINTAINER=	girgen@FreeBSD.org
diff --git a/net-mgmt/telegraf/distinfo b/net-mgmt/telegraf/distinfo
index 18dfb7c47719..be552cc716a7 100644
--- a/net-mgmt/telegraf/distinfo
+++ b/net-mgmt/telegraf/distinfo
@@ -1,5 +1,5 @@
-TIMESTAMP = 1645049112
-SHA256 (go/net-mgmt_telegraf/telegraf-v1.21.4/v1.21.4.mod) = 5099d1df27012db4eaa4a41e8e92f95b6889f816ec33c53366a265b10c7f00b4
-SIZE (go/net-mgmt_telegraf/telegraf-v1.21.4/v1.21.4.mod) = 19353
-SHA256 (go/net-mgmt_telegraf/telegraf-v1.21.4/v1.21.4.zip) = adf9a1344cba792ab4920c65d526cb8f64f3d054feb094cca597c21030e64591
-SIZE (go/net-mgmt_telegraf/telegraf-v1.21.4/v1.21.4.zip) = 4251366
+TIMESTAMP = 1648074144
+SHA256 (go/net-mgmt_telegraf/telegraf-v1.22.0/v1.22.0.mod) = 9521f1a04f5f061431ff5c49879ff0f9aae279e46eb1942432b678ad3c49b929
+SIZE (go/net-mgmt_telegraf/telegraf-v1.22.0/v1.22.0.mod) = 19802
+SHA256 (go/net-mgmt_telegraf/telegraf-v1.22.0/v1.22.0.zip) = 2ebef7d1bbb7a4408395b4b414ee01a3553e9fbe30b11fc02809bdc7aee9b8a7
+SIZE (go/net-mgmt_telegraf/telegraf-v1.22.0/v1.22.0.zip) = 4452837
diff --git a/net-mgmt/telegraf/files/patch-etc_telegraf-conf b/net-mgmt/telegraf/files/patch-etc_telegraf-conf
index 34976d27d77c..b2591a8c38a1 100644
--- a/net-mgmt/telegraf/files/patch-etc_telegraf-conf
+++ b/net-mgmt/telegraf/files/patch-etc_telegraf-conf
@@ -1,11 +1,11 @@
---- etc/telegraf.conf.orig	2018-08-07 18:32:57 UTC
-+++ etc/telegraf.conf
+--- etc/telegraf.conf.orig	1979-11-30 01:00:00.000000000 +0100
++++ etc/telegraf.conf	2022-03-23 23:38:56.047612000 +0100
 @@ -61,7 +61,7 @@
-   ##       when interval = "250ms", precision will be "1ms"
-   ## Precision will NOT be used for service inputs. It is up to each individual
-   ## service input to set the timestamp at the appropriate precision.
+ 
+   ## Collected metrics are rounded to the precision specified. Precision is
+   ## specified as an interval with an integer + unit (e.g. 0s, 10ms, 2us, 4s).
 -  ## Valid time units are "ns", "us" (or "µs"), "ms", "s".
 +  ## Valid time units are "ns", "us", "ms", "s".
-   precision = ""
- 
-   ## Logging configuration:
+   ##
+   ## By default or when set to "0s", precision will be set to the same
+   ## timestamp order as the collection interval, with the maximum being 1s: