-
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
Big Number Metric - additional labels #4065
Comments
My concern would be how you'd address multiple numbers when using multiple metrics or multi-value metrics. Chances are you wouldn't want the same labels for all of them |
good point - if labels are under options they would apply to all metrics. It could still be a valid use case, to specify such labels applicable to all metrics in the same group, and it would be a big step forward for where single metrics are used. In addition (and that would solve the problem for multiple metrics), we could allow users to specify a “human-readable” field name under “index” -> “fields” -> “controls”. This would already look much nicer on the default bottom label, which then would say, e.g., “Sum of Budget per Projec in CHFt” instead of “Sum of budget_per_project_chf”.
|
There's a ticket for field aliases here: #1896 |
Ok, so no chance for the labels on the metric itself? Here’s how I would do this in metric_vis.html {{vis.params.label_top}}
This would obviously repeat the labels for each metric (which I still think could be a valid use case). Could event think about top/bottom label for the whole group… cheers, Mat
|
I think the biggest problem here again, would be labels for the individual charts. I think we need to think about this. |
Still working my way into understanding the aggregation types and configs but maybe the labels could be parameters on the individual metric aggregation?
|
Is it possible to follow the same approach than in filters #2245? One user defined label per metric and this label is used instead of the automatic one? |
Hi! I have done a first implementation. Working now in preparing the pull request. You can see in this video the feature working: As soon as I have the Pull Request, I hope we can review it and improve it. |
hi Haven’t looked at the code, just at the video, but I like it! Looking forward to being able to pull this… Thanks Mat
|
@mathiasrichter the pull request is ready #5142 if you give it a try it will be great! There are still some corners to fix, and probably the data handling could be improved, but overall, I feel comfortable with the design (pretty similar in other places in Kibana). |
@rashidkpc some recommendation for finding a reviewer for this PR? I have taken a look to current PR and I am not sure about when a reviewer get a PR. Thanks! |
I like this - I would want the change - however, can't find the branch to pull the code. |
@mathiasrichter you can test easily using the branch https://github.com/acs/kibana/tree/metric-label |
perfect, thanks - don’t know why I didn’t find the branch ;-) thanks for the quick reply, got it on my machine now...
|
I am getting the following when trying to start cabana using your branch: 22:43:52:~/Downloads/kibana-metric-label/bin>./kibana module.js:340 I am new to Babel and don’t know much about RequireJS and tried to install it for RequireJS, but it didn’t do the trick...
|
Have you compiled Kibana upstream in your machine and run it? The changes for this feature are few and not related to the kind of errors you have. |
no, haven't - that's probably it Vom Handy gesendet / Sent from mobile.
|
I am closing this as we don't plan to add more capabilities to the agg based metric. We have added in Lens the new metric which is very powerful and gives the ability to add secondary metric and additional labels |
I propose to add the possibility for the user to configure multiple labels for the big number metric (instead of the default <> <> label in the bottom.
I propose to add
Please let me know if this is an acceptable addition (it certainly is for my use cases), as I don't think the code changes are overly complex. I am ready to submit according changes if this is deemed acceptable.
The text was updated successfully, but these errors were encountered: