Skip to content

-insecure-skip-verify does not work #24

Description

@gwohletz

I have a prometheus collector that runs inside of a docker container from a vendor, it works fine but does not serve a valid cert. I can query it just fine with "curl -k" but the sensu-prometheus-collector refuses to talk to it, with or without the -insecure-skip-verify flag:

sensu-prometheus-collector -insecure-skip-verify -prom-url https://pmm.XXX/prometheus/ -prom-query 'round(rate(mysql_global_status_innodb_row_lock_time{instance="XXX"}[1m])/rate(mysql_global_status_innodb_row_lock_waits{instance="XXX"}[1m]))'

2020/12/04 02:57:51 Get https://pmm.XXX/prometheus/api/v1/query?query=round%28rate%28mysql_global_status_innodb_row_lock_time%7Binstance%3D%22XXX%22%7D%5B1m%5D%29%2Frate%28mysql_global_status_innodb_row_lock_waits%7Binstance%3D%22XXX%22%7D%5B1m%5D%29%29&time=2020-12-04T02%3A57%3A51.248078426Z: x509: certificate has expired or is not yet valid

isn't the purpose of the -insecure-skip-verify to bypass "certificate has expired or is not yet valid"?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions