{"action":"created","issue":{"url":"https://api.github.com/repos/prometheus/prometheus/issues/4646","repository_url":"https://api.github.com/repos/prometheus/prometheus","labels_url":"https://api.github.com/repos/prometheus/prometheus/issues/4646/labels{/name}","comments_url":"https://api.github.com/repos/prometheus/prometheus/issues/4646/comments","events_url":"https://api.github.com/repos/prometheus/prometheus/issues/4646/events","html_url":"https://github.com/prometheus/prometheus/issues/4646","id":362591059,"node_id":"MDU6SXNzdWUzNjI1OTEwNTk=","number":4646,"title":"Prometheus not scraping all subdomains correctly?","user":{"login":"augmenter","id":4120344,"node_id":"MDQ6VXNlcjQxMjAzNDQ=","avatar_url":"https://avatars2.githubusercontent.com/u/4120344?v=4","gravatar_id":"","url":"https://api.github.com/users/augmenter","html_url":"https://github.com/augmenter","followers_url":"https://api.github.com/users/augmenter/followers","following_url":"https://api.github.com/users/augmenter/following{/other_user}","gists_url":"https://api.github.com/users/augmenter/gists{/gist_id}","starred_url":"https://api.github.com/users/augmenter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/augmenter/subscriptions","organizations_url":"https://api.github.com/users/augmenter/orgs","repos_url":"https://api.github.com/users/augmenter/repos","events_url":"https://api.github.com/users/augmenter/events{/privacy}","received_events_url":"https://api.github.com/users/augmenter/received_events","type":"User","site_admin":false},"labels":[{"id":664475581,"node_id":"MDU6TGFiZWw2NjQ0NzU1ODE=","url":"https://api.github.com/repos/prometheus/prometheus/labels/component/scraping","name":"component/scraping","color":"0052cc","default":false},{"id":647078166,"node_id":"MDU6TGFiZWw2NDcwNzgxNjY=","url":"https://api.github.com/repos/prometheus/prometheus/labels/kind/more-info-needed","name":"kind/more-info-needed","color":"006b75","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2018-09-21T12:20:56Z","updated_at":"2018-10-04T13:34:41Z","closed_at":null,"author_association":"NONE","body":"Prometheus 2.3.2 (tried 2.4.2 which did not scrape any of the below).\r\n\r\nI have 3 identical jobs, all connecting to a working product but a different instance.\r\nSee configuration below to see Job settings.\r\n- Job1 works perfectly\r\n- Job2 shows up as 'UP' in the Targets GUI, but data does not show in Graph Gui.\r\n- Job3 is the scrape data from Job3 downloaded by hand and saved to a local server as a .txt file, it works perfectly and the data gets scraped.\r\n\r\nJob1 and Job2 both return the same headers on request, and both are HTTPS with a valid certificate. This cant be a format issue in the metric, as job3 is verbatim txt copy of job2, and it works?\r\n\r\nPrometheus seems to not scrape subdomains unless they are www. ?\r\nThis my only reasoning that I was able to do.\r\n\r\nWhen changing Job1 from www. to bo. subdomain, it stops scraping as well.\r\n\r\n## Proposal\r\nThis should just work.\r\n\r\n* System information:\r\n\r\n\tWindows 10\r\n* Prometheus version:\r\n\r\n\tprometheus, version 2.3.2 (branch: HEAD, revision: 71af5e29e815795e9dd14742ee7725682fa14b7b)\r\n  build user:       root@5258e0bd9cc1\r\n  build date:       20180712-14:13:08\r\n  go version:       go1.10.3\r\n\r\n* Prometheus configuration file:\r\n```\r\n  - job_name: 'job1'\r\n    scheme: https\r\n    static_configs:\r\n      - targets: ['www.example.com']\r\n    metrics_path: '/prom/?txt'  \r\n  - job_name: 'job2'\r\n    scheme: https\r\n    static_configs:\r\n      - targets: ['api.example2.com']\r\n    metrics_path: '/prom/?txt'    \r\n  - job_name: 'job3'\r\n    scheme: http\r\n    static_configs:\r\n      - targets: ['test.ddev']\r\n    metrics_path: '/ca_prom_tmp.txt'     \r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/prometheus/prometheus/issues/comments/427020632","html_url":"https://github.com/prometheus/prometheus/issues/4646#issuecomment-427020632","issue_url":"https://api.github.com/repos/prometheus/prometheus/issues/4646","id":427020632,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNzAyMDYzMg==","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-10-04T13:34:41Z","updated_at":"2018-10-04T13:34:41Z","author_association":"MEMBER","body":"Very weird... Would you be able to run the same configuration on a Linux box so that we can ensure whether it is a platform issue or a more general one?"}}
{"actor":{"display_login":"simonpasquier"}}