{"action":"created","issue":{"url":"https://api.github.com/repos/healthchecks/healthchecks/issues/42","repository_url":"https://api.github.com/repos/healthchecks/healthchecks","labels_url":"https://api.github.com/repos/healthchecks/healthchecks/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/healthchecks/healthchecks/issues/42/comments","events_url":"https://api.github.com/repos/healthchecks/healthchecks/issues/42/events","html_url":"https://github.com/healthchecks/healthchecks/issues/42","id":132250294,"number":42,"title":"Dynamic HCs for ephemeral nodes for a service","user":{"login":"pataquets","id":1286254,"avatar_url":"https://avatars.githubusercontent.com/u/1286254?v=3","gravatar_id":"","url":"https://api.github.com/users/pataquets","html_url":"https://github.com/pataquets","followers_url":"https://api.github.com/users/pataquets/followers","following_url":"https://api.github.com/users/pataquets/following{/other_user}","gists_url":"https://api.github.com/users/pataquets/gists{/gist_id}","starred_url":"https://api.github.com/users/pataquets/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pataquets/subscriptions","organizations_url":"https://api.github.com/users/pataquets/orgs","repos_url":"https://api.github.com/users/pataquets/repos","events_url":"https://api.github.com/users/pataquets/events{/privacy}","received_events_url":"https://api.github.com/users/pataquets/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-08T20:35:46Z","updated_at":"2016-02-18T11:11:47Z","closed_at":"2016-02-18T11:11:47Z","body":"First of all, thank you for this great software and making it available.\r\nI would like to perform health checks for services and batch jobs which should run always, but are run from different servers/nodes by autoscaling them.\r\nFor example:\r\n- serviceA:instance1\r\n- serviceA:instance2\r\n- serviceA:instance3\r\n- serviceB:instance1\r\n\r\nThe service should be always on, but instance count and name would vary with time. The service list is always the same and would be fine to maintain it by hand. But instances aren't always the same and names/identifiers can't be known in advance.\r\nWould be great if instances could self-register themselves for a specific service kind to start being monitored. For those temporary instances, a single alert about each one leaving would suffice.\r\nAs of now, uuids have to be created ahead of time, but:\r\n- Can pings to an uuid have added any kind of info with the instance name that could work?\r\n- Can uuids be created dynamically via an API?\r\n- Is there any way to remove the need to create uuids beforehand (on the fly)?\r\n\r\nIMHO, this kind of usage makes a lot of sense in the age of cloud.\r\nThanks in advance."},"comment":{"url":"https://api.github.com/repos/healthchecks/healthchecks/issues/comments/185663532","html_url":"https://github.com/healthchecks/healthchecks/issues/42#issuecomment-185663532","issue_url":"https://api.github.com/repos/healthchecks/healthchecks/issues/42","id":185663532,"user":{"login":"cuu508","id":661859,"avatar_url":"https://avatars.githubusercontent.com/u/661859?v=3","gravatar_id":"","url":"https://api.github.com/users/cuu508","html_url":"https://github.com/cuu508","followers_url":"https://api.github.com/users/cuu508/followers","following_url":"https://api.github.com/users/cuu508/following{/other_user}","gists_url":"https://api.github.com/users/cuu508/gists{/gist_id}","starred_url":"https://api.github.com/users/cuu508/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cuu508/subscriptions","organizations_url":"https://api.github.com/users/cuu508/orgs","repos_url":"https://api.github.com/users/cuu508/repos","events_url":"https://api.github.com/users/cuu508/events{/privacy}","received_events_url":"https://api.github.com/users/cuu508/received_events","type":"User","site_admin":false},"created_at":"2016-02-18T11:11:47Z","updated_at":"2016-02-18T11:11:47Z","body":"@pataquets check out #45\r\n\r\nI've started work on a command line client, which should help with this use case: \r\n\r\n* create a check if it does not exist\r\n* take note of its ping URL\r\n* ping it \r\n\r\nThe client code (very alpha for now) is at https://github.com/healthchecks/hchk\r\n\r\n    Can pings to an uuid have added any kind of info with the instance name that could work?\r\n\r\nNot at the moment. I've seen some people sending custom data in User-Agent header of the ping, but that's more of a hack.\r\n\r\n    Can uuids be created dynamically via an API?\r\n\r\nSince today, yes! – https://healthchecks.io/docs/api/\r\n\r\n    Is there any way to remove the need to create uuids beforehand (on the fly)?\r\n\r\nUUIDs are created on server, so it is not possible for the client to generate UUID deterministically and then feed it to the server. However, the client can create a check via API, store its ping URL locally and reuse it.\r\n"}}