diff --git a/README.md b/README.md index 32033ea..300bdf5 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,43 @@ See [the prometheus docs][0] for more information on the HTTP service discovery [0]: https://prometheus.io/docs/prometheus/latest/http_sd/ +## Example + +`curl http://tailscalesd:9242/` + +``` json +[ + { + "labels": { + "__meta_tailscale_device_client_version": "1.52.1-t75d3c9385-g3e9627f3b", + "__meta_tailscale_device_hostname": "gp-ourapp-prod-main", + "__meta_tailscale_device_authorized": "true", + "__meta_tailscale_device_id": "1234678910", + "__meta_tailscale_device_name": "gp-ourapp-prod-main.rocky-rocks.ts.net", + "__meta_tailscale_device_os": "linux", + "__meta_tailscale_tailnet": "ourtailnet" + }, + "targets": [ + "100.100.100.101" + ] + }, + { + "labels": { + "__meta_tailscale_device_client_version": "1.52.1-t75d3c9385-g3e9627f3b", + "__meta_tailscale_device_hostname": "ip-10-10-10-10", + "__meta_tailscale_device_authorized": "true", + "__meta_tailscale_device_id": "123456789101", + "__meta_tailscale_device_name": "ip-10-31-0-182.rocky-rocks.ts.net", + "__meta_tailscale_device_os": "linux", + "__meta_tailscale_tailnet": "ourtailnet" + }, + "targets": [ + "100.100.100.102" + ] + } +] +``` + ## Usage ### Configuration diff --git a/pyproject.toml b/pyproject.toml index 6fabc7a..df6f055 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,8 +6,8 @@ authors = ["Abel Luck "] include = ["LICENSE.MD"] exclude = ["tests"] readme = "README.md" -homepage = "https://gitlab.com/guardianproject-ops/tailscalesd" -repository = "https://gitlab.com/guardianproject-ops/tailscalesd" +homepage = "https://gitlab.com/guardianproject-ops/py-tailscalesd" +repository = "https://gitlab.com/guardianproject-ops/py-tailscalesd" packages = [ { include = "tailscalesd"} ]