influxdata / telegraf

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

Add timeout check to health output plugin #16212

Open tulku opened 2 days ago

tulku commented 2 days ago

Summary

Adds a new check to the health output plugin. This check fails when no metrics with the required fields are received for a maximum time.

Checklist

Related issues

(I didn't create an issue yet, this PR is mostly to explore this new feature) resolves #

telegraf-tiger[bot] commented 2 days 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/b46381a7-7106-478d-bead-3dacbcdb1035/artifacts/0/build/dist/telegraf_1.33.0~2fa35389-0_amd64.deb) | [aarch64.rpm](https://output.circle-artifacts.com/output/job/73684419-7571-47f4-aa70-4e8e8a663cb5/artifacts/0/build/dist/telegraf-1.33.0~2fa35389-0.aarch64.rpm) | [darwin_amd64.tar.gz](https://output.circle-artifacts.com/output/job/08680c6c-9f07-4fdf-9098-dc8af7a2a078/artifacts/0/build/dist/telegraf-1.33.0~2fa35389_darwin_amd64.tar.gz) | [windows_amd64.zip](https://output.circle-artifacts.com/output/job/55c18955-ee52-4d13-8bbb-01528baa560b/artifacts/0/build/dist/telegraf-1.33.0~2fa35389_windows_amd64.zip) | | [arm64.deb](https://output.circle-artifacts.com/output/job/73684419-7571-47f4-aa70-4e8e8a663cb5/artifacts/0/build/dist/telegraf_1.33.0~2fa35389-0_arm64.deb) | [armel.rpm](https://output.circle-artifacts.com/output/job/4ffbb8f8-4c6c-440b-976d-19527a70e89e/artifacts/0/build/dist/telegraf-1.33.0~2fa35389-0.armel.rpm) | [darwin_arm64.tar.gz](https://output.circle-artifacts.com/output/job/b0a0ea11-42be-49a3-b192-8dd95caf01ea/artifacts/0/build/dist/telegraf-1.33.0~2fa35389_darwin_arm64.tar.gz) | [windows_arm64.zip](https://output.circle-artifacts.com/output/job/55c18955-ee52-4d13-8bbb-01528baa560b/artifacts/0/build/dist/telegraf-1.33.0~2fa35389_windows_arm64.zip) | | [armel.deb](https://output.circle-artifacts.com/output/job/4ffbb8f8-4c6c-440b-976d-19527a70e89e/artifacts/0/build/dist/telegraf_1.33.0~2fa35389-0_armel.deb) | [armv6hl.rpm](https://output.circle-artifacts.com/output/job/b4c26a6e-bcf6-4550-8caa-26004f49b387/artifacts/0/build/dist/telegraf-1.33.0~2fa35389-0.armv6hl.rpm) | [freebsd_amd64.tar.gz](https://output.circle-artifacts.com/output/job/b46381a7-7106-478d-bead-3dacbcdb1035/artifacts/0/build/dist/telegraf-1.33.0~2fa35389_freebsd_amd64.tar.gz) | [windows_i386.zip](https://output.circle-artifacts.com/output/job/55c18955-ee52-4d13-8bbb-01528baa560b/artifacts/0/build/dist/telegraf-1.33.0~2fa35389_windows_i386.zip) | | [armhf.deb](https://output.circle-artifacts.com/output/job/b4c26a6e-bcf6-4550-8caa-26004f49b387/artifacts/0/build/dist/telegraf_1.33.0~2fa35389-0_armhf.deb) | [i386.rpm](https://output.circle-artifacts.com/output/job/8110fe24-6100-4637-a56c-4fce0d860e7c/artifacts/0/build/dist/telegraf-1.33.0~2fa35389-0.i386.rpm) | [freebsd_armv7.tar.gz](https://output.circle-artifacts.com/output/job/b4c26a6e-bcf6-4550-8caa-26004f49b387/artifacts/0/build/dist/telegraf-1.33.0~2fa35389_freebsd_armv7.tar.gz) | | | [i386.deb](https://output.circle-artifacts.com/output/job/8110fe24-6100-4637-a56c-4fce0d860e7c/artifacts/0/build/dist/telegraf_1.33.0~2fa35389-0_i386.deb) | [ppc64le.rpm](https://output.circle-artifacts.com/output/job/9f5850ed-7d81-4bfe-8260-caa600475df3/artifacts/0/build/dist/telegraf-1.33.0~2fa35389-0.ppc64le.rpm) | [freebsd_i386.tar.gz](https://output.circle-artifacts.com/output/job/8110fe24-6100-4637-a56c-4fce0d860e7c/artifacts/0/build/dist/telegraf-1.33.0~2fa35389_freebsd_i386.tar.gz) | | | [mips.deb](https://output.circle-artifacts.com/output/job/6bdc22dc-17a2-4355-9c88-c3fbf2fd9583/artifacts/0/build/dist/telegraf_1.33.0~2fa35389-0_mips.deb) | [riscv64.rpm](https://output.circle-artifacts.com/output/job/1f488251-5594-47df-bc77-e6badd683789/artifacts/0/build/dist/telegraf-1.33.0~2fa35389-0.riscv64.rpm) | [linux_amd64.tar.gz](https://output.circle-artifacts.com/output/job/b46381a7-7106-478d-bead-3dacbcdb1035/artifacts/0/build/dist/telegraf-1.33.0~2fa35389_linux_amd64.tar.gz) | | | [mipsel.deb](https://output.circle-artifacts.com/output/job/1299b5c8-0edb-4765-9ab1-0c0f5b78761e/artifacts/0/build/dist/telegraf_1.33.0~2fa35389-0_mipsel.deb) | [s390x.rpm](https://output.circle-artifacts.com/output/job/2032f935-0ca3-4983-a6b1-2982a3c56090/artifacts/0/build/dist/telegraf-1.33.0~2fa35389-0.s390x.rpm) | [linux_arm64.tar.gz](https://output.circle-artifacts.com/output/job/73684419-7571-47f4-aa70-4e8e8a663cb5/artifacts/0/build/dist/telegraf-1.33.0~2fa35389_linux_arm64.tar.gz) | | | [ppc64el.deb](https://output.circle-artifacts.com/output/job/9f5850ed-7d81-4bfe-8260-caa600475df3/artifacts/0/build/dist/telegraf_1.33.0~2fa35389-0_ppc64el.deb) | [x86_64.rpm](https://output.circle-artifacts.com/output/job/b46381a7-7106-478d-bead-3dacbcdb1035/artifacts/0/build/dist/telegraf-1.33.0~2fa35389-0.x86_64.rpm) | [linux_armel.tar.gz](https://output.circle-artifacts.com/output/job/4ffbb8f8-4c6c-440b-976d-19527a70e89e/artifacts/0/build/dist/telegraf-1.33.0~2fa35389_linux_armel.tar.gz) | | | [riscv64.deb](https://output.circle-artifacts.com/output/job/1f488251-5594-47df-bc77-e6badd683789/artifacts/0/build/dist/telegraf_1.33.0~2fa35389-0_riscv64.deb) | | [linux_armhf.tar.gz](https://output.circle-artifacts.com/output/job/b4c26a6e-bcf6-4550-8caa-26004f49b387/artifacts/0/build/dist/telegraf-1.33.0~2fa35389_linux_armhf.tar.gz) | | | [s390x.deb](https://output.circle-artifacts.com/output/job/2032f935-0ca3-4983-a6b1-2982a3c56090/artifacts/0/build/dist/telegraf_1.33.0~2fa35389-0_s390x.deb) | | [linux_i386.tar.gz](https://output.circle-artifacts.com/output/job/8110fe24-6100-4637-a56c-4fce0d860e7c/artifacts/0/build/dist/telegraf-1.33.0~2fa35389_linux_i386.tar.gz) | | | | | [linux_mips.tar.gz](https://output.circle-artifacts.com/output/job/6bdc22dc-17a2-4355-9c88-c3fbf2fd9583/artifacts/0/build/dist/telegraf-1.33.0~2fa35389_linux_mips.tar.gz) | | | | | [linux_mipsel.tar.gz](https://output.circle-artifacts.com/output/job/1299b5c8-0edb-4765-9ab1-0c0f5b78761e/artifacts/0/build/dist/telegraf-1.33.0~2fa35389_linux_mipsel.tar.gz) | | | | | [linux_ppc64le.tar.gz](https://output.circle-artifacts.com/output/job/9f5850ed-7d81-4bfe-8260-caa600475df3/artifacts/0/build/dist/telegraf-1.33.0~2fa35389_linux_ppc64le.tar.gz) | | | | | [linux_riscv64.tar.gz](https://output.circle-artifacts.com/output/job/1f488251-5594-47df-bc77-e6badd683789/artifacts/0/build/dist/telegraf-1.33.0~2fa35389_linux_riscv64.tar.gz) | | | | | [linux_s390x.tar.gz](https://output.circle-artifacts.com/output/job/2032f935-0ca3-4983-a6b1-2982a3c56090/artifacts/0/build/dist/telegraf-1.33.0~2fa35389_linux_s390x.tar.gz) | |