-
Notifications
You must be signed in to change notification settings - Fork 12.3k
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
Graph: Export data as JSON & CSV #861
Comments
Good suggestion, will try incorporate this in the new panel menu (still WIP), #770 (comment) |
+1, this would be great if we could export raw data as csv or json format! |
+1, i'm looking forward your solution |
+1, it would be great ! |
I agree on the new feature but not in the place where it should be placed. IMHO access to raw data should be located over graphs ( a link perhaps) and not in the editor control. Perhaps in the future grafana will let us work with different roles : Viewers will be able to access/see data ( ploted ,cvs, raw ) but won't be able to change dashboard design. They won't access to the "edit" menu. |
@torkelo: any chance this feature will be included in grafana next version v1.9? |
@bbinet it depends. Simply viewing the data as json would be pretty simple. Viewing the data exactly as returned from InfluxDB/Graphite is more complicated as that is not saved (it is directly transformed into a internal format). |
@torkelo personnally I'm interested to get the graph data only (not the raw data returned from InfluxDB/Graphite), my preference would go to the csv format because I want to import this data into a spreadsheet program for further analysis. |
Torkel, thanks a lot! Alexandr On Fri, Nov 14, 2014 at 2:13 PM, Torkel Ödegaard [email protected]
|
@torkelo thanks a ton! |
+1 sorely needed feature |
@sabat CVS is not enough, you want json as well? |
JSON would be great. It would also be interesting to only export the metrics that are currently active in the graph, ie. not in a visually disabled state. |
+1 for this feature. Export as CSV or JSON would be a great addition! |
+1 |
+1 CSV export would be great in data tables. Right now this feature only works with charts. |
+1 |
Hi, Thanks |
@shujamughal I think this is already implemented in master |
@shujamughal @leoatavalancha @mhite @sabat @bbinet @torkelo can we export the CSV or json from terminal ?? cli ?? |
FYI, here is a gist exporting dashboards into json format. |
@zaibfridi Did you find any solution to download from terminal or cli? |
Is there a script i can use to export this raw data for all the panels in a dashboard to a csv format or any other format? I want to send my data to a common server through a script. Please let me know your views |
@asinha093 take a look at the Wizzy tool for exporting dashboard json. |
Exporting data from Grafana UI is a great feature! However, could there be an option to export the raw influxdb data? I know this can be achieved through the influxdb cli, but exporting directly from ui is more end-user friendly :) |
@philomatic I am sure there is some export feature in InfluxDB (or you can query the raw data to export it) |
yes, of course, however:
best regards |
Hi, Thanks |
@ZainabSayyed unfortunately there is not. If you want to do that you will have to it with a tool like PhantomJS or Selenium. There is a feature request for this: #8171 |
This isn't exactly what you're looking for since it's not in the UI, or per panel, but maybe this will help someone else trying to get data out of Grafana. I eventually got this to work for getting the graphed data "exported" in json: query the datasource directly (well, proxied). This is what happens when the graph refreshes with ajax. Here's a relatively complex, nested query and how to curl it. The query looks like this (it gets messy with url encoding):
This outputs the data in json format:
|
This worked for me regarding alerts graphs
|
thanks! |
"Release: Updated versions in package to 9.4.10"
Hello,
Would be great to add the possibility to get graph data in JSON and/or CSV format for the each graph panel. For example, via the new item(s) in Edit->Advanced sub-menu. Or by special button/icon in the legend area of the plot?
It's possible to do now for Graphite indirectly and in several steps - switch to Graphite PNG, get an URL of the image generated, change format parameter in the URL to format=json or format=raw.
And many thanks for the very useful tool!
Alexandr
The text was updated successfully, but these errors were encountered: