{"action":"created","issue":{"url":"https://api.github.com/repos/prometheus/prometheus/issues/692","labels_url":"https://api.github.com/repos/prometheus/prometheus/issues/692/labels{/name}","comments_url":"https://api.github.com/repos/prometheus/prometheus/issues/692/comments","events_url":"https://api.github.com/repos/prometheus/prometheus/issues/692/events","html_url":"https://github.com/prometheus/prometheus/issues/692","id":75416793,"number":692,"title":"Use TTL provided by DNS SRV results","user":{"login":"grobie","id":3432,"avatar_url":"https://avatars.githubusercontent.com/u/3432?v=3","gravatar_id":"","url":"https://api.github.com/users/grobie","html_url":"https://github.com/grobie","followers_url":"https://api.github.com/users/grobie/followers","following_url":"https://api.github.com/users/grobie/following{/other_user}","gists_url":"https://api.github.com/users/grobie/gists{/gist_id}","starred_url":"https://api.github.com/users/grobie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grobie/subscriptions","organizations_url":"https://api.github.com/users/grobie/orgs","repos_url":"https://api.github.com/users/grobie/repos","events_url":"https://api.github.com/users/grobie/events{/privacy}","received_events_url":"https://api.github.com/users/grobie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-12T01:23:25Z","updated_at":"2015-05-12T08:19:42Z","closed_at":null,"body":"The DNS refresh rate is currently a configuration option. Even better would be to use the TTL provided by the results and leave the authority at the DNS provider."},"comment":{"url":"https://api.github.com/repos/prometheus/prometheus/issues/comments/101185507","html_url":"https://github.com/prometheus/prometheus/issues/692#issuecomment-101185507","issue_url":"https://api.github.com/repos/prometheus/prometheus/issues/692","id":101185507,"user":{"login":"fabxc","id":4948210,"avatar_url":"https://avatars.githubusercontent.com/u/4948210?v=3","gravatar_id":"","url":"https://api.github.com/users/fabxc","html_url":"https://github.com/fabxc","followers_url":"https://api.github.com/users/fabxc/followers","following_url":"https://api.github.com/users/fabxc/following{/other_user}","gists_url":"https://api.github.com/users/fabxc/gists{/gist_id}","starred_url":"https://api.github.com/users/fabxc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabxc/subscriptions","organizations_url":"https://api.github.com/users/fabxc/orgs","repos_url":"https://api.github.com/users/fabxc/repos","events_url":"https://api.github.com/users/fabxc/events{/privacy}","received_events_url":"https://api.github.com/users/fabxc/received_events","type":"User","site_admin":false},"created_at":"2015-05-12T08:19:42Z","updated_at":"2015-05-12T08:19:42Z","body":"As a default that would be nice. I wouldn't make it mandatory, though.\r\nFrom what I understand, the TTLs of the result answer section are not that useful, as it doesn't tell us anything about joining and leaving instances. Respectively, Consul sets all TTLs to zero by default.\r\n\r\nThe SD spec requires to provide a TXT record for each SD name which's TTL specifies the TTL for the SD name. Consul, for example, does not fulfill this requirement.\r\n\r\nI assume consul sets the same TTL for all instances and hopes the user is smart and interprets this as the TTL for service as a whole. It's unlikely to be alone in not sticking to the spec.\r\nThis has obvious implications for an implementation of ours - it would not work for many users."}}