{"action":"created","issue":{"url":"https://api.github.com/repos/prometheus/prometheus/issues/4529","repository_url":"https://api.github.com/repos/prometheus/prometheus","labels_url":"https://api.github.com/repos/prometheus/prometheus/issues/4529/labels{/name}","comments_url":"https://api.github.com/repos/prometheus/prometheus/issues/4529/comments","events_url":"https://api.github.com/repos/prometheus/prometheus/issues/4529/events","html_url":"https://github.com/prometheus/prometheus/issues/4529","id":353172575,"node_id":"MDU6SXNzdWUzNTMxNzI1NzU=","number":4529,"title":"collect openstack data with self-signed cert","user":{"login":"fedya","id":598477,"node_id":"MDQ6VXNlcjU5ODQ3Nw==","avatar_url":"https://avatars2.githubusercontent.com/u/598477?v=4","gravatar_id":"","url":"https://api.github.com/users/fedya","html_url":"https://github.com/fedya","followers_url":"https://api.github.com/users/fedya/followers","following_url":"https://api.github.com/users/fedya/following{/other_user}","gists_url":"https://api.github.com/users/fedya/gists{/gist_id}","starred_url":"https://api.github.com/users/fedya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fedya/subscriptions","organizations_url":"https://api.github.com/users/fedya/orgs","repos_url":"https://api.github.com/users/fedya/repos","events_url":"https://api.github.com/users/fedya/events{/privacy}","received_events_url":"https://api.github.com/users/fedya/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-23T00:21:26Z","updated_at":"2018-08-23T09:43:17Z","closed_at":null,"author_association":"NONE","body":"## Bug Report\r\n**What did you do?**\r\nTryint to collect openstack data with self-signed cert\r\nand i got\r\n`could not create OpenStack session: Post https://123.123.123.123:5000/v3/auth/tokens: x509: certificate signed by unknown authority\"`\r\n\r\n**Environment**\r\ncentos7\r\n* System information:\r\n\r\n\tLinux 4.17.11-desktop-1omv x86_64\r\n\r\n* Prometheus version:\r\n\r\n\tprometheus, version 2.3.2 \r\n\r\n* Alertmanager version:\r\n\r\n\talertmanager, version 0.15.1\r\n\r\n* Prometheus configuration file:\r\n```\r\nglobal:\r\n  scrape_interval:     1m\r\n  evaluation_interval: 1m\r\n\r\nrule_files:\r\n- /var/lib/prometheus/rules/*.rules\r\n- /var/lib/prometheus/alerts/*.rules\r\n\r\nalerting:\r\n  alertmanagers:\r\n  - static_configs:\r\n    - targets:\r\n      - localhost:9093\r\n\r\n- job_name: 'openstack'\r\n  openstack_sd_configs:\r\n    - identity_endpoint: https://123.123.123.123:5000/v3\r\n      username: user\r\n      project_name: admin\r\n      region: RegionOne\r\n      domain_name: Default\r\n      password: 123\r\n      role: instance\r\n```\r\n\r\n\r\n\r\n\r\n* Logs:\r\n```\r\nlevel=info ts=2018-08-23T00:20:47.655770615Z caller=main.go:629 msg=\"Completed loading of configuration file\" filename=/etc/prometheus/prometheus.yml\r\nlevel=info ts=2018-08-23T00:20:47.655799027Z caller=main.go:502 msg=\"Server is ready to receive web requests.\"\r\nlevel=error ts=2018-08-23T00:20:47.662639049Z caller=instance.go:70 component=\"discovery manager scrape\" discovery=openstack msg=\"Unable to refresh target groups\" err=\"could not create OpenStack session: Post https://123.123.123.123:5000/v3/auth/tokens: x509: certificate signed by unknown authority\"\r\nlevel=error ts=2018-08-23T00:21:47.663941813Z caller=instance.go:87 component=\"discovery manager scrape\" discovery=openstack msg=\"Unable to refresh target groups\" err=\"could not create OpenStack session: Post https://123.123.123.123:5000/v3/auth/tokens: x509: certificate signed by unknown authority\"```\r\n"},"comment":{"url":"https://api.github.com/repos/prometheus/prometheus/issues/comments/415356663","html_url":"https://github.com/prometheus/prometheus/issues/4529#issuecomment-415356663","issue_url":"https://api.github.com/repos/prometheus/prometheus/issues/4529","id":415356663,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNTM1NjY2Mw==","user":{"login":"simonpasquier","id":2587585,"node_id":"MDQ6VXNlcjI1ODc1ODU=","avatar_url":"https://avatars1.githubusercontent.com/u/2587585?v=4","gravatar_id":"","url":"https://api.github.com/users/simonpasquier","html_url":"https://github.com/simonpasquier","followers_url":"https://api.github.com/users/simonpasquier/followers","following_url":"https://api.github.com/users/simonpasquier/following{/other_user}","gists_url":"https://api.github.com/users/simonpasquier/gists{/gist_id}","starred_url":"https://api.github.com/users/simonpasquier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonpasquier/subscriptions","organizations_url":"https://api.github.com/users/simonpasquier/orgs","repos_url":"https://api.github.com/users/simonpasquier/repos","events_url":"https://api.github.com/users/simonpasquier/events{/privacy}","received_events_url":"https://api.github.com/users/simonpasquier/received_events","type":"User","site_admin":false},"created_at":"2018-08-23T09:43:17Z","updated_at":"2018-08-23T09:43:17Z","author_association":"CONTRIBUTOR","body":"What you're looking for is a `tls_config` section that doesn't exist (yet) for the OpenStack SD. I've rephrased the description accordingly.\r\n\r\nIIUC it is somehow possible to override the default HTTP client used by `gophercloud` (see https://github.com/gophercloud/gophercloud/issues/311)"}}
{"actor":{"display_login":"simonpasquier"}}