-
Notifications
You must be signed in to change notification settings - Fork 1
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
Export to JSON/CSV #7
Comments
Hi there. Thank you for checking this out. To be honest, I was still learning Node while I was building this app, so it is definitely a little rough around the edges, haha. The data from AWS is provided as a deeply nested (and non-time-sequenced) JSON object. In the proxy server code, I pull data points out of this AWS object and package it into a delimited string. At the time, I did this to make it easier on me to place data into the function provided by HighCharts. Unfortunately, this is irresponsible and not sustainable in the long-term, so it's something I would refactor in later versions. What would be most helpful for you would probably be to pull data from Amazon directly. You need use the AWS module,
and to fill out this configuration object to access the module.
Then you create a new object from the AWS module that lets you pull data from CloudWatch.
Then you have to tell CloudWatch what you are asking for.
Then you are all set to make a request to Amazon.
Amazon provides great documentation for their API. To pull data from CloudWatch, check out this page. You can read in-general about the SDK or click on CloudWatch and read about the function I showed above, getMetricStatistics(). I hope this helps! |
Sure it does help a lot! Thanks for the detailed guide, since your are so nice here, can I ask a not related question forward? Does AWS throttle the data point to certain number like 7 day of data for 5 minute resolution etc, 1 day of data point of data for 1 minute resolution etc |
Spam haha, will be last non-constructive comment for me. I already setup panda-panopticon and found out the data point can only up to 1440 too, because of AWS SDK limit. If i am correct, you are using High Charts, It seem to relative easy for include Export CSV. I would try to include the export CSV if you confirm with me :) |
Does panda-panopticon can export the data show on graph as JSON / CSV?
Haven look closely to how the underlying work, is that already possible to inspect the JSON data point if the graph is generated based on JSON?
Thanks for this great nodejs + metrics apps.
The text was updated successfully, but these errors were encountered: