-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Rename azure/storage metricset to storage_account for consistency #28284
Conversation
This pull request does not have a backport label. Could you fix it @narph? 🙏
NOTE: |
Pinging @elastic/integrations (Team:Integrations) |
This pull request is now in conflicts. Could you fix it? 🙏
|
Will block this PR till we decide what to do: Potential solutions:
What do we do with the dashboards containing the
|
This isn't a perfect solution, but let's analyze it.
I'm for this option, even though we can't guarantee a smooth/automatic update (it's a change of metricset name). Regarding fields and dashboards, I can speak only in the context of integration. Think about the situation when you have a fleet with 1000 agents and you need to update them. It means that for some time there will two kinds of agents:
Solution: we need a compatibility ingest pipeline in the integration, which will rewrite old fields to the new namespace. When will this pipeline be removed in the future, TBD (sorry about that, no clear decision).
I think that if you have the compatibility pipeline in place, you create another revision of the package which will update the metricset reference in the integration and get rid of the old one. |
@mtojek , thanks, just a clarification here , on the package side the data stream has the right naming I am more concerned about: if the effort it takes to make all these changes and the disruption on the user side (metricbeat users switching between the 2 names) outweighs the reason for the renaming. The reason is consistency to the other azure metricsets names and also to the azure resource type which is a storage account and not storage. |
I would also consider the option of doing nothing. Specially if we are only doing this change for consistency. Do we expect problems if we don't rename the metricset? We can still title the dataset "Storage Account", even when under the hood this is called "storage". If we still want to do the rename, I agree with the discussed strategies:
I don't think we ever need to remove these compatibility layers, unless they are causing maintenance burden, or they conflict with future features. |
Yes, I was thinking exactly about this risk. So that we'll end up with dozen of old compatibility pipelines. EDIT:
Maybe you're right that in this case there is a low gain. If we don't have any guidelines for proper metricset naming, I would also support this option (less work to do). |
I'm leaning in the direction of not doing anything right now even though looking at the name I understand why we should rename. But this is a very valuable discussion we should continue. Even if we don't rename this right now, the next case will pop up where we either need to deprecate a dataset or even deprecate a package. We need a solution for it. I would start with dataset and packages and work backwards from there on what it means for Beats. I expect the to have a simpler solution for packages as each dataset has its own data stream and we likely could use aliases or similar but lets see. |
This would mean that a package would have needed dozens of breaking changes, I wouldn't like to see this situation 🙂 But if this happens, maintaining this dozen of compatibility pipelines will reduce the pain caused to users by these changes. Even if we don't rename the metricset itself, we can still use the consistent naming in titles, descriptions and other texts in the integration, this is actually the only thing users are going to see in the new experience, and this doesn't require a breaking change. |
Thanks everyone for the feedback, I have been doing some tests and I am leaning towards the following:
This is why I have been leaning towards not renaming. I did test registering the new name #28447 to the metricset and collected some metrics and my conclusion would be:
Should we expect any unforeseen issues with the plan above, I feel like I am missing something? |
@narph sounds good. Specially seeing that we already have the pipeline in the integration to handle compatibility between both field schemas, with the rename from Do we still need to do the changes in Beats to register the new name? I guess that the only reason would be to be able to remove the rename in the future? |
Yes, the reason I would still add is to remove the rename pipeline in the future for the data stream |
closing in favor of #28447 |
What does this PR do?
Rename azure/storage metricset to storage_account for consistency
Why is it important?
Rename azure/storage metricset to storage_account for consistency
Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.