From 38940645f8393b40705d880d36876707bdf1dc8a Mon Sep 17 00:00:00 2001 From: openeuler_bot <673672685@qq.com> Date: Thu, 20 Feb 2025 14:57:44 +0000 Subject: [PATCH 1/4] 24.03-lts update telegraf to 1.33.2 --- telegraf/1.33.2/24.03-lts/Dockerfile | 20 +++++++ telegraf/1.33.2/24.03-lts/telegraf.conf | 72 +++++++++++++++++++++++++ telegraf/meta.yml | 4 +- 3 files changed, 95 insertions(+), 1 deletion(-) create mode 100644 telegraf/1.33.2/24.03-lts/Dockerfile create mode 100644 telegraf/1.33.2/24.03-lts/telegraf.conf diff --git a/telegraf/1.33.2/24.03-lts/Dockerfile b/telegraf/1.33.2/24.03-lts/Dockerfile new file mode 100644 index 00000000..0c202ee6 --- /dev/null +++ b/telegraf/1.33.2/24.03-lts/Dockerfile @@ -0,0 +1,20 @@ +ARG BASE=openeuler/openeuler:24.03-lts +FROM ${BASE} + +ARG TARGETARCH +ARG VERSION=1.33.2 + +COPY telegraf.conf /etc/telegraf/ + +RUN if [ "$TARGETARCH" = "amd64" ]; then \ + BUILDARCH="x86_64"; \ + elif [ "$TARGETARCH" = "arm64" ]; then \ + BUILDARCH="aarch64"; \ + fi && \ + curl -fSL --output /tmp/telegraf.rpm https://repos.influxdata.com/stable/${BUILDARCH}/main/telegraf-${VERSION}-1.${BUILDARCH}.rpm && \ + yum -y install /tmp/telegraf.rpm && \ + rm -f /tmp/telegraf.rpm + +EXPOSE 8094 + +CMD ["telegraf"] \ No newline at end of file diff --git a/telegraf/1.33.2/24.03-lts/telegraf.conf b/telegraf/1.33.2/24.03-lts/telegraf.conf new file mode 100644 index 00000000..fdccd790 --- /dev/null +++ b/telegraf/1.33.2/24.03-lts/telegraf.conf @@ -0,0 +1,72 @@ +# Telegraf Configuration + +# Global tags can be specified here in key="value" format. +[global_tags] + +# Configuration for telegraf agent +[agent] + ## Default data collection interval for all inputs + interval = "10s" + ## Rounds collection interval to 'interval' + round_interval = true + + ## metric_batch_size metrics. + metric_batch_size = 1000 + + ## Maximum number of unwritten metrics per output. Increasing this value + metric_buffer_limit = 10000 + collection_jitter = "0s" + flush_interval = "10s" + flush_jitter = "0s" + precision = "" + + ## Override default hostname, if empty use os.Hostname() + hostname = "" + ## If set to true, do no set the "host" tag in the telegraf agent. + omit_hostname = false +# Configuration for the Prometheus client to spawn +[[outputs.prometheus_client]] + ## Address to listen on + listen = ":8094" + + ## Metric version controls the mapping from Telegraf metrics into + metric_version = 2 +# Read metrics about cpu usage +[[inputs.cpu]] + ## Whether to report per-cpu stats or not + percpu = true + ## Whether to report total system cpu stats or not + totalcpu = true + ## If true, collect raw CPU time metrics. + collect_cpu_time = false + ## If true, compute and report the sum of all non-idle CPU states. + report_active = false + + +# Read metrics about disk usage by mount point +[[inputs.disk]] + ## By default stats will be gathered for all mount points. + ## Set mount_points will restrict the stats to only the specified mount points. + # mount_points = ["/"] + + ## Ignore mount points by filesystem type. + ignore_fs = ["tmpfs", "devtmpfs", "devfs", "iso9660", "overlay", "aufs", "squashfs"] + + +# Read metrics about disk IO by device +[[inputs.diskio]] + +# Get kernel statistics from /proc/stat +[[inputs.kernel]] + +# Read metrics about memory usage +[[inputs.mem]] + +# Get the number of processes and group them by status +[[inputs.processes]] + +# Read metrics about swap memory usage +[[inputs.swap]] + +# Read metrics about system load & uptime +[[inputs.system]] \ No newline at end of file diff --git a/telegraf/meta.yml b/telegraf/meta.yml index 605233da..282f048d 100644 --- a/telegraf/meta.yml +++ b/telegraf/meta.yml @@ -37,4 +37,6 @@ 1.33.0-oe2203sp4: path: telegraf/1.33.0/22.03-lts-sp4/Dockerfile 1.33.0-oe2203sp1: - path: telegraf/1.33.0/22.03-lts-sp1/Dockerfile \ No newline at end of file + path: telegraf/1.33.0/22.03-lts-sp1/Dockerfile +1.33.2-oe2403lts: + path: telegraf/1.33.2/24.03-lts/Dockerfile \ No newline at end of file -- Gitee From 392c710eb31765db8a9a50114b450d340d474f2d Mon Sep 17 00:00:00 2001 From: openeuler_bot <673672685@qq.com> Date: Thu, 20 Feb 2025 14:58:49 +0000 Subject: [PATCH 2/4] 22.03-lts-sp3 update telegraf to 1.33.2 --- telegraf/1.33.2/22.03-lts-sp3/Dockerfile | 20 ++++++ telegraf/1.33.2/22.03-lts-sp3/telegraf.conf | 72 +++++++++++++++++++++ telegraf/meta.yml | 4 +- 3 files changed, 95 insertions(+), 1 deletion(-) create mode 100644 telegraf/1.33.2/22.03-lts-sp3/Dockerfile create mode 100644 telegraf/1.33.2/22.03-lts-sp3/telegraf.conf diff --git a/telegraf/1.33.2/22.03-lts-sp3/Dockerfile b/telegraf/1.33.2/22.03-lts-sp3/Dockerfile new file mode 100644 index 00000000..27ff79f0 --- /dev/null +++ b/telegraf/1.33.2/22.03-lts-sp3/Dockerfile @@ -0,0 +1,20 @@ +ARG BASE=openeuler/openeuler:22.03-lts-sp3 +FROM ${BASE} + +ARG TARGETARCH +ARG VERSION=1.33.2 + +COPY telegraf.conf /etc/telegraf/ + +RUN if [ "$TARGETARCH" = "amd64" ]; then \ + BUILDARCH="x86_64"; \ + elif [ "$TARGETARCH" = "arm64" ]; then \ + BUILDARCH="aarch64"; \ + fi && \ + curl -fSL --output /tmp/telegraf.rpm https://repos.influxdata.com/stable/${BUILDARCH}/main/telegraf-${VERSION}-1.${BUILDARCH}.rpm && \ + yum -y install /tmp/telegraf.rpm && \ + rm -f /tmp/telegraf.rpm + +EXPOSE 8094 + +CMD ["telegraf"] \ No newline at end of file diff --git a/telegraf/1.33.2/22.03-lts-sp3/telegraf.conf b/telegraf/1.33.2/22.03-lts-sp3/telegraf.conf new file mode 100644 index 00000000..fdccd790 --- /dev/null +++ b/telegraf/1.33.2/22.03-lts-sp3/telegraf.conf @@ -0,0 +1,72 @@ +# Telegraf Configuration + +# Global tags can be specified here in key="value" format. +[global_tags] + +# Configuration for telegraf agent +[agent] + ## Default data collection interval for all inputs + interval = "10s" + ## Rounds collection interval to 'interval' + round_interval = true + + ## metric_batch_size metrics. + metric_batch_size = 1000 + + ## Maximum number of unwritten metrics per output. Increasing this value + metric_buffer_limit = 10000 + collection_jitter = "0s" + flush_interval = "10s" + flush_jitter = "0s" + precision = "" + + ## Override default hostname, if empty use os.Hostname() + hostname = "" + ## If set to true, do no set the "host" tag in the telegraf agent. + omit_hostname = false +# Configuration for the Prometheus client to spawn +[[outputs.prometheus_client]] + ## Address to listen on + listen = ":8094" + + ## Metric version controls the mapping from Telegraf metrics into + metric_version = 2 +# Read metrics about cpu usage +[[inputs.cpu]] + ## Whether to report per-cpu stats or not + percpu = true + ## Whether to report total system cpu stats or not + totalcpu = true + ## If true, collect raw CPU time metrics. + collect_cpu_time = false + ## If true, compute and report the sum of all non-idle CPU states. + report_active = false + + +# Read metrics about disk usage by mount point +[[inputs.disk]] + ## By default stats will be gathered for all mount points. + ## Set mount_points will restrict the stats to only the specified mount points. + # mount_points = ["/"] + + ## Ignore mount points by filesystem type. + ignore_fs = ["tmpfs", "devtmpfs", "devfs", "iso9660", "overlay", "aufs", "squashfs"] + + +# Read metrics about disk IO by device +[[inputs.diskio]] + +# Get kernel statistics from /proc/stat +[[inputs.kernel]] + +# Read metrics about memory usage +[[inputs.mem]] + +# Get the number of processes and group them by status +[[inputs.processes]] + +# Read metrics about swap memory usage +[[inputs.swap]] + +# Read metrics about system load & uptime +[[inputs.system]] \ No newline at end of file diff --git a/telegraf/meta.yml b/telegraf/meta.yml index 282f048d..c0db8865 100644 --- a/telegraf/meta.yml +++ b/telegraf/meta.yml @@ -39,4 +39,6 @@ 1.33.0-oe2203sp1: path: telegraf/1.33.0/22.03-lts-sp1/Dockerfile 1.33.2-oe2403lts: - path: telegraf/1.33.2/24.03-lts/Dockerfile \ No newline at end of file + path: telegraf/1.33.2/24.03-lts/Dockerfile +1.33.2-oe2203sp3: + path: telegraf/1.33.2/22.03-lts-sp3/Dockerfile \ No newline at end of file -- Gitee From f558143b17411063663dbd1621168e80be0e43b8 Mon Sep 17 00:00:00 2001 From: openeuler_bot <673672685@qq.com> Date: Thu, 20 Feb 2025 15:00:08 +0000 Subject: [PATCH 3/4] 22.03-lts-sp4 update telegraf to 1.33.2 --- telegraf/1.33.2/22.03-lts-sp4/Dockerfile | 20 ++++++ telegraf/1.33.2/22.03-lts-sp4/telegraf.conf | 72 +++++++++++++++++++++ telegraf/meta.yml | 4 +- 3 files changed, 95 insertions(+), 1 deletion(-) create mode 100644 telegraf/1.33.2/22.03-lts-sp4/Dockerfile create mode 100644 telegraf/1.33.2/22.03-lts-sp4/telegraf.conf diff --git a/telegraf/1.33.2/22.03-lts-sp4/Dockerfile b/telegraf/1.33.2/22.03-lts-sp4/Dockerfile new file mode 100644 index 00000000..9cf7e9ea --- /dev/null +++ b/telegraf/1.33.2/22.03-lts-sp4/Dockerfile @@ -0,0 +1,20 @@ +ARG BASE=openeuler/openeuler:22.03-lts-sp4 +FROM ${BASE} + +ARG TARGETARCH +ARG VERSION=1.33.2 + +COPY telegraf.conf /etc/telegraf/ + +RUN if [ "$TARGETARCH" = "amd64" ]; then \ + BUILDARCH="x86_64"; \ + elif [ "$TARGETARCH" = "arm64" ]; then \ + BUILDARCH="aarch64"; \ + fi && \ + curl -fSL --output /tmp/telegraf.rpm https://repos.influxdata.com/stable/${BUILDARCH}/main/telegraf-${VERSION}-1.${BUILDARCH}.rpm && \ + yum -y install /tmp/telegraf.rpm && \ + rm -f /tmp/telegraf.rpm + +EXPOSE 8094 + +CMD ["telegraf"] \ No newline at end of file diff --git a/telegraf/1.33.2/22.03-lts-sp4/telegraf.conf b/telegraf/1.33.2/22.03-lts-sp4/telegraf.conf new file mode 100644 index 00000000..fdccd790 --- /dev/null +++ b/telegraf/1.33.2/22.03-lts-sp4/telegraf.conf @@ -0,0 +1,72 @@ +# Telegraf Configuration + +# Global tags can be specified here in key="value" format. +[global_tags] + +# Configuration for telegraf agent +[agent] + ## Default data collection interval for all inputs + interval = "10s" + ## Rounds collection interval to 'interval' + round_interval = true + + ## metric_batch_size metrics. + metric_batch_size = 1000 + + ## Maximum number of unwritten metrics per output. Increasing this value + metric_buffer_limit = 10000 + collection_jitter = "0s" + flush_interval = "10s" + flush_jitter = "0s" + precision = "" + + ## Override default hostname, if empty use os.Hostname() + hostname = "" + ## If set to true, do no set the "host" tag in the telegraf agent. + omit_hostname = false +# Configuration for the Prometheus client to spawn +[[outputs.prometheus_client]] + ## Address to listen on + listen = ":8094" + + ## Metric version controls the mapping from Telegraf metrics into + metric_version = 2 +# Read metrics about cpu usage +[[inputs.cpu]] + ## Whether to report per-cpu stats or not + percpu = true + ## Whether to report total system cpu stats or not + totalcpu = true + ## If true, collect raw CPU time metrics. + collect_cpu_time = false + ## If true, compute and report the sum of all non-idle CPU states. + report_active = false + + +# Read metrics about disk usage by mount point +[[inputs.disk]] + ## By default stats will be gathered for all mount points. + ## Set mount_points will restrict the stats to only the specified mount points. + # mount_points = ["/"] + + ## Ignore mount points by filesystem type. + ignore_fs = ["tmpfs", "devtmpfs", "devfs", "iso9660", "overlay", "aufs", "squashfs"] + + +# Read metrics about disk IO by device +[[inputs.diskio]] + +# Get kernel statistics from /proc/stat +[[inputs.kernel]] + +# Read metrics about memory usage +[[inputs.mem]] + +# Get the number of processes and group them by status +[[inputs.processes]] + +# Read metrics about swap memory usage +[[inputs.swap]] + +# Read metrics about system load & uptime +[[inputs.system]] \ No newline at end of file diff --git a/telegraf/meta.yml b/telegraf/meta.yml index c0db8865..8a0b7b96 100644 --- a/telegraf/meta.yml +++ b/telegraf/meta.yml @@ -41,4 +41,6 @@ 1.33.2-oe2403lts: path: telegraf/1.33.2/24.03-lts/Dockerfile 1.33.2-oe2203sp3: - path: telegraf/1.33.2/22.03-lts-sp3/Dockerfile \ No newline at end of file + path: telegraf/1.33.2/22.03-lts-sp3/Dockerfile +1.33.2-oe2203sp4: + path: telegraf/1.33.2/22.03-lts-sp4/Dockerfile \ No newline at end of file -- Gitee From bd4c84f24def08059317dcd8c8e6e6e090fdcf95 Mon Sep 17 00:00:00 2001 From: openeuler_bot <673672685@qq.com> Date: Thu, 20 Feb 2025 15:01:27 +0000 Subject: [PATCH 4/4] 22.03-lts-sp1 update telegraf to 1.33.2 --- telegraf/1.33.2/22.03-lts-sp1/Dockerfile | 20 ++++++ telegraf/1.33.2/22.03-lts-sp1/telegraf.conf | 72 +++++++++++++++++++++ telegraf/meta.yml | 4 +- 3 files changed, 95 insertions(+), 1 deletion(-) create mode 100644 telegraf/1.33.2/22.03-lts-sp1/Dockerfile create mode 100644 telegraf/1.33.2/22.03-lts-sp1/telegraf.conf diff --git a/telegraf/1.33.2/22.03-lts-sp1/Dockerfile b/telegraf/1.33.2/22.03-lts-sp1/Dockerfile new file mode 100644 index 00000000..f10df624 --- /dev/null +++ b/telegraf/1.33.2/22.03-lts-sp1/Dockerfile @@ -0,0 +1,20 @@ +ARG BASE=openeuler/openeuler:22.03-lts-sp1 +FROM ${BASE} + +ARG TARGETARCH +ARG VERSION=1.33.2 + +COPY telegraf.conf /etc/telegraf/ + +RUN if [ "$TARGETARCH" = "amd64" ]; then \ + BUILDARCH="x86_64"; \ + elif [ "$TARGETARCH" = "arm64" ]; then \ + BUILDARCH="aarch64"; \ + fi && \ + curl -fSL --output /tmp/telegraf.rpm https://repos.influxdata.com/stable/${BUILDARCH}/main/telegraf-${VERSION}-1.${BUILDARCH}.rpm && \ + yum -y install /tmp/telegraf.rpm && \ + rm -f /tmp/telegraf.rpm + +EXPOSE 8094 + +CMD ["telegraf"] \ No newline at end of file diff --git a/telegraf/1.33.2/22.03-lts-sp1/telegraf.conf b/telegraf/1.33.2/22.03-lts-sp1/telegraf.conf new file mode 100644 index 00000000..fdccd790 --- /dev/null +++ b/telegraf/1.33.2/22.03-lts-sp1/telegraf.conf @@ -0,0 +1,72 @@ +# Telegraf Configuration + +# Global tags can be specified here in key="value" format. +[global_tags] + +# Configuration for telegraf agent +[agent] + ## Default data collection interval for all inputs + interval = "10s" + ## Rounds collection interval to 'interval' + round_interval = true + + ## metric_batch_size metrics. + metric_batch_size = 1000 + + ## Maximum number of unwritten metrics per output. Increasing this value + metric_buffer_limit = 10000 + collection_jitter = "0s" + flush_interval = "10s" + flush_jitter = "0s" + precision = "" + + ## Override default hostname, if empty use os.Hostname() + hostname = "" + ## If set to true, do no set the "host" tag in the telegraf agent. + omit_hostname = false +# Configuration for the Prometheus client to spawn +[[outputs.prometheus_client]] + ## Address to listen on + listen = ":8094" + + ## Metric version controls the mapping from Telegraf metrics into + metric_version = 2 +# Read metrics about cpu usage +[[inputs.cpu]] + ## Whether to report per-cpu stats or not + percpu = true + ## Whether to report total system cpu stats or not + totalcpu = true + ## If true, collect raw CPU time metrics. + collect_cpu_time = false + ## If true, compute and report the sum of all non-idle CPU states. + report_active = false + + +# Read metrics about disk usage by mount point +[[inputs.disk]] + ## By default stats will be gathered for all mount points. + ## Set mount_points will restrict the stats to only the specified mount points. + # mount_points = ["/"] + + ## Ignore mount points by filesystem type. + ignore_fs = ["tmpfs", "devtmpfs", "devfs", "iso9660", "overlay", "aufs", "squashfs"] + + +# Read metrics about disk IO by device +[[inputs.diskio]] + +# Get kernel statistics from /proc/stat +[[inputs.kernel]] + +# Read metrics about memory usage +[[inputs.mem]] + +# Get the number of processes and group them by status +[[inputs.processes]] + +# Read metrics about swap memory usage +[[inputs.swap]] + +# Read metrics about system load & uptime +[[inputs.system]] \ No newline at end of file diff --git a/telegraf/meta.yml b/telegraf/meta.yml index 8a0b7b96..0275aa87 100644 --- a/telegraf/meta.yml +++ b/telegraf/meta.yml @@ -43,4 +43,6 @@ 1.33.2-oe2203sp3: path: telegraf/1.33.2/22.03-lts-sp3/Dockerfile 1.33.2-oe2203sp4: - path: telegraf/1.33.2/22.03-lts-sp4/Dockerfile \ No newline at end of file + path: telegraf/1.33.2/22.03-lts-sp4/Dockerfile +1.33.2-oe2203sp1: + path: telegraf/1.33.2/22.03-lts-sp1/Dockerfile \ No newline at end of file -- Gitee