{"id":48824085,"url":"https://github.com/shift/geoclue-prometheus-exporter","last_synced_at":"2026-04-14T17:02:00.426Z","repository":{"id":300104772,"uuid":"1005148065","full_name":"shift/geoclue-prometheus-exporter","owner":"shift","description":"Prometheus Exporter for Geoclue2 D-Bus daemon.","archived":false,"fork":false,"pushed_at":"2026-03-08T12:00:48.000Z","size":151,"stargazers_count":0,"open_issues_count":14,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-08T14:58:07.651Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shift.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-06-19T18:44:50.000Z","updated_at":"2025-06-30T19:16:19.000Z","dependencies_parsed_at":"2025-09-09T17:21:10.163Z","dependency_job_id":"c88a8a72-73a0-4d82-8bf9-e31825d6101f","html_url":"https://github.com/shift/geoclue-prometheus-exporter","commit_stats":null,"previous_names":["shift/geoclue-prometheus-exporter"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/shift/geoclue-prometheus-exporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shift%2Fgeoclue-prometheus-exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shift%2Fgeoclue-prometheus-exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shift%2Fgeoclue-prometheus-exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shift%2Fgeoclue-prometheus-exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shift","download_url":"https://codeload.github.com/shift/geoclue-prometheus-exporter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shift%2Fgeoclue-prometheus-exporter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31806209,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T11:13:53.975Z","status":"ssl_error","status_checked_at":"2026-04-14T11:13:53.299Z","response_time":153,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2026-04-14T17:01:59.765Z","updated_at":"2026-04-14T17:02:00.410Z","avatar_url":"https://github.com/shift.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GeoClue2 Prometheus Exporter\n\nA Prometheus metrics exporter for GeoClue2 geolocation data on Linux systems.\n\n## Features\n\n- Exports geolocation metrics (latitude, longitude, accuracy, altitude, etc.) as Prometheus metrics\n- Configurable minimum accuracy level\n- Configurable metrics endpoint\n- Easily integrates with Grafana Alloy for laptop metrics\n\n## Dependencies\n\nThis project uses:\n\n- **anyhow 1.0.75**: For flexible error handling\n- **chrono 0.4.31**: For date and time functionality\n- **clap 4.4.6**: For command line argument parsing\n- **futures-util 0.3.28**: For async/await utilities\n- **metrics 0.22.0**: For metrics collection and processing\n- **metrics-exporter-prometheus 0.13.0**: For exposing metrics in Prometheus format\n- **metrics-process 2.4.0**: For collecting process metrics\n- **tokio 1.36.0**: For asynchronous runtime\n- **zbus 4.1.2**: For D-Bus communication with GeoClue2\n\n## Installation\n\n### Using Nix/NixOS\n\nAdd this flake to your NixOS configuration:\n\n```nix\n{\n  inputs = {\n    nixpkgs.url = \"github:NixOS/nixpkgs/nixos-unstable\";\n    geoclue-prometheus-exporter = {\n      url = \"github:shift/geoclue-prometheus-exporter\";\n      inputs.nixpkgs.follows = \"nixpkgs\";\n    };\n  };\n  \n  outputs = { self, nixpkgs, geoclue-prometheus-exporter, ... }: {\n    nixosConfigurations.myHost = nixpkgs.lib.nixosSystem {\n      # ...\n      modules = [\n        # ...\n        geoclue-prometheus-exporter.nixosModules.default\n        \n        # Configure the service\n        ({ ... }: {\n          services.geoclue-prometheus-exporter = {\n            enable = true;\n            bind = \"127.0.0.1\";  # Default\n            port = 9090;         # Default\n            openFirewall = false; # Default\n          };\n        })\n      ];\n    };\n  };\n}\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshift%2Fgeoclue-prometheus-exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshift%2Fgeoclue-prometheus-exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshift%2Fgeoclue-prometheus-exporter/lists"}