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
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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.