question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Prometheus plugin endpoint showing blank page

See original GitHub issue

Below is my jenkins environment.

Jenkins - 2.263.1(LTS) deployed through tomcat.
Prometheus metrics plugin - 2.0.8 

http://jenkins-server/jenkins/prometheus just shows the blank page on my browsers.

My prometheus.yml

  - job_name: 'jenkins'
    metrics_path: '/jenkins/prometheus'
    scheme: http
    static_configs:
    - targets: ['jenkins-server:80']

Even tried with authentication, however still blank page shown.

basic_auth:
  username: domain-user
  password: 98qw37asdkdsjfeiq1dedsewe

Jenkins system log section below message shown.

A thread (prometheus_async_worker thread/77119) died unexpectedly due to an uncaught exception, this may leave your Jenkins in a bad way and is usually indicative of a bug in the code.
java.lang.NullPointerException

Refered this issue - https://github.com/jenkinsci/prometheus-plugin/issues/82 however it is closed, can’t find the workaround in that.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
jsmilanicommented, Mar 16, 2021

There are a handful of similar tickets and I believe some root causes have been resolved and merged but we are waiting for the next release. Any updates on when this will be released? A lot of us are waiting and unable to use the plugin due to the bugs.

1reaction
mohanss08commented, Feb 27, 2021

I did that many times, however still experiencing the same issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Prometheus API return blank page · Issue #82 - GitHub
Hi, I try to use Prometheus plugin in our jenkins setup. As the whole Jenkins is setup by another team, and I just...
Read more >
Prometheus endpoint is a blank page - using kamon with ...
Prometheus endpoint is a blank page - using kamon with Prometheus reporter in a Spring Boot app - Stack Overflow. Stack Overflow for...
Read more >
Prometheus plugin broke with upgrade to 2.0.8 - Jenkins Jira
Install 2.0.8 plugin. Expected behaviour. Be able to access url/prometheus and not see a blank screen but see usual metrics + job stage...
Read more >
Troubleshooting; Common cases - thanos.io
This issue might happen when thanos is not configured properly. Possible Solution #. Make sure that prometheus is running while thanos is started....
Read more >
prometheus | Apache APISIX® -- Cloud-Native API Gateway
The prometheus Plugin can be enabled with an empty table. The example below shows how you can configure the Plugin on a specific...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found