{"id":13582221,"url":"https://github.com/shift/domain_exporter","last_synced_at":"2025-04-04T17:10:10.256Z","repository":{"id":17441108,"uuid":"81982468","full_name":"shift/domain_exporter","owner":"shift","description":"Prometheus WHOIS domain details exporter.","archived":false,"fork":false,"pushed_at":"2025-01-08T13:39:22.000Z","size":4123,"stargazers_count":94,"open_issues_count":22,"forks_count":30,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-28T16:11:41.844Z","etag":null,"topics":["domains","monitoring","prometheus-exporter"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shift.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-14T19:45:21.000Z","updated_at":"2025-03-26T00:22:40.000Z","dependencies_parsed_at":"2023-11-16T07:35:41.003Z","dependency_job_id":"af8a686d-a3f6-4afe-9bad-4c32fbb2c666","html_url":"https://github.com/shift/domain_exporter","commit_stats":null,"previous_names":[],"tags_count":36,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shift%2Fdomain_exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shift%2Fdomain_exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shift%2Fdomain_exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shift%2Fdomain_exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shift","download_url":"https://codeload.github.com/shift/domain_exporter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247217222,"owners_count":20903009,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["domains","monitoring","prometheus-exporter"],"created_at":"2024-08-01T15:02:30.274Z","updated_at":"2025-04-04T17:10:10.228Z","avatar_url":"https://github.com/shift.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# domain_exporter\n[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fshift%2Fdomain_exporter.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fshift%2Fdomain_exporter?ref=badge_shield)\n\n\nVery simple service which performs WHOIS lookups for a list of domains provided in the \"config\" file and exposes them on a \"/metrics\" endpoint for consumption via Prometheus.\n\n```yaml\ndomains:\n  - google.com\n  - google.co.uk\n```\n\nFlags:\n```bash\nusage: domain_exporter [\u003cflags\u003e]\n\nFlags:\n  -h, --help                  Show context-sensitive help (also try --help-long and --help-man).\n      --config=\"domains.yml\"  Domain exporter configuration file.\n      --bind=\":9203\"          The address to listen on for HTTP requests.\n      --log.level=info        Only log messages with the given severity or above. One of: [debug, info, warn, error]\n      --log.format=logfmt     Output format of log messages. One of: [logfmt, json]\n      --version               Show application version.\n```\n\n### Docker image\n\nWe publish a docker image [on the Quay registry](https://quay.io/repository/shift/domain_exporter). You can pull this with `docker pull ghcr.io/shift/domain_exporter`.\n\n### Running on Kubernetes\n\n[Here](contrib/k8s-domain-exporter.yaml) is an example Kubernetes deployment configuration for how to deploy the domain_exporter.\n\n### Example Prometheus Alert\n\nThe following alert will be triggered when domains expire within 45 days, or if\nthey don't have a whois record available (perhaps having been long expired).\n\n```yaml\ngroups:\n - name: ./domain.rules\n   rules:\n    - alert: DomainExpiring\n      expr: domain_expiration{} \u003c 45\n      for: 24h\n      labels:\n        severity: warning\n      annotations:\n        description: \"{{ $labels.domain }} expires in {{ $value }} days\"\n    - alert: DomainUnfindable\n      expr: domain_expiration_unfindable \u003e 0\n      for: 24h\n      labels:\n        severity: critical\n      annotations:\n        description: \"Unable to find or parse expiry for {{ $labels.domain }}\"\n    - alert: DomainMetricsAbsent\n      expr: absent(domain_expiration) \u003e 0\n      for: 1h\n      labels:\n        severity: warning\n      annotations:\n        description: \"Metrics for domain-exporter are absent\"\n```\n\n### FAQ\n\n##### Why did I get a negative amount of days until expiry?\n\nThe WHOIS resposne probably doesn't parse correctly. Please create an issue with the response and we'll add the format.\n\n\n## License\n[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fshift%2Fdomain_exporter.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fshift%2Fdomain_exporter?ref=badge_large)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshift%2Fdomain_exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshift%2Fdomain_exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshift%2Fdomain_exporter/lists"}