fix(inputs.logstash): Collect opensearch specific stats (#12536)
This commit is contained in:
parent
e9356b5cb3
commit
c73bf332c3
|
|
@ -264,11 +264,11 @@ func (logstash *Logstash) gatherPluginsStats(
|
|||
accumulator.AddFields("logstash_plugins", failuresFields, pluginTags)
|
||||
}
|
||||
/*
|
||||
The elasticsearch output produces additional stats around
|
||||
bulk requests and document writes (that are elasticsearch specific).
|
||||
Collect those here
|
||||
The elasticsearch & opensearch output produces additional stats
|
||||
around bulk requests and document writes (that are elasticsearch
|
||||
and opensearch specific). Collect those below:
|
||||
*/
|
||||
if pluginType == "output" && plugin.Name == "elasticsearch" {
|
||||
if pluginType == "output" && (plugin.Name == "elasticsearch" || plugin.Name == "opensearch") {
|
||||
/*
|
||||
The "bulk_requests" section has details about batch writes
|
||||
into Elasticsearch
|
||||
|
|
|
|||
Loading…
Reference in New Issue