Hi,

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.

Is it possible ?

Like : 
[
  {
    "Node": "w2-build-yyyyyyy.net.intra.laposte.fr",
    "CheckID": "node_exporter",
    "Name": "HTTP on port 9101",
    *"Status": "passing",*
    "Notes": "",
    "Output": "HTTP GET http://localhost:9101/health: 200 OK Output: 
{\"status\":\"ok\"}\n",
    "ServiceID": "w2-build-node_exporters",
    "ServiceName": "w2-build-node_exporters",
    "ServiceTags": [
      "prometheus",
      "windows",
      "60s"
    ],
    "Type": "http",
    "Definition": {},
    "CreateIndex": 63360,
    "ModifyIndex": 63360
  },
  {
    "Node": "w2-build-xxxxxx.net.intra.laposte.fr",
    "CheckID": "node_exporter_check",
    "Name": "Check Health on Port 9100",
   * "Status": "critical",*
    "Notes": "",
    "Output": "Get \"http://wdya2747:9100/health\": dial tcp 
10.10.10.10:9100: connect: connection refused",
    "ServiceID": "w2-build-node_exporters",
    "ServiceName": "w2-build-node_exporters",
    "ServiceTags": [
      "prometheus",
      "linux",
      "60s"
    ],
    "Type": "http",
    "Definition": {},
    "CreateIndex": 79172,
    "ModifyIndex": 79172
  }
]


BR

Alain

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/d793f722-f7f0-4f67-8a0e-8747ef86c7f5n%40googlegroups.com.

Reply via email to