{"id":16022111,"url":"https://github.com/cfstras/hitron-exporter","last_synced_at":"2026-04-20T00:04:34.498Z","repository":{"id":52296471,"uuid":"354286163","full_name":"cfstras/hitron-exporter","owner":"cfstras","description":"Prometheus exporter for Hitron CGNV4-FX2","archived":false,"fork":false,"pushed_at":"2023-05-02T08:50:47.000Z","size":56,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-16T18:35:59.007Z","etag":null,"topics":["hitron","hitronhub","prometheus","prometheus-exporter","prometheus-metrics"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cfstras.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2021-04-03T12:28:17.000Z","updated_at":"2024-12-30T22:25:56.000Z","dependencies_parsed_at":"2024-06-21T00:25:14.506Z","dependency_job_id":null,"html_url":"https://github.com/cfstras/hitron-exporter","commit_stats":{"total_commits":21,"total_committers":2,"mean_commits":10.5,"dds":0.09523809523809523,"last_synced_commit":"e4cdc8aa23497c193edd95f37019a90c43a40d07"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfstras%2Fhitron-exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfstras%2Fhitron-exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfstras%2Fhitron-exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfstras%2Fhitron-exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cfstras","download_url":"https://codeload.github.com/cfstras/hitron-exporter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242163952,"owners_count":20082228,"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":["hitron","hitronhub","prometheus","prometheus-exporter","prometheus-metrics"],"created_at":"2024-10-08T18:21:09.544Z","updated_at":"2025-12-07T00:01:38.659Z","avatar_url":"https://github.com/cfstras.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hitron-exporter\n\nMetrics exporter for Hitron CGNV4-FX2 routers, which are (used to be?) distributed as part of Unitymedia/Vodafone Business cable internet.\n\n\n## Running\n\n```bash\ndocker run -it --rm -p 9101:80 ghcr.io/cfstras/hitron-exporter:latest --host --pass XYZ\n```\n\n### docker-compose\n\n```yaml\nhitron_exporter:\n  image: ghcr.io/cfstras/hitron-exporter:latest\n  command:\n    - --pass=mySecretPassword\n#   - --user=admin\n#   - --host=http://192.168.0.1:80/\n  ports:\n    - 9101:80\n  restart: unless-stopped\n```\n\n### Example output\n\n```bash\n➜ curl localhost/metrics\n# HELP hitron_address Hardware and IP Addresses in labels\n# TYPE hitron_address gauge\nhitron_address{lan_ip=\"192.168.0.1/24\",rf_mac=\"68:XX:YY:ZZ:AA:BB\",wan_ip=\"1.2.3.4/21\"} 1\n# HELP hitron_cm_bpi_status DOCSIS Provisioning BPI Status\n# TYPE hitron_cm_bpi_status gauge\nhitron_cm_bpi_status{auth=\"authorized\",tek=\"operational\"} 1\n# HELP hitron_cm_dhcp_lease_duration DOCSIS DHCP Lease duration\n# TYPE hitron_cm_dhcp_lease_duration counter\nhitron_cm_dhcp_lease_duration 259200\n# HELP hitron_cm_dhcp_success DOCSIS Provisioning DHCP Status\n# TYPE hitron_cm_dhcp_success gauge\nhitron_cm_dhcp_success 1\n# HELP hitron_cm_docsis_addr DOCSIS IP Addresses\n# TYPE hitron_cm_docsis_addr gauge\nhitron_cm_docsis_addr{gateway=\"10.40.XX.YY\",ip=\"10.40.XX.YY\",netmask=\"255.255.240.0\"} 1\n# HELP hitron_cm_download_config_success DOCSIS Provisioning Download CM Config File Status\n# TYPE hitron_cm_download_config_success gauge\nhitron_cm_download_config_success 1\n# HELP hitron_cm_find_downstream_success DOCSIS Provisioning Lock Downstream Status\n# TYPE hitron_cm_find_downstream_success gauge\nhitron_cm_find_downstream_success 1\n# HELP hitron_cm_hwinit_success DOCSIS Provisioning HWInit Status\n# TYPE hitron_cm_hwinit_success gauge\nhitron_cm_hwinit_success 1\n# HELP hitron_cm_network_access_status DOCSIS Network Access Permission\n# TYPE hitron_cm_network_access_status gauge\nhitron_cm_network_access_status 1\n# HELP hitron_cm_ranging_success DOCSIS Provisioning Ranging Status\n# TYPE hitron_cm_ranging_success gauge\nhitron_cm_ranging_success 1\n# HELP hitron_cm_registration_success DOCSIS Provisioning Registration Status\n# TYPE hitron_cm_registration_success gauge\nhitron_cm_registration_success 1\n# HELP hitron_info_uptime System uptime\n# TYPE hitron_info_uptime counter\nhitron_info_uptime 525245\n# HELP hitron_lan_device LAN Device table\n# TYPE hitron_lan_device gauge\nhitron_lan_device{comnum=\"1\",interface=\"Ethernet\",ip=\"192.168.0.12\",ip_type=\"static\",ip_version=\"IPv4\",mac=\"XX:YY:ZZ:AA:BB:CC\"} 1\nhitron_lan_device{comnum=\"1\",interface=\"Ethernet\",ip=\"192.168.0.2\",ip_type=\"static\",ip_version=\"IPv4\",mac=\"XX:YY:ZZ:AA:BB:CC\"} 1\nhitron_lan_device{comnum=\"1\",interface=\"Ethernet\",ip=\"192.168.0.20\",ip_type=\"dhcp\",ip_version=\"IPv4\",mac=\"XX:YY:ZZ:AA:BB:CC\"} 1\nhitron_lan_device{comnum=\"1\",interface=\"Ethernet\",ip=\"192.168.0.21\",ip_type=\"dhcp\",ip_version=\"IPv4\",mac=\"XX:YY:ZZ:AA:BB:CC\"} 1\nhitron_lan_device{comnum=\"1\",interface=\"Ethernet\",ip=\"192.168.0.22\",ip_type=\"dhcp\",ip_version=\"IPv4\",mac=\"XX:YY:ZZ:AA:BB:CC\"} 1\nhitron_lan_device{comnum=\"1\",interface=\"Ethernet\",ip=\"192.168.0.26\",ip_type=\"dhcp\",ip_version=\"IPv4\",mac=\"XX:YY:ZZ:AA:BB:CC\"} 0\n# HELP hitron_login_success_bool 1 if the login was successful\n# TYPE hitron_login_success_bool gauge\nhitron_login_success_bool 1\n# HELP hitron_scrape_time Time the scrape run took\n# TYPE hitron_scrape_time gauge\nhitron_scrape_time{component=\"CMDocsisWAN\"} 0.281379708\nhitron_scrape_time{component=\"CMInit\"} 0.372671959\nhitron_scrape_time{component=\"ConnectInfo\"} 1.81596975\nhitron_scrape_time{component=\"DownstreamInfo\"} 0.24948125\nhitron_scrape_time{component=\"Info\"} 0.610619958\nhitron_scrape_time{component=\"UpstreamInfo\"} 0.127571375\nhitron_scrape_time{component=\"all\"} 4.880440167\nhitron_scrape_time{component=\"login\"} 0.898155542\n# HELP hitron_traffic Basic traffic counters. if=wan/lan, dir=send/recv.\n# TYPE hitron_traffic counter\nhitron_traffic{dir=\"recv\",if=\"lan\"} 1.04112062464e+09\nhitron_traffic{dir=\"recv\",if=\"wan\"} 9.5321849856e+08\nhitron_traffic{dir=\"send\",if=\"lan\"} 1.83609851904e+09\nhitron_traffic{dir=\"send\",if=\"wan\"} 6.4627933184e+08\n# HELP hitron_version Versions in labels\n# TYPE hitron_version gauge\nhitron_version{hw_version=\"1A\",serial=\"VCA123456\",sw_version=\"4.1.2.3-SNIP\"} 1\n```\n## License\n\nSee [LICENSE.md](LICENSE.md)  \nHeavily inspired by and structure stolen from [fluepke's vodafone-station-exporter](https://github.com/Fluepke/vodafone-station-exporter).  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcfstras%2Fhitron-exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcfstras%2Fhitron-exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcfstras%2Fhitron-exporter/lists"}