diff --git a/Cloud/telegraf/1.36.2/24.03-lts-sp2/Dockerfile b/Cloud/telegraf/1.36.2/24.03-lts-sp2/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..42449c2573da511239061d5535dea863c96ba972 --- /dev/null +++ b/Cloud/telegraf/1.36.2/24.03-lts-sp2/Dockerfile @@ -0,0 +1,20 @@ +ARG BASE=openeuler/openeuler:24.03-lts-sp2 +FROM ${BASE} + +ARG TARGETARCH +ARG VERSION=1.36.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/Cloud/telegraf/1.36.2/24.03-lts-sp2/telegraf.conf b/Cloud/telegraf/1.36.2/24.03-lts-sp2/telegraf.conf new file mode 100644 index 0000000000000000000000000000000000000000..fdccd790e62bd3c8b8e7e6195cb1464fbf83e1a8 --- /dev/null +++ b/Cloud/telegraf/1.36.2/24.03-lts-sp2/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/Cloud/telegraf/README.md b/Cloud/telegraf/README.md index 3ad02267f79b566f10c6ed6fe18cf0c16b54c496..2d6dd7d1b566b833165671cf3a0f28e532fb0e10 100644 --- a/Cloud/telegraf/README.md +++ b/Cloud/telegraf/README.md @@ -17,6 +17,7 @@ Learn more on [Telegraf website](https://docs.influxdata.com/telegraf/v1/). The tag of each `telegraf` docker image is consist of the version of `telegraf` and the version of basic image. The details are as follows | Tag | Currently | Architectures | |----------|-------------|------------------| +|[1.36.2-oe2403sp2](https://gitee.com/openeuler/openeuler-docker-images/blob/master/Cloud/telegraf/1.36.2/24.03-lts-sp2/Dockerfile) | telegraf 1.36.2 on openEuler 24.03-LTS-SP2 | amd64, arm64 | |[1.36.1-oe2403sp2](https://gitee.com/openeuler/openeuler-docker-images/blob/master/Cloud/telegraf/1.36.1/24.03-lts-sp2/Dockerfile) | telegraf 1.36.1 on openEuler 24.03-LTS-SP2 | amd64, arm64 | |[1.35.4-oe2403sp1](https://gitee.com/openeuler/openeuler-docker-images/blob/master/Cloud/telegraf/1.35.4/24.03-lts-sp1/Dockerfile) | telegraf 1.35.4 on openEuler 24.03-LTS-SP1 | amd64, arm64 | |[1.29.5-oe2203sp3](https://gitee.com/openeuler/openeuler-docker-images/blob/master/Cloud/telegraf/1.29.5/22.03-lts-sp3/Dockerfile)| Telegraf 1.29.5 on openEuler 22.03-LTS-SP3 | amd64, arm64 | diff --git a/Cloud/telegraf/doc/image-info.yml b/Cloud/telegraf/doc/image-info.yml index 91d9ecc6d9fa73e667d14858fa98b6df57e08480..c0ee122f55ba3ca148a0b56b3d307aded79eace0 100644 --- a/Cloud/telegraf/doc/image-info.yml +++ b/Cloud/telegraf/doc/image-info.yml @@ -11,6 +11,7 @@ tags: | | Tag | Currently | Architectures | |----------|-------------|------------------| + |[1.36.2-oe2403sp2](https://gitee.com/openeuler/openeuler-docker-images/blob/master/Cloud/telegraf/1.36.2/24.03-lts-sp2/Dockerfile) | telegraf 1.36.2 on openEuler 24.03-LTS-SP2 | amd64, arm64 | |[1.36.1-oe2403sp2](https://gitee.com/openeuler/openeuler-docker-images/blob/master/Cloud/telegraf/1.36.1/24.03-lts-sp2/Dockerfile) | telegraf 1.36.1 on openEuler 24.03-LTS-SP2 | amd64, arm64 | |[1.35.4-oe2403sp1](https://gitee.com/openeuler/openeuler-docker-images/blob/master/Cloud/telegraf/1.35.4/24.03-lts-sp1/Dockerfile) | telegraf 1.35.4 on openEuler 24.03-LTS-SP1 | amd64, arm64 | |[1.29.5-oe2203sp3](https://gitee.com/openeuler/openeuler-docker-images/blob/master/Cloud/telegraf/1.29.5/22.03-lts-sp3/Dockerfile)| Telegraf 1.29.5 on openEuler 22.03-LTS-SP3 | amd64, arm64 | diff --git a/Cloud/telegraf/meta.yml b/Cloud/telegraf/meta.yml index 4e3a818822cffed29ad9c9ce68d98385b29e6b80..3a0beee8bb4617170c45f3e2c102f041660e11f5 100644 --- a/Cloud/telegraf/meta.yml +++ b/Cloud/telegraf/meta.yml @@ -55,4 +55,6 @@ 1.35.4-oe2403sp1: path: 1.35.4/24.03-lts-sp1/Dockerfile 1.36.1-oe2403sp2: - path: 1.36.1/24.03-lts-sp2/Dockerfile \ No newline at end of file + path: 1.36.1/24.03-lts-sp2/Dockerfile +1.36.2-oe2403sp2: + path: 1.36.2/24.03-lts-sp2/Dockerfile \ No newline at end of file