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

generate snapshot statistics to html file ? #217

Closed
centminmod opened this issue Apr 13, 2016 · 6 comments
Closed

generate snapshot statistics to html file ? #217

centminmod opened this issue Apr 13, 2016 · 6 comments
Labels

Comments

@centminmod
Copy link

I do a lot of stress load testing of my servers for comparison benchmarks with different web server configurations i.e. nginx vs apache vs openlitespeed/litespeed vs caddy for http/1.1 and http/2 etc. Part of that process is gathering system level stats for cpu, memory and disk usage etc.

Was wondering if netdata has any planned or existing feature which would allow us to generate a moment in time snapshot of all server statistics and save them to a html file or their own /snapshot/timestamp/* directory for viewing or posting along with my benchmark results ?

@ktsaou
Copy link
Member

ktsaou commented Apr 13, 2016

ok, we already have this.

You can generate snapshots in JSON, CSV, HTML.
Check the API documentation.

Examples (all these dump the last 600 seconds of data):

JSON

http://netdata.firehol.org/api/v1/data?chart=system.cpu&before=0&after=-600&options=seconds

CSV

http://netdata.firehol.org/api/v1/data?chart=system.cpu&before=0&after=-600&options=seconds&format=csv

CSV with TABs

http://netdata.firehol.org/api/v1/data?chart=system.cpu&before=0&after=-600&options=seconds&format=tsv

HTML

http://netdata.firehol.org/api/v1/data?chart=system.cpu&before=0&after=-600&options=seconds&format=html

You can also save them in a format that can directly be loaded to google charts.

http://netdata.firehol.org/api/v1/data?chart=system.cpu&before=0&after=-600&format=datatable

In this case, you can also append tqx= with options supported by google charts.
https://developers.google.com/chart/interactive/docs/dev/implementing_data_source#request-format

@centminmod
Copy link
Author

@ktsaou marvelous indeed just what I need thanks

where's the latest API documentation https://github.com/firehol/netdata/wiki/REST-API-v1 ?

ktsaou added a commit that referenced this issue Apr 13, 2016
@ktsaou
Copy link
Member

ktsaou commented Apr 13, 2016

where's the latest API documentation https://github.com/firehol/netdata/wiki/REST-API-v1 ?

Follow the Swagger Editor link. Here: http://editor.swagger.io/#/?import=https://raw.githubusercontent.com/firehol/netdata/master/web/netdata-swagger.yaml

(there was a duplicate key and it was not presented - I fixed it)

@centminmod
Copy link
Author

ah i see the correct API info now.. thanks @ktsaou

@ktsaou
Copy link
Member

ktsaou commented Apr 15, 2016

Can we close this?

@ktsaou
Copy link
Member

ktsaou commented Apr 19, 2016

ok. I close it.
Open it again if something is missing.

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

No branches or pull requests

2 participants