Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

Recognition

  • Give kudos
  • My kudos

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Setup of prometheus.yml for Confluence and Jira

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

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
Community showcase
Published in Marketplace Apps & Integrations

5 mobile apps for Jira Cloud to boost productivity

  It’s very important to have access to the workflow process from anywhere. Especially if you manage the work of others. There is no difference whether you’re out of office, or drive a ca...

284 views 2 5
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you