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

Formatting of a duration value #4165

Closed
sqpdln opened this issue Jun 10, 2015 · 6 comments
Closed

Formatting of a duration value #4165

sqpdln opened this issue Jun 10, 2015 · 6 comments

Comments

@sqpdln
Copy link

sqpdln commented Jun 10, 2015

Given a field 'duration' containing either seconds or milliseconds as a numerical value, it would be good to have a way of formatting it as hh:mm:ss.

  • The numeral.js lib used to format numbers in Kibana has a "time" formatting option, but it's not implemented for use on Number fields in kibana
  • Moment.js doesn't seem to have a way of removing the time zone offset, so storing duration as a Date field doesn't work either
@martinhynar
Copy link

I was hoping for this for 4.1.0 and found out just today that it is not there (in 4.1.1). So sad. This would be really appreciated enhancement for 4.1.2

@ghost
Copy link

ghost commented Sep 9, 2015

Add to this for microseconds as a numeric field type too, and for formatting to use something like Grafana's automatic scale. So 1000000 us = 1s

@tbragin
Copy link
Contributor

tbragin commented Aug 1, 2016

Looks like there was a duration formatter added in #6499

@bevacqua Does it address what is being requested here?

@bevacqua
Copy link
Contributor

bevacqua commented Aug 1, 2016

Yes, it should cover the vast majority of use cases

@anhlqn
Copy link
Contributor

anhlqn commented Aug 19, 2016

I guess this feature is available in 5.x.x alpha?

@tbragin
Copy link
Contributor

tbragin commented Oct 12, 2016

@anhlqn Yes, duration field formatter is available as part of 5.0-alpha1.

Closing as dup of #5130

@tbragin tbragin closed this as completed Oct 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants