how configure the scrapping to call only nodes that the check service is passed ?
Like a use on API health/checks/w2-build-node_exporters with filetring en Status.
[
{
"CheckID": "node_exporter",
"Name": "HTTP on port 9101",
"Status": "passing",
"Notes": "",
"ServiceID": "w2-build-node_exporters",
"ServiceName": "w2-build-node_exporters",
"ServiceTags": [
"prometheus",
"windows",
"60s"
],
"Type": "http",
"Definition": {},
"CreateIndex": 63360,
"ModifyIndex": 63360
},
{
"CheckID": "node_exporter_check",
"Name": "Check Health on Port 9100",
"Status": "critical",
"Notes": "",
"ServiceID": "w2-build-node_exporters",
"ServiceName": "w2-build-node_exporters",
"ServiceTags": [
"prometheus",
"linux",
"60s"
],
"Type": "http",
"Definition": {},
"CreateIndex": 79172,
"ModifyIndex": 79172
}
]