-
Notifications
You must be signed in to change notification settings - Fork 811
Open
Description
There is a timeout parameter in Elasticsearch and OpenSearch which could be used in the following lines:
elasticsearch_exporter/collector/nodes.go
Lines 1820 to 1824 in d64ec09
| if c.all { | |
| u.Path = path.Join(u.Path, "/_nodes/stats") | |
| } else { | |
| u.Path = path.Join(u.Path, "_nodes", c.node, "stats") | |
| } |
_nodes/stats).
This change would give the possibility to have a subset of the data for the request, missing only the response from specific parts.
e.g.
GET /_nodes/stats?timeout=5s
---
{
"_nodes" : {
"total" : ##,
"successful" : ##,
"failed" : 1,
"failures" : [
{
"type" : "failed_node_exception",
"reason" : "Failed node [xXXxxxxxxXXxxxXxxX]",
"node_id" : "xXXxXxXxxXXxXXxxxXxx",
"caused_by" : {
"type" : "receive_timeout_transport_exception",
"reason" : "[xxxx.xxx.xxx][1.2.3.4:9300][cluster:monitor/nodes/stats[n]] request_id [5409341] timed out after [5003ms]"
}
}
]
},
[..]
}
noxiii
Metadata
Metadata
Assignees
Labels
No labels