zachstence / hwinfo-telegraf-plugin

Gather Windows system hardware information from HWiNFO
MIT License
4 stars 1 forks source link

Double/Triple entries in Plugin Output. #3

Closed KonVei82 closed 9 months ago

KonVei82 commented 9 months ago

Hey, is it normal that i am getting double or sometimes even triple identical readings during each pull? I discovered this while attempting to do some filtering and report only S.M.A.R.T. values. If i disable filtering then i end up pulling and eventually pushing 1000 metrics every 10 seconds.

Attached is console output via stdout and my settings:

[agent] debug = true quiet = false interval = "15s"

round_interval = true

###############################################################################

INPUT PLUGINS

############################################################################### [[inputs.execd]] command = ["C:/InfluxData/telegraf/hwinfo-telegraf-plugin-1.2.0.exe"] [inputs.execd.tagpass] sensorName = ["Samsung"] ###############################################################################

OUTPUT PLUGINS

############################################################################### [[outputs.file]] files = ["stdout"]

2024-02-03T23:30:45Z D! [outputs.file] Wrote batch of 160 metrics in 9.6465ms 2024-02-03T23:30:45Z D! [outputs.file] Buffer fullness: 0 / 10000 metrics 2024-02-03T23:30:47Z D! [agent] Stopping service inputs 2024-02-03T23:30:47Z I! [inputs.execd] Process C:/InfluxData/telegraf/hwinfo-telegraf-plugin-1.2.0.exe shut down 2024-02-03T23:30:47Z D! [agent] Input channel closed 2024-02-03T23:30:47Z I! [agent] Hang on, flushing any cached metrics before shutdown hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=16777216,readingName=Drive\ Temperature,readingNameOrig=Drive\ Temperature,sensorId=402653209600,sensorInst=0,sensorName=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorNameOrig=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorType=smart,shmemVersion=v2\ rev1,unit=°C temp=40 1707003046167909600 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=16777217,readingName=Drive\ Temperature\ 2,readingNameOrig=Drive\ Temperature\ 2,sensorId=402653209600,sensorInst=0,sensorName=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorNameOrig=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorType=smart,shmemVersion=v2\ rev1,unit=°C temp=40 1707003046167909600 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=16777218,readingName=Drive\ Temperature\ 3,readingNameOrig=Drive\ Temperature\ 3,sensorId=402653209600,sensorInst=0,sensorName=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorNameOrig=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorType=smart,shmemVersion=v2\ rev1,unit=°C temp=46 1707003046167909600 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=117440512,readingName=Drive\ Remaining\ Life,readingNameOrig=Drive\ Remaining\ Life,sensorId=402653209600,sensorInst=0,sensorName=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorNameOrig=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorType=smart,shmemVersion=v2\ rev1,unit=% usage=90 1707003046167909600 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=117440513,readingName=Drive\ Available\ Spare,readingNameOrig=Drive\ Available\ Spare,sensorId=402653209600,sensorInst=0,sensorName=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorNameOrig=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorType=smart,shmemVersion=v2\ rev1,unit=% usage=100 1707003046167909600 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=134217728,readingName=Drive\ Failure,readingNameOrig=Drive\ Failure,sensorId=402653209600,sensorInst=0,sensorName=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorNameOrig=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorType=smart,shmemVersion=v2\ rev1,unit=Yes/No other=0 1707003046167909600 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=134217729,readingName=Drive\ Warning,readingNameOrig=Drive\ Warning,sensorId=402653209600,sensorInst=0,sensorName=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorNameOrig=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorType=smart,shmemVersion=v2\ rev1,unit=Yes/No other=0 1707003046167909600 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=134217730,readingName=Total\ Host\ Writes,readingNameOrig=Total\ Host\ Writes,sensorId=402653209600,sensorInst=0,sensorName=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorNameOrig=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorType=smart,shmemVersion=v2\ rev1,unit=GB other=36401 1707003046167909600 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=134217732,readingName=Total\ Host\ Reads,readingNameOrig=Total\ Host\ Reads,sensorId=402653209600,sensorInst=0,sensorName=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorNameOrig=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorType=smart,shmemVersion=v2\ rev1,unit=GB other=121738 1707003046167909600 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=117440512,readingName=Read\ Activity,readingNameOrig=Read\ Activity,sensorId=402653209700,sensorInst=0,sensorName=Drive:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorNameOrig=Drive:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorType=drive,shmemVersion=v2\ rev1,unit=% usage=0 1707003046167909600 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=117440513,readingName=Write\ Activity,readingNameOrig=Write\ Activity,sensorId=402653209700,sensorInst=0,sensorName=Drive:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorNameOrig=Drive:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorType=drive,shmemVersion=v2\ rev1,unit=% usage=0.572 1707003046167909600 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=117440514,readingName=Total\ Activity,readingNameOrig=Total\ Activity,sensorId=402653209700,sensorInst=0,sensorName=Drive:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorNameOrig=Drive:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorType=drive,shmemVersion=v2\ rev1,unit=% usage=0.572 1707003046167909600 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=134217728,readingName=Read\ Rate,readingNameOrig=Read\ Rate,sensorId=402653209700,sensorInst=0,sensorName=Drive:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorNameOrig=Drive:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorType=drive,shmemVersion=v2\ rev1,unit=MB/s other=0 1707003046167909600 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=134217729,readingName=Write\ Rate,readingNameOrig=Write\ Rate,sensorId=402653209700,sensorInst=0,sensorName=Drive:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorNameOrig=Drive:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorType=drive,shmemVersion=v2\ rev1,unit=MB/s other=0.016 1707003046167909600 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=134217730,readingName=Read\ Total,readingNameOrig=Read\ Total,sensorId=402653209700,sensorInst=0,sensorName=Drive:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorNameOrig=Drive:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorType=drive,shmemVersion=v2\ rev1,unit=MB other=41890 1707003046167909600 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=134217731,readingName=Write\ Total,readingNameOrig=Write\ Total,sensorId=402653209700,sensorInst=0,sensorName=Drive:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorNameOrig=Drive:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorType=drive,shmemVersion=v2\ rev1,unit=MB other=64992 1707003046167909600 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=16777216,readingName=Drive\ Temperature,readingNameOrig=Drive\ Temperature,sensorId=402653209600,sensorInst=0,sensorName=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorNameOrig=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorType=smart,shmemVersion=v2\ rev1,unit=°C temp=40 1707003047167648700 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=16777217,readingName=Drive\ Temperature\ 2,readingNameOrig=Drive\ Temperature\ 2,sensorId=402653209600,sensorInst=0,sensorName=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorNameOrig=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorType=smart,shmemVersion=v2\ rev1,unit=°C temp=40 1707003047167648700 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=16777218,readingName=Drive\ Temperature\ 3,readingNameOrig=Drive\ Temperature\ 3,sensorId=402653209600,sensorInst=0,sensorName=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorNameOrig=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorType=smart,shmemVersion=v2\ rev1,unit=°C temp=46 1707003047167648700 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=117440512,readingName=Drive\ Remaining\ Life,readingNameOrig=Drive\ Remaining\ Life,sensorId=402653209600,sensorInst=0,sensorName=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorNameOrig=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorType=smart,shmemVersion=v2\ rev1,unit=% usage=90 1707003047167648700 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=117440513,readingName=Drive\ Available\ Spare,readingNameOrig=Drive\ Available\ Spare,sensorId=402653209600,sensorInst=0,sensorName=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorNameOrig=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorType=smart,shmemVersion=v2\ rev1,unit=% usage=100 1707003047167648700 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=134217728,readingName=Drive\ Failure,readingNameOrig=Drive\ Failure,sensorId=402653209600,sensorInst=0,sensorName=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorNameOrig=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorType=smart,shmemVersion=v2\ rev1,unit=Yes/No other=0 1707003047167648700 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=134217729,readingName=Drive\ Warning,readingNameOrig=Drive\ Warning,sensorId=402653209600,sensorInst=0,sensorName=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorNameOrig=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorType=smart,shmemVersion=v2\ rev1,unit=Yes/No other=0 1707003047167648700 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=134217730,readingName=Total\ Host\ Writes,readingNameOrig=Total\ Host\ Writes,sensorId=402653209600,sensorInst=0,sensorName=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorNameOrig=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorType=smart,shmemVersion=v2\ rev1,unit=GB other=36401 1707003047167648700 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=134217732,readingName=Total\ Host\ Reads,readingNameOrig=Total\ Host\ Reads,sensorId=402653209600,sensorInst=0,sensorName=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorNameOrig=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorType=smart,shmemVersion=v2\ rev1,unit=GB other=121738 1707003047167648700 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=117440512,readingName=Read\ Activity,readingNameOrig=Read\ Activity,sensorId=402653209700,sensorInst=0,sensorName=Drive:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorNameOrig=Drive:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorType=drive,shmemVersion=v2\ rev1,unit=% usage=0 1707003047167648700 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=117440513,readingName=Write\ Activity,readingNameOrig=Write\ Activity,sensorId=402653209700,sensorInst=0,sensorName=Drive:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorNameOrig=Drive:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorType=drive,shmemVersion=v2\ rev1,unit=% usage=0.572 1707003047167648700 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=117440514,readingName=Total\ Activity,readingNameOrig=Total\ Activity,sensorId=402653209700,sensorInst=0,sensorName=Drive:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorNameOrig=Drive:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorType=drive,shmemVersion=v2\ rev1,unit=% usage=0.572 1707003047167648700 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=134217728,readingName=Read\ Rate,readingNameOrig=Read\ Rate,sensorId=402653209700,sensorInst=0,sensorName=Drive:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorNameOrig=Drive:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorType=drive,shmemVersion=v2\ rev1,unit=MB/s other=0 1707003047167648700 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=134217729,readingName=Write\ Rate,readingNameOrig=Write\ Rate,sensorId=402653209700,sensorInst=0,sensorName=Drive:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorNameOrig=Drive:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorType=drive,shmemVersion=v2\ rev1,unit=MB/s other=0.016 1707003047167648700 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=134217730,readingName=Read\ Total,readingNameOrig=Read\ Total,sensorId=402653209700,sensorInst=0,sensorName=Drive:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorNameOrig=Drive:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorType=drive,shmemVersion=v2\ rev1,unit=MB other=41890 1707003047167648700 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=134217731,readingName=Write\ Total,readingNameOrig=Write\ Total,sensorId=402653209700,sensorInst=0,sensorName=Drive:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorNameOrig=Drive:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorType=drive,shmemVersion=v2\ rev1,unit=MB other=64992 1707003047167648700 2024-02-03T23:30:47Z D! [outputs.file] Wrote batch of 32 metrics in 2.0595ms 2024-02-03T23:30:47Z D! [outputs.file] Buffer fullness: 0 / 10000 metrics 2024-02-03T23:30:47Z I! [agent] Stopping running outputs 2024-02-03T23:30:47Z D! [agent] Stopped Successfully

KonVei82 commented 9 months ago

Did some more filtering based on readingId to isolate 1 single sensor and check the plugin's behavior.

This is essentially one sensor that is being multiplied x10 during a single 10 seconds period.

hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=33554432,readingName=Core\ 0\ VID,readingNameOrig=Core\ 0\ VID,sensorId=402653260800,sensorInst=0,sensorName=CPU\ [#0]:\ Intel\ Core\ i7-4790K,sensorNameOrig=CPU\ [#0]:\ Intel\ Core\ i7-4790K,sensorType=cpu,shmemVersion=v2\ rev1,unit=V volt=1.1934814453125 1707006333500311400 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=33554432,readingName=Core\ 0\ VID,readingNameOrig=Core\ 0\ VID,sensorId=402653260800,sensorInst=0,sensorName=CPU\ [#0]:\ Intel\ Core\ i7-4790K,sensorNameOrig=CPU\ [#0]:\ Intel\ Core\ i7-4790K,sensorType=cpu,shmemVersion=v2\ rev1,unit=V volt=1.1934814453125 1707006334501180200 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=33554432,readingName=Core\ 0\ VID,readingNameOrig=Core\ 0\ VID,sensorId=402653260800,sensorInst=0,sensorName=CPU\ [#0]:\ Intel\ Core\ i7-4790K,sensorNameOrig=CPU\ [#0]:\ Intel\ Core\ i7-4790K,sensorType=cpu,shmemVersion=v2\ rev1,unit=V volt=1.1934814453125 1707006335502271200 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=33554432,readingName=Core\ 0\ VID,readingNameOrig=Core\ 0\ VID,sensorId=402653260800,sensorInst=0,sensorName=CPU\ [#0]:\ Intel\ Core\ i7-4790K,sensorNameOrig=CPU\ [#0]:\ Intel\ Core\ i7-4790K,sensorType=cpu,shmemVersion=v2\ rev1,unit=V volt=1.1934814453125 1707006336503259900 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=33554432,readingName=Core\ 0\ VID,readingNameOrig=Core\ 0\ VID,sensorId=402653260800,sensorInst=0,sensorName=CPU\ [#0]:\ Intel\ Core\ i7-4790K,sensorNameOrig=CPU\ [#0]:\ Intel\ Core\ i7-4790K,sensorType=cpu,shmemVersion=v2\ rev1,unit=V volt=1.1934814453125 1707006337504761200 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=33554432,readingName=Core\ 0\ VID,readingNameOrig=Core\ 0\ VID,sensorId=402653260800,sensorInst=0,sensorName=CPU\ [#0]:\ Intel\ Core\ i7-4790K,sensorNameOrig=CPU\ [#0]:\ Intel\ Core\ i7-4790K,sensorType=cpu,shmemVersion=v2\ rev1,unit=V volt=1.1934814453125 1707006338505637800 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=33554432,readingName=Core\ 0\ VID,readingNameOrig=Core\ 0\ VID,sensorId=402653260800,sensorInst=0,sensorName=CPU\ [#0]:\ Intel\ Core\ i7-4790K,sensorNameOrig=CPU\ [#0]:\ Intel\ Core\ i7-4790K,sensorType=cpu,shmemVersion=v2\ rev1,unit=V volt=1.1934814453125 1707006339506616100 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=33554432,readingName=Core\ 0\ VID,readingNameOrig=Core\ 0\ VID,sensorId=402653260800,sensorInst=0,sensorName=CPU\ [#0]:\ Intel\ Core\ i7-4790K,sensorNameOrig=CPU\ [#0]:\ Intel\ Core\ i7-4790K,sensorType=cpu,shmemVersion=v2\ rev1,unit=V volt=1.1934814453125 1707006340507608200 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=33554432,readingName=Core\ 0\ VID,readingNameOrig=Core\ 0\ VID,sensorId=402653260800,sensorInst=0,sensorName=CPU\ [#0]:\ Intel\ Core\ i7-4790K,sensorNameOrig=CPU\ [#0]:\ Intel\ Core\ i7-4790K,sensorType=cpu,shmemVersion=v2\ rev1,unit=V volt=1.1934814453125 1707006341508593500 2024-02-04T00:25:42Z D! [outputs.file] Wrote batch of 10 metrics in 1.0155ms 2024-02-04T00:25:42Z D! [outputs.file] Buffer fullness: 0 / 10000 metrics

KonVei82 commented 9 months ago

I figured it out after looking at:

var pollInterval = flag.Duration("poll_interval", 1*time.Second, "how often to send metrics") var pollIntervalDisabled = flag.Bool("poll_interval_disabled", false, "how often to send metrics") var configFile = flag.String("config", "", "path to the config file for this plugin") var debug = flag.Bool("debug", false, "sets log level to debug")

So i added "-poll_interval=10s" and it works as expected.

[[inputs.execd]] command = ["C:/InfluxData/telegraf/hwinfo-telegraf-plugin-1.2.0.exe", "-debug", "-poll_interval=10s"]