Sunday, November 01, 2020

UPDATE: sysutils/telegraf

Update telegraf to 1.13.4, this is the last version that packs with
dep/Gopkg.toml. Tommy Scheunemann pointed out to me, that we can remove
some plugins.

Due to lack of time, I have not tested this version yet. If someone
wants to test this I would be grateful.

Rafael

Index: Makefile
===================================================================
RCS file: /cvs/ports/sysutils/telegraf/Makefile,v
retrieving revision 1.8
diff -u -p -u -p -r1.8 Makefile
--- Makefile 7 May 2020 14:24:53 -0000 1.8
+++ Makefile 1 Nov 2020 08:47:44 -0000
@@ -7,8 +7,9 @@ BROKEN-arm = build fails, no error messa

GH_ACCOUNT = influxdata
GH_PROJECT = telegraf
-GH_TAGNAME = 1.12.3
+GH_TAGNAME = 1.13.4
HOMEPAGE = https://influxdata.com
+
# selfhosted because we bundle go deps
MASTER_SITES = https://sizeofvoid.org/pub/OpenBSD/distfiles/

Index: distinfo
===================================================================
RCS file: /cvs/ports/sysutils/telegraf/distinfo,v
retrieving revision 1.2
diff -u -p -u -p -r1.2 distinfo
--- distinfo 12 Nov 2019 22:31:23 -0000 1.2
+++ distinfo 1 Nov 2020 08:47:44 -0000
@@ -1,2 +1,2 @@
-SHA256 (telegraf-1.12.3.tar.gz) = 8SSUYLNR0GBsb2rNx5l0wqsXx1Cv4PoK8x2xqHw56AQ=
-SIZE (telegraf-1.12.3.tar.gz) = 127591107
+SHA256 (telegraf-1.13.4.tar.gz) = I7ByhpisykRqbC9RdL/qso4foETihDRbnzBm3egTUrE=
+SIZE (telegraf-1.13.4.tar.gz) = 143181639
Index: patches/patch-plugins_inputs_all_all_go
===================================================================
RCS file: patches/patch-plugins_inputs_all_all_go
diff -N patches/patch-plugins_inputs_all_all_go
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-plugins_inputs_all_all_go 1 Nov 2020 08:47:44 -0000
@@ -0,0 +1,67 @@
+$OpenBSD$
+
+Remove linux only plugins
+
+Index: plugins/inputs/all/all.go
+--- plugins/inputs/all/all.go.orig
++++ plugins/inputs/all/all.go
+@@ -33,12 +33,9 @@ import (
+ _ "github.com/influxdata/telegraf/plugins/inputs/disque"
+ _ "github.com/influxdata/telegraf/plugins/inputs/dmcache"
+ _ "github.com/influxdata/telegraf/plugins/inputs/dns_query"
+- _ "github.com/influxdata/telegraf/plugins/inputs/docker"
+- _ "github.com/influxdata/telegraf/plugins/inputs/docker_log"
+ _ "github.com/influxdata/telegraf/plugins/inputs/dovecot"
+ _ "github.com/influxdata/telegraf/plugins/inputs/ecs"
+ _ "github.com/influxdata/telegraf/plugins/inputs/elasticsearch"
+- _ "github.com/influxdata/telegraf/plugins/inputs/ethtool"
+ _ "github.com/influxdata/telegraf/plugins/inputs/exec"
+ _ "github.com/influxdata/telegraf/plugins/inputs/fail2ban"
+ _ "github.com/influxdata/telegraf/plugins/inputs/fibaro"
+@@ -62,7 +59,6 @@ import (
+ _ "github.com/influxdata/telegraf/plugins/inputs/interrupts"
+ _ "github.com/influxdata/telegraf/plugins/inputs/ipmi_sensor"
+ _ "github.com/influxdata/telegraf/plugins/inputs/ipset"
+- _ "github.com/influxdata/telegraf/plugins/inputs/iptables"
+ _ "github.com/influxdata/telegraf/plugins/inputs/ipvs"
+ _ "github.com/influxdata/telegraf/plugins/inputs/jenkins"
+ _ "github.com/influxdata/telegraf/plugins/inputs/jolokia"
+@@ -71,14 +67,11 @@ import (
+ _ "github.com/influxdata/telegraf/plugins/inputs/kafka_consumer"
+ _ "github.com/influxdata/telegraf/plugins/inputs/kafka_consumer_legacy"
+ _ "github.com/influxdata/telegraf/plugins/inputs/kapacitor"
+- _ "github.com/influxdata/telegraf/plugins/inputs/kernel"
+- _ "github.com/influxdata/telegraf/plugins/inputs/kernel_vmstat"
+ _ "github.com/influxdata/telegraf/plugins/inputs/kibana"
+ _ "github.com/influxdata/telegraf/plugins/inputs/kinesis_consumer"
+ _ "github.com/influxdata/telegraf/plugins/inputs/kube_inventory"
+ _ "github.com/influxdata/telegraf/plugins/inputs/kubernetes"
+ _ "github.com/influxdata/telegraf/plugins/inputs/leofs"
+- _ "github.com/influxdata/telegraf/plugins/inputs/linux_sysctl_fs"
+ _ "github.com/influxdata/telegraf/plugins/inputs/logparser"
+ _ "github.com/influxdata/telegraf/plugins/inputs/logstash"
+ _ "github.com/influxdata/telegraf/plugins/inputs/lustre2"
+@@ -105,7 +98,6 @@ import (
+ _ "github.com/influxdata/telegraf/plugins/inputs/nginx_vts"
+ _ "github.com/influxdata/telegraf/plugins/inputs/nsq"
+ _ "github.com/influxdata/telegraf/plugins/inputs/nsq_consumer"
+- _ "github.com/influxdata/telegraf/plugins/inputs/nstat"
+ _ "github.com/influxdata/telegraf/plugins/inputs/ntpq"
+ _ "github.com/influxdata/telegraf/plugins/inputs/nvidia_smi"
+ _ "github.com/influxdata/telegraf/plugins/inputs/openldap"
+@@ -148,7 +140,6 @@ import (
+ _ "github.com/influxdata/telegraf/plugins/inputs/syslog"
+ _ "github.com/influxdata/telegraf/plugins/inputs/sysstat"
+ _ "github.com/influxdata/telegraf/plugins/inputs/system"
+- _ "github.com/influxdata/telegraf/plugins/inputs/systemd_units"
+ _ "github.com/influxdata/telegraf/plugins/inputs/tail"
+ _ "github.com/influxdata/telegraf/plugins/inputs/tcp_listener"
+ _ "github.com/influxdata/telegraf/plugins/inputs/teamspeak"
+@@ -165,7 +156,6 @@ import (
+ _ "github.com/influxdata/telegraf/plugins/inputs/webhooks"
+ _ "github.com/influxdata/telegraf/plugins/inputs/win_perf_counters"
+ _ "github.com/influxdata/telegraf/plugins/inputs/win_services"
+- _ "github.com/influxdata/telegraf/plugins/inputs/wireless"
+ _ "github.com/influxdata/telegraf/plugins/inputs/x509_cert"
+ _ "github.com/influxdata/telegraf/plugins/inputs/zfs"
+ _ "github.com/influxdata/telegraf/plugins/inputs/zipkin"

No comments:

Post a Comment