{"id":16994637,"url":"https://github.com/znerol/prometheus-timemachine-exporter","last_synced_at":"2025-03-22T05:43:38.764Z","repository":{"id":64964505,"uuid":"580039860","full_name":"znerol/prometheus-timemachine-exporter","owner":"znerol","description":"Exports age of latest Apple Time Machine backup as a prometheus gauge","archived":false,"fork":false,"pushed_at":"2023-07-13T09:45:58.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-01-27T06:28:04.848Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","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/znerol.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2022-12-19T15:12:02.000Z","updated_at":"2023-01-04T12:23:17.000Z","dependencies_parsed_at":"2024-06-21T12:09:14.364Z","dependency_job_id":null,"html_url":"https://github.com/znerol/prometheus-timemachine-exporter","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/znerol%2Fprometheus-timemachine-exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/znerol%2Fprometheus-timemachine-exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/znerol%2Fprometheus-timemachine-exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/znerol%2Fprometheus-timemachine-exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/znerol","download_url":"https://codeload.github.com/znerol/prometheus-timemachine-exporter/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244913005,"owners_count":20530769,"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":[],"created_at":"2024-10-14T03:46:08.017Z","updated_at":"2025-03-22T05:43:38.744Z","avatar_url":"https://github.com/znerol.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Apple Time Machine Exporter for Prometheus\n\nThis is a simple server that determines the age of the latest time machine\nbackup and exports that via HTTP for Prometheus consumption.\n\n## Getting Started\n\nTo run it:\n\n```bash\n./timemachine_exporter [flags]\n```\n\nHelp on flags:\n\n```bash\n./timemachine_exporter --help\n```\n\nFor more information check the [source code documentation][gdocs]. All of the\ncore developers are accessible via the Prometheus Developers [mailinglist][].\n\n[gdocs]: http://godoc.org/github.com/znerol/prometheus-timemachine-exporter\n\n## Usage\n\n### Building\n\n```bash\nmake all\n```\n\n### Exported Metrics\n\nHere's an example of the metrics exported.\n\n```\nswift build -c release --arch arm64 --arch x86_64\n# HELP timemachine_destination_avail_bytes Filesystem size in bytes on current destination\n# TYPE timemachine_destination_avail_bytes gauge\ntimemachine_destination_avail_bytes 1571991666688\n# HELP timemachine_destination_latest_age_seconds Seconds since the last successful Apple Time Machine Backup to current destination\n# TYPE timemachine_destination_latest_age_seconds gauge\ntimemachine_destination_latest_age_seconds 657.5939079523087\n# HELP timemachine_destination_info Apple Time Machine Backup current destination info\n# TYPE timemachine_destination_info gauge\ntimemachine_destination_info 0\ntimemachine_destination_info{volume=\"TimeMachine\", network=\"true\", id=\"8CC5AF2D-7A6D-4168-A48D-B3D1C28B03D1\"} 1\n# HELP timemachine_destination_earliest_age_seconds Seconds since the earliest successful Apple Time Machine Backup to current destination\n# TYPE timemachine_destination_earliest_age_seconds gauge\ntimemachine_destination_earliest_age_seconds 42320198.59390795\n# HELP timemachine_destination_size_bytes Filesystem space available to Apple Time Machine Backups in bytes on current destination\n# TYPE timemachine_destination_size_bytes gauge\ntimemachine_destination_size_bytes 9500087140352\n```\n\n## License\n\nApache License 2.0, see [LICENSE](https://github.com/znerol/prometheus-timemachine-exporter/blob/develop/LICENSE).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fznerol%2Fprometheus-timemachine-exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fznerol%2Fprometheus-timemachine-exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fznerol%2Fprometheus-timemachine-exporter/lists"}