ribbybibby / ssl_exporter

Exports Prometheus metrics for TLS certificates
Apache License 2.0
507 stars 95 forks source link

context problem #41

Closed offlinejke closed 3 years ago

offlinejke commented 3 years ago

I've tried to configure ssl-exporter, but prometheus gives me context deadline error. Look please at my config, and tell what i missed. ss-exporter:

modules:
  https:
    prober: https
  https_insecure:
    prober: https
    tls_config:
      insecure_skip_verify: true

prometheus:

  - job_name: 'ssl'
    metrics_path: /probe
    params:
      module: ["https"]
    static_configs:
      - targets:
        - "www.google.com:443"
    relabel_configs:
      - source_labels: [__address__]
        target_label: __param_target
      - source_labels: [__param_target]
        target_label: instance
      - target_label: __address__
        replacement: 88.198.189.243:9219
ribbybibby commented 3 years ago

Hi @offlinejke. Your config looks fine and works fine for me (when substituting my own IP in of course).

Do you have any relevant logs from Prometheus or the exporter itself that might provide more information?

My initial suspicion is that there is some issue with the connection from Prometheus to the exporter. Is there some kind of firewall between the two?