mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-10-17 18:19:04 +02:00
mixin: note that scheduled task missed runs need the missed-runs flag (#2702)
Signed-off-by: Claude <noreply@anthropic.com> Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude
parent
9147165ebc
commit
6bc9a7d69d
@@ -9431,7 +9431,7 @@
|
||||
"kind": "DataQuery",
|
||||
"spec": {
|
||||
"editorMode": "code",
|
||||
"expr": "count(windows_scheduled_task_missed_runs{job=~\"$job\", instance=\"$instance\"} > 0 and on (task) windows_scheduled_task_state{job=~\"$job\", instance=\"$instance\", state!=\"disabled\"} == 1) or (0 * count(windows_scheduled_task_state{job=~\"$job\", instance=\"$instance\"}))",
|
||||
"expr": "count(windows_scheduled_task_missed_runs{job=~\"$job\", instance=\"$instance\"} > 0 and on (task) windows_scheduled_task_state{job=~\"$job\", instance=\"$instance\", state!=\"disabled\"} == 1) or (0 * count(windows_scheduled_task_missed_runs{job=~\"$job\", instance=\"$instance\"}))",
|
||||
"instant": false,
|
||||
"legendFormat": "__auto",
|
||||
"range": true
|
||||
@@ -9448,7 +9448,7 @@
|
||||
"transformations": []
|
||||
}
|
||||
},
|
||||
"description": "Enabled tasks that missed at least one scheduled run, for example because the host was off or asleep. Requires the scheduled_task collector, which is not enabled by default.",
|
||||
"description": "Enabled tasks that missed at least one scheduled run, for example because the host was off or asleep. Requires the scheduled_task collector, which is not enabled by default. Missed runs need --collector.scheduled_task.missed-runs, which is off by default.",
|
||||
"id": 194,
|
||||
"links": [],
|
||||
"title": "Missed runs",
|
||||
@@ -9758,7 +9758,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"description": "Enabled tasks that missed at least one scheduled run, with the number of missed runs reported by Task Scheduler. Requires the scheduled_task collector, which is not enabled by default.",
|
||||
"description": "Enabled tasks that missed at least one scheduled run, with the number of missed runs reported by Task Scheduler. Missed runs need --collector.scheduled_task.missed-runs, which is off by default. Requires the scheduled_task collector, which is not enabled by default.",
|
||||
"id": 197,
|
||||
"links": [],
|
||||
"title": "Tasks with missed runs",
|
||||
@@ -10029,7 +10029,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"description": "All tasks with their state, last result and missed runs. Tasks that never ran report no missed runs. Requires the scheduled_task collector, which is not enabled by default.",
|
||||
"description": "All tasks with their state, last result and missed runs. Missed runs need --collector.scheduled_task.missed-runs, and tasks that never ran report none. Requires the scheduled_task collector, which is not enabled by default.",
|
||||
"id": 199,
|
||||
"links": [],
|
||||
"title": "Tasks",
|
||||
|
||||
@@ -421,7 +421,7 @@
|
||||
"kind": "DataQuery",
|
||||
"spec": {
|
||||
"editorMode": "code",
|
||||
"expr": "count(windows_scheduled_task_missed_runs{job=~\"$job\", instance=\"$instance\"} > 0 and on (task) windows_scheduled_task_state{job=~\"$job\", instance=\"$instance\", state!=\"disabled\"} == 1) or (0 * count(windows_scheduled_task_state{job=~\"$job\", instance=\"$instance\"}))",
|
||||
"expr": "count(windows_scheduled_task_missed_runs{job=~\"$job\", instance=\"$instance\"} > 0 and on (task) windows_scheduled_task_state{job=~\"$job\", instance=\"$instance\", state!=\"disabled\"} == 1) or (0 * count(windows_scheduled_task_missed_runs{job=~\"$job\", instance=\"$instance\"}))",
|
||||
"instant": false,
|
||||
"legendFormat": "__auto",
|
||||
"range": true
|
||||
@@ -438,7 +438,7 @@
|
||||
"transformations": []
|
||||
}
|
||||
},
|
||||
"description": "Enabled tasks that missed at least one scheduled run, for example because the host was off or asleep. Requires the scheduled_task collector, which is not enabled by default.",
|
||||
"description": "Enabled tasks that missed at least one scheduled run, for example because the host was off or asleep. Requires the scheduled_task collector, which is not enabled by default. Missed runs need --collector.scheduled_task.missed-runs, which is off by default.",
|
||||
"id": 194,
|
||||
"links": [],
|
||||
"title": "Missed runs",
|
||||
@@ -748,7 +748,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"description": "Enabled tasks that missed at least one scheduled run, with the number of missed runs reported by Task Scheduler. Requires the scheduled_task collector, which is not enabled by default.",
|
||||
"description": "Enabled tasks that missed at least one scheduled run, with the number of missed runs reported by Task Scheduler. Missed runs need --collector.scheduled_task.missed-runs, which is off by default. Requires the scheduled_task collector, which is not enabled by default.",
|
||||
"id": 197,
|
||||
"links": [],
|
||||
"title": "Tasks with missed runs",
|
||||
@@ -1019,7 +1019,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"description": "All tasks with their state, last result and missed runs. Tasks that never ran report no missed runs. Requires the scheduled_task collector, which is not enabled by default.",
|
||||
"description": "All tasks with their state, last result and missed runs. Missed runs need --collector.scheduled_task.missed-runs, and tasks that never ran report none. Requires the scheduled_task collector, which is not enabled by default.",
|
||||
"id": 199,
|
||||
"links": [],
|
||||
"title": "Tasks",
|
||||
|
||||
Reference in New Issue
Block a user