Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upAllow exporting graphed data (as CSV?) #2039
Comments
juliusv
added
area/usability
kind/enhancement
component/ui
labels
Sep 29, 2016
This comment has been minimized.
This comment has been minimized.
|
My thoughts on this have been that there should be a tool that can run a query and output in csv. I'm not sure about it being part of the core. |
This comment has been minimized.
This comment has been minimized.
|
Yeah, I would also see this in some tool. Put it into promtool? There is still #1753 . Once that is in, adding a CSV output would be straight forward. |
This comment has been minimized.
This comment has been minimized.
|
Makes sense, but wouldn't really help with the original goal: to help the Excel-type people in a more traditional company who want to have a simple UI and probably don't even know how to use the command line. Maybe that's a somewhat isolated use case though, as that's the first time I've heard about it like that too. So if we decide we don't deem that important enough to the UI, we could close this issue (or change it to add that to promtool). |
This comment has been minimized.
This comment has been minimized.
|
So you are more thinking about a "download as ..." menu on the /graph page, so that you can retrieve the result of a query you have crafted in the UI in a format of your choice? This might be useful even for other purposes. |
This comment has been minimized.
This comment has been minimized.
|
@beorn7 Precisely. |
This comment has been minimized.
This comment has been minimized.
|
Random concern: Prometheus queries are not necessarily reproducible. To generally get exactly the data displayed, you needed to export from the data already in the browser instead of re-run the query. So this might be a concern of the JS code running in the browser. |
This comment has been minimized.
This comment has been minimized.
|
@beorn7 That shouldn't be a problem, as we're already remembering the exact graph JSON for every graph in the JS and would have access to it. |
This comment has been minimized.
This comment has been minimized.
|
So just in case someone built such a button - would people be ok with having it in Prometheus? |
This comment has been minimized.
This comment has been minimized.
|
I'm pretty easy with it if it is really just something living in the UI. |
This comment has been minimized.
This comment has been minimized.
|
Yeah, I'm fine with it being just JS (and I can see it being handy for support). We'd probably also want to request it in Grafana. |
This comment has been minimized.
This comment has been minimized.
|
Same, as a pure UI feature, totally fine. Generally, @grobie brought up the point, that it would be cool to have UI On Fri, Sep 30, 2016 at 10:56 AM Brian Brazil notifications@github.com
|
This comment has been minimized.
This comment has been minimized.
|
@fabxc Agreed to that as a mostly orthogonal thing. The REST API features are already all there, or are you talking about not just the graphing/querying interface, but all the other metadata pages as well? Anyways, probably off-topic here. |
This comment has been minimized.
This comment has been minimized.
|
Yes, we need it for status, targets, and alerts as well. On Fri, Sep 30, 2016 at 11:22 AM Julius Volz notifications@github.com
|
brian-brazil
added
priority/Pmaybe
and removed
area/usability
labels
Jul 14, 2017
This comment has been minimized.
This comment has been minimized.
|
Hi, I have made a console template:
Maybe we can add it as an example console template? usage: |
This comment has been minimized.
This comment has been minimized.
|
v2 (error handling)
v3 (add debug=true support)
|
juliusv commentedSep 29, 2016
I've talked to people introducing Prometheus in a more traditional big company - when trying to convince deciders there that Prometheus is the right tool for them, the more Excel-type of people have been asking for simple ways to export graph data as CSV. Grafana supports some kind of graph export, but it's not ideal for their needs.
We could think about adding a query/graph data export button to the Prometheus web UI. Questions are: