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

Add wall clock time and CPU time #57

Open
tomjaguarpaw opened this issue Jun 28, 2016 · 3 comments
Open

Add wall clock time and CPU time #57

tomjaguarpaw opened this issue Jun 28, 2016 · 3 comments

Comments

@tomjaguarpaw
Copy link
Contributor

Could wall clock time and CPU time be added to the ekg output? They would be very helpful.

@tibbe
Copy link
Collaborator

tibbe commented Jun 29, 2016

The wall clock time is already there as ekg.server_time_ms. We could add the CPU time as ekg.server_cpu_time or similar. Want to give it a try?

@tomjaguarpaw
Copy link
Contributor Author

I don't see ekg.server_time_ms. I do see ekg.server_timestamp_ms, which is not what I want (Although I notice the comment does say ekg.server_time_ms. Is that a mistake?). It seems to be some arbitrary timestamp. I would like to see the elapsed time since the program started running.

Is elapsed time actually missing then? If so I'm happy to try to add it.

@tibbe
Copy link
Collaborator

tibbe commented Jun 29, 2016

I think the comment is wrong and it should say ekg.server_timestamp_ms. I have been thinking about adding other metrics, such as scraping /proc on Unix. It should be doable without changing ekg at all. You need to use ekg-core and define e.g. a new group of metrics using registerGroup. registerGroup is for pulling groups of metrics on demand. This is good for things like the current time. You should be able to have registerGroup read /proc and pull out all kinds of interesting metrics. Perhaps you could even publish it as a new ekg package!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants