Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

-insecure-skip-verify does not work #24

Open
gwohletz opened this issue Dec 4, 2020 · 1 comment
Open

-insecure-skip-verify does not work #24

gwohletz opened this issue Dec 4, 2020 · 1 comment

Comments

@gwohletz
Copy link

gwohletz commented Dec 4, 2020

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"?

@jspaleta
Copy link

confirming.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants