influxdata / telegraf

Agent for collecting, processing, aggregating, and writing metrics, logs, and other arbitrary data.
https://influxdata.com/telegraf
MIT License
14.7k stars 5.59k forks source link

feat(inputs): Add option to choose the metric time source #15917

Closed LarsStegman closed 1 month ago

LarsStegman commented 1 month ago

Summary

Adds the option to set the timestamp to when gathering started/ended

Discussed in #15891

Checklist

Related issues

srebhan commented 1 month ago

@LarsStegman there is no open issue for this I think...

telegraf-tiger[bot] commented 1 month ago

Download PR build artifacts for linux_amd64.tar.gz, darwin_arm64.tar.gz, and windows_amd64.zip. Downloads for additional architectures and packages are available below.

:relaxed: This pull request doesn't significantly change the Telegraf binary size (less than 1%)

:package: Click here to get additional PR build artifacts ## Artifact URLs | DEB | RPM | TAR GZ | ZIP | |------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [amd64.deb](https://output.circle-artifacts.com/output/job/9ebd0913-b6d0-4611-9bac-ef5f35c36911/artifacts/0/build/dist/telegraf_1.33.0~a753fec9-0_amd64.deb) | [aarch64.rpm](https://output.circle-artifacts.com/output/job/9887b7f6-ef42-439f-b757-41b14ccd0193/artifacts/0/build/dist/telegraf-1.33.0~a753fec9-0.aarch64.rpm) | [darwin_amd64.tar.gz](https://output.circle-artifacts.com/output/job/4c629a2a-9073-40cf-9016-04834de3398c/artifacts/0/build/dist/telegraf-1.33.0~a753fec9_darwin_amd64.tar.gz) | [windows_amd64.zip](https://output.circle-artifacts.com/output/job/28e25d81-4e6c-4657-9311-b04967e39f50/artifacts/0/build/dist/telegraf-1.33.0~a753fec9_windows_amd64.zip) | | [arm64.deb](https://output.circle-artifacts.com/output/job/9887b7f6-ef42-439f-b757-41b14ccd0193/artifacts/0/build/dist/telegraf_1.33.0~a753fec9-0_arm64.deb) | [armel.rpm](https://output.circle-artifacts.com/output/job/4950686a-acd7-4137-87b2-5d1eb46bf19b/artifacts/0/build/dist/telegraf-1.33.0~a753fec9-0.armel.rpm) | [darwin_arm64.tar.gz](https://output.circle-artifacts.com/output/job/1470b786-10cf-4230-9ff7-a22f8d03d34a/artifacts/0/build/dist/telegraf-1.33.0~a753fec9_darwin_arm64.tar.gz) | [windows_arm64.zip](https://output.circle-artifacts.com/output/job/28e25d81-4e6c-4657-9311-b04967e39f50/artifacts/0/build/dist/telegraf-1.33.0~a753fec9_windows_arm64.zip) | | [armel.deb](https://output.circle-artifacts.com/output/job/4950686a-acd7-4137-87b2-5d1eb46bf19b/artifacts/0/build/dist/telegraf_1.33.0~a753fec9-0_armel.deb) | [armv6hl.rpm](https://output.circle-artifacts.com/output/job/e8c8f3d1-1548-4680-bf73-514b5ca042af/artifacts/0/build/dist/telegraf-1.33.0~a753fec9-0.armv6hl.rpm) | [freebsd_amd64.tar.gz](https://output.circle-artifacts.com/output/job/9ebd0913-b6d0-4611-9bac-ef5f35c36911/artifacts/0/build/dist/telegraf-1.33.0~a753fec9_freebsd_amd64.tar.gz) | [windows_i386.zip](https://output.circle-artifacts.com/output/job/28e25d81-4e6c-4657-9311-b04967e39f50/artifacts/0/build/dist/telegraf-1.33.0~a753fec9_windows_i386.zip) | | [armhf.deb](https://output.circle-artifacts.com/output/job/e8c8f3d1-1548-4680-bf73-514b5ca042af/artifacts/0/build/dist/telegraf_1.33.0~a753fec9-0_armhf.deb) | [i386.rpm](https://output.circle-artifacts.com/output/job/57bea57a-10e4-4230-8e79-ff470413ac64/artifacts/0/build/dist/telegraf-1.33.0~a753fec9-0.i386.rpm) | [freebsd_armv7.tar.gz](https://output.circle-artifacts.com/output/job/e8c8f3d1-1548-4680-bf73-514b5ca042af/artifacts/0/build/dist/telegraf-1.33.0~a753fec9_freebsd_armv7.tar.gz) | | | [i386.deb](https://output.circle-artifacts.com/output/job/57bea57a-10e4-4230-8e79-ff470413ac64/artifacts/0/build/dist/telegraf_1.33.0~a753fec9-0_i386.deb) | [ppc64le.rpm](https://output.circle-artifacts.com/output/job/ce83d908-d85f-4dde-a9cb-c9d50b1ac033/artifacts/0/build/dist/telegraf-1.33.0~a753fec9-0.ppc64le.rpm) | [freebsd_i386.tar.gz](https://output.circle-artifacts.com/output/job/57bea57a-10e4-4230-8e79-ff470413ac64/artifacts/0/build/dist/telegraf-1.33.0~a753fec9_freebsd_i386.tar.gz) | | | [mips.deb](https://output.circle-artifacts.com/output/job/0941571b-3b8c-492f-943a-1237189fe58d/artifacts/0/build/dist/telegraf_1.33.0~a753fec9-0_mips.deb) | [riscv64.rpm](https://output.circle-artifacts.com/output/job/63b3dd48-3c8c-4a65-b53d-72efe39aa2eb/artifacts/0/build/dist/telegraf-1.33.0~a753fec9-0.riscv64.rpm) | [linux_amd64.tar.gz](https://output.circle-artifacts.com/output/job/9ebd0913-b6d0-4611-9bac-ef5f35c36911/artifacts/0/build/dist/telegraf-1.33.0~a753fec9_linux_amd64.tar.gz) | | | [mipsel.deb](https://output.circle-artifacts.com/output/job/4d139414-518b-4501-958b-56afd79d0894/artifacts/0/build/dist/telegraf_1.33.0~a753fec9-0_mipsel.deb) | [s390x.rpm](https://output.circle-artifacts.com/output/job/fd3ee322-2a22-4f62-86e2-5241acd17d13/artifacts/0/build/dist/telegraf-1.33.0~a753fec9-0.s390x.rpm) | [linux_arm64.tar.gz](https://output.circle-artifacts.com/output/job/9887b7f6-ef42-439f-b757-41b14ccd0193/artifacts/0/build/dist/telegraf-1.33.0~a753fec9_linux_arm64.tar.gz) | | | [ppc64el.deb](https://output.circle-artifacts.com/output/job/ce83d908-d85f-4dde-a9cb-c9d50b1ac033/artifacts/0/build/dist/telegraf_1.33.0~a753fec9-0_ppc64el.deb) | [x86_64.rpm](https://output.circle-artifacts.com/output/job/9ebd0913-b6d0-4611-9bac-ef5f35c36911/artifacts/0/build/dist/telegraf-1.33.0~a753fec9-0.x86_64.rpm) | [linux_armel.tar.gz](https://output.circle-artifacts.com/output/job/4950686a-acd7-4137-87b2-5d1eb46bf19b/artifacts/0/build/dist/telegraf-1.33.0~a753fec9_linux_armel.tar.gz) | | | [riscv64.deb](https://output.circle-artifacts.com/output/job/63b3dd48-3c8c-4a65-b53d-72efe39aa2eb/artifacts/0/build/dist/telegraf_1.33.0~a753fec9-0_riscv64.deb) | | [linux_armhf.tar.gz](https://output.circle-artifacts.com/output/job/e8c8f3d1-1548-4680-bf73-514b5ca042af/artifacts/0/build/dist/telegraf-1.33.0~a753fec9_linux_armhf.tar.gz) | | | [s390x.deb](https://output.circle-artifacts.com/output/job/fd3ee322-2a22-4f62-86e2-5241acd17d13/artifacts/0/build/dist/telegraf_1.33.0~a753fec9-0_s390x.deb) | | [linux_i386.tar.gz](https://output.circle-artifacts.com/output/job/57bea57a-10e4-4230-8e79-ff470413ac64/artifacts/0/build/dist/telegraf-1.33.0~a753fec9_linux_i386.tar.gz) | | | | | [linux_mips.tar.gz](https://output.circle-artifacts.com/output/job/0941571b-3b8c-492f-943a-1237189fe58d/artifacts/0/build/dist/telegraf-1.33.0~a753fec9_linux_mips.tar.gz) | | | | | [linux_mipsel.tar.gz](https://output.circle-artifacts.com/output/job/4d139414-518b-4501-958b-56afd79d0894/artifacts/0/build/dist/telegraf-1.33.0~a753fec9_linux_mipsel.tar.gz) | | | | | [linux_ppc64le.tar.gz](https://output.circle-artifacts.com/output/job/ce83d908-d85f-4dde-a9cb-c9d50b1ac033/artifacts/0/build/dist/telegraf-1.33.0~a753fec9_linux_ppc64le.tar.gz) | | | | | [linux_riscv64.tar.gz](https://output.circle-artifacts.com/output/job/63b3dd48-3c8c-4a65-b53d-72efe39aa2eb/artifacts/0/build/dist/telegraf-1.33.0~a753fec9_linux_riscv64.tar.gz) | | | | | [linux_s390x.tar.gz](https://output.circle-artifacts.com/output/job/fd3ee322-2a22-4f62-86e2-5241acd17d13/artifacts/0/build/dist/telegraf-1.33.0~a753fec9_linux_s390x.tar.gz) | |