Repository: prometheus-community/windows_exporter

Issue #903: IIS collector is broken on 0.17.0
Created: 2022-01-02T04:19:52Z
Hi,
windows_exporter  0.17.0 IIS collector is not working as expected.
Exporter is not displaying any metrics, only error message.
（windows 2012R2  IIS 8  /  windows 2016   IIS 10）
http://localhost:9182
windows_exporter
Metrics
(version=0.17.0, branch=master, revision=4d771d2bcedd4b29f0bf2bade1a45f5e0ee3198d)
An error has occurred while serving metrics:
11248 error(s) occurred:

collected metric "windows_iis_worker_request_errors_total" { label:<name:"app" value:XXX" > label:<name:"pid" value:"5780" > label:<name:"status_code" value:"401" > counter:<value:0 > } was collected before with the same name and label values
collected metric "windows_iis_worker_request_errors_total" { label:<name:"app" value:"XXX" > label:<name:"pid" value:"5780" > label:<name:"status_code" value:"403" > counter:<value:0 > } was collected before with the same name and label values
collected metric "windows_iis_worker_request_errors_total" { label:<name:"app" value:"XXX" > label:<name:"pid" value:"5780" > label:<name:"status_code" value:"404" > counter:<value:0 > } was collected before with the same name and label values
collected metric "windows_iis_worker_request_errors_total" { label:<name:"app" value:"XXX" > label:<name:"pid" value:"5780" > label:<name:"status_code" value:"500" > counter:<value:0 > } was collected before with the same name and label values
collected metric "windows_iis_worker_current_websocket_requests" { label:<name:"app" value:"XXX" > label:<name:"pid" value:"5780" > counter:<value:0 > } was collected before with the same name and label values
collected metric "windows_iis_worker_websocket_connection_attempts_total" { label:<name:"app" value:"XXX" > label:<name:"pid" value:"5780" > counter:<value:0 > } was collected before with the same name and label values
collected metric "windows_iis_worker_websocket_connection_accepted_total" { label:<name:"app" value:"XXX" > label:<name:"pid" value:"5780" > counter:<value:0 > } was collected before with the same name and label values
collected metric "XXX" { label:<name:"app" value:"XXX" > label:<name:"pid" value:"5780" > counter:<value:0 > } was collected before with the same name and label values
collected metric "windows_iis_worker_request_errors_total" { label:<name:"app" value:"XXX" > label:<name:"pid" value:"21708" > label:<name:"status_code" value:"401" > counter:<value:0 > } was collected before with the same name and label values
collected metric "windows_iis_worker_request_errors_total" { label:<name:"app" value:"XXX" > label:<name:"pid" value:"21708" > label:<name:"status_code" value:"403" > counter:<value:0 > } was collected before with the same name and label values
collected metric "windows_iis_worker_request_errors_total" { label:<name:"app" value:"XXX" > label:<name:"pid" value:"21708" > label:<name:"status_code" value:"404" > counter:<value:0 > } was collected before with the same name and label values
collected metric "windows_iis_worker_request_errors_total" { label:<name:"app" value:"XXX" > label:<name:"pid" value:"21708" > label:<name:"status_code" value:"500" > counter:<value:0 > } was collected before with the same name and label values

Duplicate issue #918: IIS Site metrics Disappear 
Created: 2022-01-17T09:09:44Z
I cant figure out why but since last week my windows_exporter doesn't report metrics for the sites on my IIS.
It works but only for app_pools.
Here are logs from the exporter.

It starts as expected and works. If clearly states that the IIS metrics are collected.
But i can never see windows_iis_requests_total metric or any other metric that is site related.
I would like point out that those metrics worked as a charm since day 1 that i installed the windows exporter until last week.
Any guide or tips in how to tackle this problem will be greatly appreciated.

Closing comment (2022-01-23T09:32:16Z): Initially I thought this might be related to #903, but your screenshot shows that you're using v0.16.0, not v0.17.x.
Did this issue start with a particular exporter version? Has anything changed on the host regarding IIS?