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

api call to get data in shell friendly format #316

Closed
ktsaou opened this issue Apr 25, 2016 · 2 comments
Closed

api call to get data in shell friendly format #316

ktsaou opened this issue Apr 25, 2016 · 2 comments

Comments

@ktsaou
Copy link
Member

ktsaou commented Apr 25, 2016

It would be nice to support something like this:

eval "$(curl http://localhost:19999/api/v1/chart=system.cpu&format=shell&after=-600&options=unaligned)"

This should create the variables SYSTEM_CPU_SYSTEM, SYSTEM_CPU_USER, SYSTEM_CPU_WAITIO, etc (one for each dimension of the chart), having the average utilization of the last 600 seconds.

@simonnagl
Copy link

I think we can close this.

@ktsaou ktsaou added the fixed label Feb 5, 2017
@ktsaou
Copy link
Member Author

ktsaou commented Feb 5, 2017

you are right!

for anyone looking at this: #1504

@ktsaou ktsaou closed this as completed Feb 5, 2017
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