telegraf: update to 1.36.1

- Update Telegraf to v1.36.1
- Adjust "telegraf.conf" to new defaults
- Set HOME environment variable in service file
- Change maintainer

Signed-off-by: Niklas Thorild <niklas@thorild.se>
This commit is contained in:
Niklas Thorild
2025-09-09 11:50:10 +02:00
committed by Wesley Gimenes
parent 5bd131c39d
commit a213eed10d
3 changed files with 63 additions and 17 deletions

View File

@@ -3,14 +3,14 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=telegraf PKG_NAME:=telegraf
PKG_VERSION:=1.35.4 PKG_VERSION:=1.36.1
PKG_RELEASE:=1 PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/influxdata/telegraf/tar.gz/v$(PKG_VERSION)? PKG_SOURCE_URL:=https://codeload.github.com/influxdata/telegraf/tar.gz/v$(PKG_VERSION)?
PKG_HASH:=8f65d493ec0597369cea6fec8a9dfef2fc8833a44cc9291f13397481635f2a6d PKG_HASH:=2478f4c9543300ed44cc0a3329e5a4c6095d9a6eae86aa2deab4ff9d19c1fdd5
PKG_MAINTAINER:=Jonathan Pagel <jonny_tischbein@systemli.org> PKG_MAINTAINER:=Niklas Thorild <niklas@thorild.se>
PKG_LICENSE:=MIT PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=LICENSE PKG_LICENSE_FILES:=LICENSE
@@ -23,7 +23,7 @@ GO_PKG_BUILD_PKG:=github.com/influxdata/telegraf/cmd/telegraf
GO_PKG_LDFLAGS_X := \ GO_PKG_LDFLAGS_X := \
github.com/influxdata/telegraf/internal.Version=$(PKG_VERSION) \ github.com/influxdata/telegraf/internal.Version=$(PKG_VERSION) \
github.com/influxdata/telegraf/internal.Branch=HEAD \ github.com/influxdata/telegraf/internal.Branch=HEAD \
github.com/influxdata/telegraf/internal.Commit=c93eb6a0 github.com/influxdata/telegraf/internal.Commit=cbb7f134
ifeq ($(CONFIG_mips)$(CONFIG_mipsel),y) ifeq ($(CONFIG_mips)$(CONFIG_mipsel),y)
TARGET_LDFLAGS += -static TARGET_LDFLAGS += -static

View File

@@ -8,6 +8,7 @@ STOP=01
start_service() { start_service() {
procd_open_instance procd_open_instance
procd_set_param command /usr/bin/telegraf --config /etc/telegraf.conf procd_set_param command /usr/bin/telegraf --config /etc/telegraf.conf
procd_set_param env HOME=/root
procd_set_param stdout 1 procd_set_param stdout 1
procd_set_param stderr 1 procd_set_param stderr 1
procd_close_instance procd_close_instance

View File

@@ -1023,10 +1023,10 @@
# # use_pipeline = "{{es_pipeline}}" # # use_pipeline = "{{es_pipeline}}"
# # default_pipeline = "my_pipeline" # # default_pipeline = "my_pipeline"
# # # #
# # Custom HTTP headers # ## Custom HTTP Headers
# # To pass custom HTTP headers please define it in a given below section # ## To pass custom HTTP headers please define it in a given below section
# # [outputs.elasticsearch.headers] # # [outputs.elasticsearch.headers]
# # "X-Custom-Header" = "custom-value" # # "X-Custom-Header" = ["custom-value1", "custom-value2"]
# #
# ## Template Index Settings # ## Template Index Settings
# ## Overrides the template settings.index section with any provided options. # ## Overrides the template settings.index section with any provided options.
@@ -1646,8 +1646,8 @@
# ## Kafka topic for producer messages # ## Kafka topic for producer messages
# topic = "telegraf" # topic = "telegraf"
# #
# ## The value of this tag will be used as the topic. If not set the 'topic' # ## Tag value to be used as the topic. If not set or the tag does not exist,
# ## option is used. # ## the 'topic' option is used.
# # topic_tag = "" # # topic_tag = ""
# #
# ## If true, the 'topic_tag' will be removed from to the metric. # ## If true, the 'topic_tag' will be removed from to the metric.
@@ -1753,7 +1753,7 @@
# ## OAUTHBEARER, PLAIN, SCRAM-SHA-256, SCRAM-SHA-512, GSSAPI, AWS-MSK-IAM # ## OAUTHBEARER, PLAIN, SCRAM-SHA-256, SCRAM-SHA-512, GSSAPI, AWS-MSK-IAM
# # sasl_mechanism = "" # # sasl_mechanism = ""
# #
# ## used if sasl_mechanism is GSSAPI # ## Used if sasl_mechanism is GSSAPI
# # sasl_gssapi_service_name = "" # # sasl_gssapi_service_name = ""
# # ## One of: KRB5_USER_AUTH and KRB5_KEYTAB_AUTH # # ## One of: KRB5_USER_AUTH and KRB5_KEYTAB_AUTH
# # sasl_gssapi_auth_type = "KRB5_USER_AUTH" # # sasl_gssapi_auth_type = "KRB5_USER_AUTH"
@@ -1765,7 +1765,7 @@
# ## Access token used if sasl_mechanism is OAUTHBEARER # ## Access token used if sasl_mechanism is OAUTHBEARER
# # sasl_access_token = "" # # sasl_access_token = ""
# #
# ## used if sasl_mechanism is AWS-MSK-IAM # ## Used if sasl_mechanism is AWS-MSK-IAM
# # sasl_aws_msk_iam_region = "" # # sasl_aws_msk_iam_region = ""
# ## for profile based auth # ## for profile based auth
# ## sasl_aws_msk_iam_profile = "" # ## sasl_aws_msk_iam_profile = ""
@@ -1780,7 +1780,7 @@
# ## SASL protocol version. When connecting to Azure EventHub set to 0. # ## SASL protocol version. When connecting to Azure EventHub set to 0.
# # sasl_version = 1 # # sasl_version = 1
# #
# # Disable Kafka metadata full fetch # ## Disable Kafka metadata full fetch
# # metadata_full = false # # metadata_full = false
# #
# ## Maximum number of retries for metadata operations including # ## Maximum number of retries for metadata operations including
@@ -2160,8 +2160,9 @@
# ## Optional NATS 2.0 and NATS NGS compatible user credentials # ## Optional NATS 2.0 and NATS NGS compatible user credentials
# # credentials = "/etc/telegraf/nats.creds" # # credentials = "/etc/telegraf/nats.creds"
# #
# ## NATS subject for producer messages # ## NATS subject for producer messages.
# ## For jetstream this is also the subject where messages will be published # ## This field can be a static string or a Go template, see README for details.
# ## Incompatible with `use_batch_format
# subject = "telegraf" # subject = "telegraf"
# #
# ## Use Transport Layer Security # ## Use Transport Layer Security
@@ -2174,6 +2175,10 @@
# ## Use TLS but skip chain & host verification # ## Use TLS but skip chain & host verification
# # insecure_skip_verify = false # # insecure_skip_verify = false
# #
# ## Use batch serialization instead of per metric. The batch format allows for the
# ## production of batch output formats and may more efficiently encode and write metrics.
# # use_batch_format = false
#
# ## Data format to output. # ## Data format to output.
# ## Each data format has its own unique set of configuration options, read # ## Each data format has its own unique set of configuration options, read
# ## more about them here: # ## more about them here:
@@ -2183,9 +2188,9 @@
# ## Jetstream specific configuration. If not nil, it will assume Jetstream context. # ## Jetstream specific configuration. If not nil, it will assume Jetstream context.
# ## Since this is a table, it should be present at the end of the plugin section. Else you can use inline table format. # ## Since this is a table, it should be present at the end of the plugin section. Else you can use inline table format.
# # [outputs.nats.jetstream] # # [outputs.nats.jetstream]
# ## Name of the stream, required when using jetstream. Telegraf will # ## Name of the stream, required when using jetstream.
# ## use the union of the above subject and below the subjects array.
# # name = "" # # name = ""
# ## List of subjects to register on the stream
# # subjects = [] # # subjects = []
# #
# ## Use asynchronous publishing for higher throughput, but note that it does not guarantee order within batches. # ## Use asynchronous publishing for higher throughput, but note that it does not guarantee order within batches.
@@ -2213,6 +2218,10 @@
# # allow_rollup_hdrs = false # # allow_rollup_hdrs = false
# # allow_direct = true # # allow_direct = true
# # mirror_direct = false # # mirror_direct = false
#
# ## Disable creating the stream but assume the stream is managed externally
# ## and already exists. This will make the plugin fail if the steam does not exist.
# # disable_stream_creation = false
# # Send aggregated metrics to Nebius.Cloud Monitoring # # Send aggregated metrics to Nebius.Cloud Monitoring
@@ -2940,6 +2949,9 @@
# ## Initialization SQL # ## Initialization SQL
# # init_sql = "" # # init_sql = ""
# #
# ## Send metrics with the same columns and the same table as batches using prepared statements
# # batch_transactions = false
#
# ## Maximum amount of time a connection may be idle. "0s" means connections are # ## Maximum amount of time a connection may be idle. "0s" means connections are
# ## never closed due to idle time. # ## never closed due to idle time.
# # connection_max_idle_time = "0s" # # connection_max_idle_time = "0s"
@@ -4191,6 +4203,19 @@
# ## processors.converter after this one, specifying the order attribute. # ## processors.converter after this one, specifying the order attribute.
# # Round numerical fields
# [[processors.round]]
# ## Precision to round to.
# ## A positive number indicates rounding to the right of the decimal separator (i.e. the fractional part).
# ## A negative number indicates rounding to the left of the decimal separator.
# # precision = 0
#
# ## Round only numeric fields matching the filter criteria below.
# ## Excludes takes precedence over includes.
# # include_fields = ["*"]
# # exclude_fields = []
# # Add the S2 Cell ID as a tag based on latitude and longitude fields # # Add the S2 Cell ID as a tag based on latitude and longitude fields
# [[processors.s2geo]] # [[processors.s2geo]]
# ## The name of the lat and lon fields containing WGS-84 latitude and # ## The name of the lat and lon fields containing WGS-84 latitude and
@@ -6365,6 +6390,9 @@
# ## If true, collect metrics from Go's runtime.metrics. For a full list see: # ## If true, collect metrics from Go's runtime.metrics. For a full list see:
# ## https://pkg.go.dev/runtime/metrics # ## https://pkg.go.dev/runtime/metrics
# # collect_gostats = false # # collect_gostats = false
#
# ## Collect statistics per plugin instance and not per plugin type
# # per_instance = false
# # Monitors internet speed using speedtest.net service # # Monitors internet speed using speedtest.net service
@@ -9707,7 +9735,8 @@
# "/etc/ssl/certs/ssl-cert-snakeoil.pem", # "/etc/ssl/certs/ssl-cert-snakeoil.pem",
# "/etc/mycerts/*.mydomain.org.pem", "file:///path/to/*.pem", # "/etc/mycerts/*.mydomain.org.pem", "file:///path/to/*.pem",
# "jks:///etc/mycerts/keystore.jks", # "jks:///etc/mycerts/keystore.jks",
# "pkcs12:///etc/mycerts/keystore.p12"] # "pkcs12:///etc/mycerts/keystore.p12",
# "wincertstore://machine:ROOT", "wincertstore://user:CA"]
# #
# ## Timeout for SSL connection # ## Timeout for SSL connection
# # timeout = "5s" # # timeout = "5s"
@@ -13726,6 +13755,10 @@
# ## For each combination a field is created. # ## For each combination a field is created.
# ## Its name is created concatenating identifier, sdparam_separator, and parameter name. # ## Its name is created concatenating identifier, sdparam_separator, and parameter name.
# # sdparam_separator = "_" # # sdparam_separator = "_"
#
# ## Maximum length allowed for a single message (in bytes when no unit specified)
# ## Only applies to octet-counting framing.
# # max_message_length = "8KiB"
# # Gather information about systemd-unit states # # Gather information about systemd-unit states
@@ -13848,6 +13881,18 @@
# #timeout = 5s # #timeout = 5s
# ## Gather CPU metrics using Turbostat
# [[inputs.turbostat]]
# ## Path to the Turbostat exectuable if not in the PATH
# # path = "/usr/bin/turbostat"
#
# ## Turbostat measurement interval
# # interval = "10s"
#
# ## Use sudo to run the Turbostat executable
# # use_sudo = false
# # Read metrics from the Vault API # # Read metrics from the Vault API
# [[inputs.vault]] # [[inputs.vault]]
# ## URL for the Vault agent # ## URL for the Vault agent