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

Issue in showing Progress and downloading #63

Closed
sabir-piludiya opened this issue Oct 9, 2020 · 5 comments
Closed

Issue in showing Progress and downloading #63

sabir-piludiya opened this issue Oct 9, 2020 · 5 comments

Comments

@sabir-piludiya
Copy link

I have used dashboard from the example in this repo. I've also installed the SimpleJson Plugin in Grafana.
However When I click on export and add task nothing is shown at Progress panel. the data is available at exporter side.
I need to have progress bar in Dashboard from where I can download it directly.
It shows following error in the progress panel :

Expected response data to be array, got string.

In console I get following error when click on add task :

Cannot find datasource id in url

Please if you can help to fix this. Thanks.

@rozetko
Copy link
Member

rozetko commented Oct 9, 2020

Hi @sabir-piludiya,

Progress panel uses SimpleJson datasource to get list of exported files. Please, make sure you've specified your grafana-data-exporter URL with /datasource in the end while configuring SimpleJson datasource: https://github.com/CorpGlory/grafana-data-exporter-panel/wiki/Simple-JSON-Datasource-config

In case it doesn't help:

  • which version of grafana-data-exporter and grafana-data-exporter-panel are you using?
  • are there any errors in grafana-data-exporter logs?
  • do you see CSVs with your data in exported directory of grafana-data-exporter?

@sabir-piludiya
Copy link
Author

sabir-piludiya commented Oct 9, 2020

Hi @rozetko Thanks for quick response. /datasource was trick to get it in my case. I can download files. However I still not able to delete the csv from Progress panel.
Showing following error in console during deleting from progress panel:

tti-polyfill.js:4 Mixed Content: The page at 'https://GRAFANA/d/csv-report-exporter/csv-report-exporter?orgId=1' was loaded over HTTPS, but requested an insecure resource 'http://GRAFANA-EXPORTER/delete?filename=1602266159639.all'. This request has been blocked; the content must be served over HTTPS.

I'm using grafana-data-exporter-panel of 0.5.1 and corpglory/grafana-data-exporter docker image.
Also there's no error in logs of grafana-data-exporter.

Thanks.

@rozetko
Copy link
Member

rozetko commented Oct 12, 2020

It's a known problem: #29. This error appears because your Grafana uses HTTPS, but grafana-data-exporter doesn't.

The best solution would be to run grafana-data-exporter with HTTPS.

The reason is: modern browsers don't allow users to query HTTP from HTTPS.

It'll be fixed as soon as we convert the plugin to application (so that we can use Grafana server as proxy to query the grafana-data-exporter server)

@rozetko rozetko closed this as completed Oct 12, 2020
@sabir-piludiya
Copy link
Author

@rozetko You are right however I'm already running grafana-data-exporter in HTTPs. CSV downloading is working. but delete is not working (Sends Unexpected Error in grafana)

@rozetko
Copy link
Member

rozetko commented Oct 12, 2020

@sabir-piludiya thanks for the feedback, I've reproduced the bug and created an issue: #65

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