AndreyVMarkelov/jira-prometheus-exporter

Metrics status is always Down on Prometheus

Closed this issue · 1 comments

I have installed this plugin on my Jira container and can see all metrics at the said path.
The host on which this Jira container is running has a DNS name and Jira is accessible using this DNS name.
Now the problem is, when I am mentioning this Exporter details in prometheus.yml file, Prometheus is always showing Down status for this metrics under target tab.

I tried with DNSname:80, DNSname:443, IPAdd:80 etc. but every time it is showing same error. My Jira instance is running on port 80.
Note- I am using node-exporter/alertmanager etc and their entries are made the same way like IPADDR:port and its in Up status.

It would be great if I can configure this metrics on a different port just like node-exporter or other.

OR any other help would really be appreciated.
Please let me now if any other details are required from me.

Well, after some discussion with my team, I came to know that this application is running in reverse proxy mode and required authentication details.
I added something like this in prometheus.yml and it started showing UP status.

job_name: 'Myapp'
scheme: https # change to http if don't you have https
basic_auth:
  username: myusername
  password: mypassword

As of now, my config is working fine, so closing this issue.