Skip to end of banner
Go to start of banner

Configure for Not Secure SSL site

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

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:

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 you final config file with 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: ['prdt-ae-ec2-bit-dc-elb-53551871.us-west-2.elb.amazonaws.com']
    tls_config:
      insecure_skip_verify: true

Now your endpoint will up and ready.

  • No labels