Hi,
I want to use both Nodes and Cluster State APIs in http input plugin for alerting.
{
"trigger": {
"schedule": {
"interval": "10s"
}
},
"input" : {
"http" : {
"request" : {
"scheme": "https",
"host" : "<hostname>",
"port" : <port>,
"path" : "/_nodes/stats",
"params" : {
"human" : "true"
}
}
}
},
"actions": {
}
}
Now how can I add other API "/_cluster/stats" for input.
I also try chaining -
{
"trigger": {
"schedule": {
"interval": "10s"
}
},
"input" : {
"chain" : {
"inputs" : [
{
"first" : {
"http" : {
"request" : {
"scheme": "https",
"host" : "<hostname>",
"port" : 9200,
"path" : "/_nodes/stats",
"params" : {
"human" : "true"
}
}
}
}
},
{
"second" : {
"http" : {
"request" : {
"scheme": "https",
"host" : "<hostname>",
"port" : 9200,
"path" : "/_cluster/stats",
"params" : {
"human" : "true"
}
}
}
}
}
]
}
}
}
Any luck?