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

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

How to handle insecure SSL certificate sites with Prometheus for Jira, Confluence, Bitbucket and Bam

Hello!

In this article I will tell you how to handle insecure SSL certificate sites with Prometheus for Jira, Prometheus for Confluence , Prometheus for Bitbucket and Prometheus for Bamboo apps.

Suppose, you connect to a Jira, Confluence, Bitbucket or Bamboo instance with an insecure ssl certificate and you have the following config file:

global:
scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.
# scrape_timeout is set to the global default (10s).



# A scrape configuration containing exactly one endpoint to scrape:
scrape_configs:
- job_name: 'jira'
scheme: https #change to http if don't you have https
metrics_path: '/plugins/servlet/prometheus/metrics'
static_configs:
- targets: ['yourinstance.com']

In this case if you run Prometheus and choose the System → Targets menu you will see the following message:

Screenshot 2020-09-10 at 11.24.08.png

As you can see the error is:

x509: certificate has expired or is not yet valid

We need to tell Prometheus not to check the ssl certificate and we can do it with the following  parameters:

tls_config:
insecure_skip_verify: true

And your final config file would look like this:

# my global config
global:
scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.
# scrape_timeout is set to the global default (10s).



# A scrape configuration containing exactly one endpoint to scrape:
scrape_configs:
- job_name: 'bitbucket'
scheme: https #change to http if don't you have https
metrics_path: '/plugins/servlet/prometheus/metrics'
static_configs:
- targets: ['yourinstance.com']
tls_config:
insecure_skip_verify: true

Now your endpoint will up and ready.

0 comments

Comment

Log in or Sign up to comment
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...

210 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