-
Notifications
You must be signed in to change notification settings - Fork 50
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
Need some FQA while using grafana-spark-dashboards #5
Comments
Hi @tsingfu, thanks for the detailed report on the email list (seems like it hasn't been accepted by the list yet for some reason?). I think I see the problem: the That request happens here (note that I just pushed an update that makes this request default to It seems that you've already found and changed that request, to http://monitor1:61081/ws/v1/cluster/apps, but your screenshot of your YARN RM web UI lives at http://spark1:8088/.... So, you actually want to have However, you probably don't have CORS headers set to allow your Grafana (monitor1:61081) to make XHRs to your YARN RM (spark1:8088). The work-around to this that I've described in the README is to run a proxy that hits the YARN JSON API, adds the appropriate CORS headers, and returns the info to Grafana. See this section of my example nginx.conf. You'll want to change the Sorry this is a lot of explanation, let me know if it doesn't make sense and I can try to explain it differently / more directly. |
Hi, @ryan-williams . I am very nice to hear from you.
My configuration in nginx.conf:
the detailed errors in web console:
Any help is highly appreciated. |
It seems like your setup is:
That all seems reasonable. However, the first error line you've pasted:
implies that you are making an XHR from Grafana ( You need to tell Grafana to fetch YARN info from your proxy ( In Note that if we could tell YARN RM ( re: configuring Apache to do this, I always get confused trying to configure apache web server, but a line like this:
inside e.g. a vhost for I've found it useful to sanity-check these things by running e.g.:
For my setup, I have grafana at
So I am able to request I know this is confusing, let me know if it still doesn't make sense. |
@ryan-williams , It works now. Thanks very much for your help. I think support of monitoring standalone mode could be in todo list. |
I'm going to close this out, let me know / reopen if there are things you think we should e.g. add to the documentation |
The show in README.md is cool! Good job.
I did a test using grafana-spark-dashboards with my graphite, and I got some errors on web:
the detailed error message could be found in spark-user-list Monitoring Spark with Graphite and Grafana.
I could not find any document about it, so I need some help.
Thanks.
The text was updated successfully, but these errors were encountered: