From 67bede7ca7355cf50e711fad139635bc472422d0 Mon Sep 17 00:00:00 2001 From: mohamedasifs123 Date: Tue, 2 Jul 2024 21:20:15 +0530 Subject: [PATCH] feat: adding interrupts config Signed-off-by: mohamedasifs123 --- .github/workflows/docker-publish.yml | 1 + README.md | 1 + config/telegraf.conf | 3 +++ 3 files changed, 5 insertions(+) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 4134b2f..251529c 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -51,6 +51,7 @@ jobs: curl --fail http://127.0.0.1:9091/api/v1/query?query=disk_used_percent | grep disk_used_percent curl --fail http://127.0.0.1:9091/api/v1/query?query=netstat_tcp_listen | grep netstat_tcp_listen curl --fail http://127.0.0.1:9091/api/v1/query?query=dns_query_result_code | grep dns_query_result_code + curl --fail http://127.0.0.1:9091/api/v1/query?query=interrupts_total | grep interrupts_total - name: Logs if: always() diff --git a/README.md b/README.md index b4147e1..10313ee 100644 --- a/README.md +++ b/README.md @@ -117,6 +117,7 @@ curl --fail http://127.0.0.1:9091/api/v1/query?query=redfish_thermal_fans_readin curl --fail http://127.0.0.1:9091/api/v1/query?query=disk_used_percent | grep disk_used_percent curl --fail http://127.0.0.1:9091/api/v1/query?query=netstat_tcp_listen | grep netstat_tcp_listen curl --fail http://127.0.0.1:9091/api/v1/query?query=dns_query_result_code | grep dns_query_result_code +curl --fail http://127.0.0.1:9091/api/v1/query?query=interrupts_total | grep interrupts_total ``` ## Running example diff --git a/config/telegraf.conf b/config/telegraf.conf index 97d0859..4de933f 100644 --- a/config/telegraf.conf +++ b/config/telegraf.conf @@ -26,6 +26,9 @@ collect_cpu_time = false report_active = false +[[inputs.interrupts]] + cpu_as_tag = true + [[inputs.mem]] # no configuration