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
Add a unique ID on every plugin and allow user to override it. #3892
Comments
I am open to naming suggestion, could be |
what's your idea to auto generate a human readable plugin instance id? some concatenation of options + auto increment id? as for codecs, if we have a pipeline level structure to register the plugin ids then we can nest them, thus when we get a full id of a codec it comes with the parent plugin id too |
Yes, for that.
|
Agree about the register, this is a good time to finally use/fixed the |
Why would a user care about plugin ID? IOW, when would a user override a plugin ID? A user can query LS to get all grok plugins and this would list IDs. You can then re-query LS using this ID. Will this work? |
@suyograo This was mostly for a human convenience, to allow them to easily spot where metrics are emitted by which part of their configuration they maintain, since they are the expert in their config/topology. A common use could be a user with multiples different grok filters, this would make it easy to spot a slower pattern and they could improve it and compare before and after their changes, since creating ID that stay the same could be complicated if the config change, this allow the ID to be resilient to config modification (change in pattern) or adding new plugins to an existing configuration. |
This method return an ID for the plugins and be configured by the users in the configuration like this: ``` elasticsearch { id => "ABC" ... } ``` This information will be used when collecting metrics for a specific plugin. Allowing the user to change it allow to stick between restart. Fixes elastic#3892
This method return an ID for the plugins and be configured by the users in the configuration like this: ``` elasticsearch { id => "ABC" ... } ``` This information will be used when collecting metrics for a specific plugin. Allowing the user to change it allow to stick between restart. Fixes elastic#3892
This method return an ID for the plugins and be configured by the users in the configuration like this: ``` elasticsearch { id => "ABC" ... } ``` This information will be used when collecting metrics for a specific plugin. Allowing the user to change it allow to stick between restart. Fixes #3892 Fixes #4525
In the configuration we can define multiples time the same plugin with different configurations, but to associate the metrics to a specific plugins we need to make sure we can correctly identify it. This ID has a side effect to allow us to update the configuration of a specific plugin if needed via an API..
I propose:
--debug
should show the ID in the comment.This is a what a config would look like with user defined ids.
The text was updated successfully, but these errors were encountered: