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

Can't import dashboard in grafana #47

Open
ghost opened this issue Mar 8, 2019 · 3 comments
Open

Can't import dashboard in grafana #47

ghost opened this issue Mar 8, 2019 · 3 comments

Comments

@ghost
Copy link

ghost commented Mar 8, 2019

Hi,
I have this problem with importing a dashboard ( Id=5249 ) into my grafana. I'm using grafana 6.0.0, Prometheus 2.8.0 and Prometheus Exporter for Jira 1.0.21. All correctly installed. While importing json file or entering ID/url, I'm getting error "Unexpected token u in JSON at position 0".
Prometheus is added as "Data Source" and he is listening on port 9090.
Prometheus.yml contains following lines:
scrape_configs:

  • job_name: 'jira'
    scheme: https # change to http if don't you have https
    metrics_path: '/jira/plugins/servlet/prometheus/metrics'
    static_configs:
    • targets: ['myhost:2990'] # Jira host and port you serve
      as recommended.
      What could be a problem?
@AndreyVMarkelov
Copy link
Owner

Hi. Did you use some secter token?

@ghost
Copy link
Author

ghost commented Mar 18, 2019

Hi,
no I don't use secret token.

@dsmorse
Copy link

dsmorse commented Apr 3, 2019

There are multiple steps between installing the prometheus plugin and loading a dashboard into grafana.

  1. have you confirmed that you can view the prometheus metrics at the end point in your JIRA instance?
  2. have you confirmed that you can curl that URL remotely from your prometheus server to rule out networks and firewalls?
  3. have you loaded the jira endpoint into prometheus as a data source (your snippet above)?
  4. have you confirmed that the target is green in prometheus?
  5. have you confirmed that you can query the metrics are query-able in prometheus?
    --- only at that point
  6. can you query the metrics into grafana via the prometheus data source?
  7. can you import a pre-saved dashboard and replace the varibles?

I hate to say it, but only step 1 is part of this project.

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