Skip to content
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

Apply field formatter to metric vis #2616

Closed
nabheet opened this issue Jan 13, 2015 · 2 comments · Fixed by #2624
Closed

Apply field formatter to metric vis #2616

nabheet opened this issue Jan 13, 2015 · 2 comments · Fixed by #2624
Assignees
Labels
bug Fixes for quality problems that affect the customer experience PR sent
Milestone

Comments

@nabheet
Copy link

nabheet commented Jan 13, 2015

How do I round a floating point number to 2 or 3 decimal places in the Metric visualization in Kibana4?

Also, how do I add "filter" criteria to the Metric Visualization, e.g., exclude certain documents from a sum/max metric or only sum up values from certain documents?

I was able to enter search text in the visualization which ended up being saved as:
{
"index": "index-prefix-*",
"query": {
"query_string": {
"query": "FieldName: "Some Field Text"",
"analyze_wildcard": true
}
},
"filter": []
}

Is there is a better way?

Thanks
Nabheet

@rashidkpc rashidkpc changed the title Metrics visualization round a floating point number Apply field formatter to metric vis Jan 13, 2015
@rashidkpc rashidkpc added the bug Fixes for quality problems that affect the customer experience label Jan 13, 2015
@rashidkpc rashidkpc added this to the 4.0.0-RC1 milestone Jan 13, 2015
@rashidkpc
Copy link
Contributor

It looks like the metric vis is not applying the number field formatter. Tagging as bug

Really we should probably be applying the field formatter anywhere we display a number that represents the value of a field. Eg, we should apply it on things like sum/min/max, but not on say, count, or unique count.

I've reduced this ticket to only address the one bug, if you have usage questions feel free to join us in #kibana on freenode for interactive troubleshooting.

@nabheet
Copy link
Author

nabheet commented Jan 13, 2015

sounds good, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience PR sent
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants