collector: scope the scrape slot to a collection and report queued scrapes (#2729)

Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
This commit is contained in:
Jan-Otto Kröpke
2026-10-15 20:54:16 +00:00
committed by GitHub
parent 8b5eb31e4c
commit b914dbbf6e
14 changed files with 248 additions and 58 deletions
+25 -3
View File
@@ -25943,23 +25943,45 @@
"editorMode": "code",
"expr": "count(windows_exporter_collector_timeout{job=~\"$job\", instance=\"$instance\"} == 1) or vector(0)",
"instant": false,
"legendFormat": "__auto",
"legendFormat": "collectors",
"range": true
},
"version": "v0"
},
"refId": "A"
}
},
{
"kind": "PanelQuery",
"spec": {
"hidden": false,
"query": {
"datasource": {
"name": "${datasource}"
},
"group": "prometheus",
"kind": "DataQuery",
"spec": {
"editorMode": "code",
"expr": "max(windows_exporter_scrape_queue_timeout{job=~\"$job\", instance=\"$instance\"}) or vector(0)",
"instant": false,
"legendFormat": "queued scrape",
"range": true
},
"version": "v0"
},
"refId": "B"
}
}
],
"queryOptions": {},
"transformations": []
}
},
"description": "Number of collectors that timed out on the latest scrape. The graph shows the count over the selected time range.",
"description": "Number of collectors that timed out on the latest scrape, and whether the latest scrape timed out while it waited for an earlier scrape, so that no collector ran. The graph shows the values over the selected time range.",
"id": 94,
"links": [],
"title": "Timed-out collectors",
"title": "Timeouts",
"vizConfig": {
"group": "stat",
"kind": "VizConfig",
+25 -3
View File
@@ -1975,23 +1975,45 @@
"editorMode": "code",
"expr": "count(windows_exporter_collector_timeout{job=~\"$job\", instance=\"$instance\"} == 1) or vector(0)",
"instant": false,
"legendFormat": "__auto",
"legendFormat": "collectors",
"range": true
},
"version": "v0"
},
"refId": "A"
}
},
{
"kind": "PanelQuery",
"spec": {
"hidden": false,
"query": {
"datasource": {
"name": "${datasource}"
},
"group": "prometheus",
"kind": "DataQuery",
"spec": {
"editorMode": "code",
"expr": "max(windows_exporter_scrape_queue_timeout{job=~\"$job\", instance=\"$instance\"}) or vector(0)",
"instant": false,
"legendFormat": "queued scrape",
"range": true
},
"version": "v0"
},
"refId": "B"
}
}
],
"queryOptions": {},
"transformations": []
}
},
"description": "Number of collectors that timed out on the latest scrape. The graph shows the count over the selected time range.",
"description": "Number of collectors that timed out on the latest scrape, and whether the latest scrape timed out while it waited for an earlier scrape, so that no collector ran. The graph shows the values over the selected time range.",
"id": 94,
"links": [],
"title": "Timed-out collectors",
"title": "Timeouts",
"vizConfig": {
"group": "stat",
"kind": "VizConfig",