-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A new plugin inputs.opensearch with the RemoteStats API #16562
Comments
Hi @zak-pawel, I'd appreciate it if you could share your thoughts on this proposal. |
If I'm not mistaken, this is probably another reason to create a dedicated input plugin for OpenSearch. I found another stats we use -- cross-cluster replication statistics, and the API between Elasticsearch and OpenSearch is also different. Elasticsearch:
Opensearch:
|
@Mmuzaf if the API really differs, I'm not against adding a new |
@srebhan Thanks for the answer. Am I understanding correctly that we need to use the official os go client the same way we do for the |
Use Case
Hello Team,
Currently, the following inputs plugins are available for use with the OpenSearch service:
inputs.elasticsearch
,inputs.elasticsearch_query
,inputs.opensearch_query
. It is possible to use the elasticsearch plugins with the OpenSearch service with some caveats, as the APIs are aligned (new just need to replace appropriate strings).While the OpenSearch service is being developed, a new API comes into play that we are also interested in scraping for the running nodes:
I briefly checked Elasticsearch for the corresponding metrics API and it seems that there is no 1-to-1 match for the metrics we need. So I propose to add a new
opensearch
plugin to inputs, so we can query new metrics.I have a draft of changes to demonstrate the possible solution of integrating new metrics to the elasticsearch plugin, please let me know if you are iterested in introducing a new inputs plugin and I need to submit a PR>
Configuration Example:
Expected behavior
A new
opensearch
plugin is added to handle OpenSearch API specifics.Actual behavior
Not able to scrape new opensearch metrics, need to replace
elasticsearch_
withopensearch_
.https://opensearch.org/docs/latest/api-reference/cat/cat-segment-replication/
https://opensearch.org/docs/latest/tuning-your-cluster/availability-and-recovery/remote-store/remote-store-stats-api/
Additional info
No response
The text was updated successfully, but these errors were encountered: