Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Setup of prometheus.yml for Confluence and Jira

akinadeyemo1
Contributor
April 1, 2020

Hello everyone,

Please can someone assist in configuration of prometheus.yml file for scraping metrics from Jira and confluence.

All I have got is as detailed below from github and atlassian community

The prometheus.yml settings looks like:

*****************************************

scrape_configs:
- job_name: 'confluence'
scheme: https # change to http if don't you have https
metrics_path: '/<your_confluence_context_path>/plugins/servlet/prometheus/metrics'
static_configs:
- targets: ['myhost:1990'] # Confluence host and port you serve

*******************************************

The prometheus.yml settings looks like:

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

*********************************************

Putting these 2 details above in my prometheus.yml file with few modifications:

"myhost" modified to my ip address

<confluence_context_path> to "/confluence" in server.xml file

Restarted prometheus service but could not get my prometheus service running.

I will appreciate your advice on how to get this information appropriately configured in prometheus.yml.

My platform is centos 8 virtual machines.

Regards,

 

Akin

 

1 answer

1 accepted

0 votes
Answer accepted
akinadeyemo1
Contributor
April 21, 2020

I eventually got this sorted out myself by going into Jira and Confluence Web applications and find out the actual metrics_path location  i.e. /plugins/servlet/prometheus/metrics. I put in this detail in my prometheus.yml file and restarted prometheus.service.

I also replaced the ports with the actual connector port for Jira and Confluence in replacement of 2990 and 1990.

My prometheus service started fine and I was able to scrape Jira and Confluence metrics.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events