-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Kibana 4 - scale feature as in KB3? #4394
Comments
This would likely be handled with field formatters, but right now we don't expose any "code" to the formatters, just a lot of default numeral.js functionality. This sort of functionality will likely require #4361 |
I'm not sure if these are the the same thing - in the original issue #4357
Scaling is asking that the field value be modified whereas the linked issue is asking that the field name be modified. Perhaps the intent of field formatters would handle both - I just wanted to point out it seems to be a different case. |
After closely reading the issue #4357 I also think that this is different request. Although it might use some of the features of formatters. |
I agree that these are two different issues, but they should both be solvable using the custom directives we have planned for field formatters, which is what #4361 addresses. The difference, at least to me, is that #4357 will likely be solved via a user-defined formatter, while this is a feature that will likely be provided out of the box, but both will use the same underlying feature in field formatters. |
But to be clear - it seems that the (angular) "directive" aspect of this solution is that when you have the directive for the field label, the directive is smarter than just using a simple value from the data and can extrapolate the desired value from some other data input. This issue (#4394) seems more connected to manipulating the data which would typically be happening at a factory/service layer. There will be some inputs/directives perhaps to choose what the value is, but the manipulation/scaling for this issue would typically not be happening at a directive level - it would seem. Maybe I don't understand the problem or proposed solution properly - but it raised the question because I wouldn't think that this problem would NOT be solved with a directive, whereas that problem (#4361) I assumed would be. |
Lens already has a way to scale to a specific time-unit (which goes a bit beyond what's asked here), i.e. normalize a value "per second", "per minute", etc. Also the upcoming Lens Formulas (#91087) will allow making this arbitrary scaling, by being able to multiply any aggregation or calculation of aggregation with any (fixed) factor. Closing this thus in favor or the soon arriving Formulas. |
Hi,
I would like to ask if you plan to provide scale feature in KB4 as in KB3.
Or there is different approach to do this?
I know hot to format fileds in KB4.1, but Scale Fields is missing for me.
Thanks,
Rado
The text was updated successfully, but these errors were encountered: