failed collecting iis metrics:<nil> iis 状态正常,求解决方法!!!
time="2022-08-16T09:47:51+08:00" level=error msg="failed collecting iis metrics:
lodctr /r 已解决
Hello, which version of the exporter are you running?
Got the same problem multiple times a day since updating to 0.19.0. The CPU collector also fails. We were running 0.16.0 before and never experienced this issue.
{"source":"windows_exporter","channel":"Application","computer":"prod-00000X","event_id":102,"level":2,"levelText":"Error","opCodeText":"Info","keywords":"Classic","timeCreated":"2022-09-22T19:31:49.816165100Z","eventRecordID":1003,"message":"collector iis failed after 0.001985s: counter not found"}
{"source":"windows_exporter","channel":"Application","computer":"prod-00000X","event_id":102,"level":2,"levelText":"Error","opCodeText":"Info","keywords":"Classic","timeCreated":"2022-09-22T19:31:49.815562800Z","eventRecordID":1002,"message":"collector iis failed after 0.001985s: counter not found"}
{"source":"windows_exporter","channel":"Application","computer":"prod-00000X","event_id":102,"level":2,"levelText":"Error","opCodeText":"Info","keywords":"Classic","timeCreated":"2022-09-22T19:31:49.815366000Z","eventRecordID":1001,"message":"failed collecting iis metrics:\u003cnil\u003e counter not found"}
{"source":"windows_exporter","channel":"Application","computer":"prod-00000X","event_id":102,"level":2,"levelText":"Error","opCodeText":"Info","keywords":"Classic","timeCreated":"2022-09-22T19:31:49.814088600Z","eventRecordID":1000,"message":"failed collecting iis metrics:\u003cnil\u003e counter not found"}
{"source":"windows_exporter","channel":"Application","computer":"prod-00000X","event_id":102,"level":2,"levelText":"Error","opCodeText":"Info","keywords":"Classic","timeCreated":"2022-09-22T19:31:49.813402200Z","eventRecordID":999,"message":"collector cpu failed after 0.000000s: counter not found"}
{"source":"windows_exporter","channel":"Application","computer":"prod-00000X","event_id":102,"level":2,"levelText":"Error","opCodeText":"Info","keywords":"Classic","timeCreated":"2022-09-22T19:31:49.812894000Z","eventRecordID":998,"message":"collector cpu failed after 0.000000s: counter not found"}
I'm not entirely certain this is an issue with the exporter: it's stating that required counters from Perflib cannot be found.
Are the counters present when querying Perflib with Get-Counter? E.G (Get-Counter -ListSet 'Processor Information').Counter to list the available counters for the cpu collector.
Thanks for the info. Unfortunately I can't reproduce this currently. It was only happening on a single vm. The error was resolved by rebooting the instance in question.