{"id":37141957,"url":"https://github.com/nikdoof/hg612-exporter","last_synced_at":"2026-01-14T16:39:47.638Z","repository":{"id":38419344,"uuid":"435117953","full_name":"nikdoof/hg612-exporter","owner":"nikdoof","description":"A prometheus exporter for the HG612 modem","archived":false,"fork":true,"pushed_at":"2024-12-06T02:17:54.000Z","size":272,"stargazers_count":0,"open_issues_count":6,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-06T03:22:47.514Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"dnwe/hg612-exporter","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nikdoof.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2021-12-05T08:58:43.000Z","updated_at":"2024-07-26T09:58:01.000Z","dependencies_parsed_at":"2023-09-29T03:21:38.755Z","dependency_job_id":null,"html_url":"https://github.com/nikdoof/hg612-exporter","commit_stats":{"total_commits":40,"total_committers":5,"mean_commits":8.0,"dds":0.6,"last_synced_commit":"d0172e19e1771912ebf4f63c0b2dba138ae00960"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/nikdoof/hg612-exporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikdoof%2Fhg612-exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikdoof%2Fhg612-exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikdoof%2Fhg612-exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikdoof%2Fhg612-exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nikdoof","download_url":"https://codeload.github.com/nikdoof/hg612-exporter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikdoof%2Fhg612-exporter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28426119,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T16:32:27.303Z","status":"ssl_error","status_checked_at":"2026-01-14T16:28:36.419Z","response_time":107,"last_error":"SSL_read: 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-01-14T16:39:47.023Z","updated_at":"2026-01-14T16:39:47.630Z","avatar_url":"https://github.com/nikdoof.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HG612 Prometheus Exporter\n\nA prometheus exporter for the HG612 modem\n\n![](https://i0.wp.com/codeblog.dotsandbrackets.com/wp-content/uploads/2017/01/prometheus-logo.jpg?resize=231%2C231) ![](https://kitz.co.uk/routers/images/huawei_echolife_hg612.jpg)\n\n*Requires unlocked firmware with exposed metrics*\n\nsee https://kitz.co.uk/routers/hg612unlock.htm for flashing instructions and firmware\n\nsee also https://support.aa.net.uk/Router_-_EchoLife_HG612\n\n\n## Usage\n\n```\nNAME:\n   hg612 prometheus exporter - a metrics exporter for the hg612\n\nUSAGE:\n   hg612-exporter [global options] command [command options] [arguments...]\n\nCOMMANDS:\n   help, h  Shows a list of commands or help for one command\n\nGLOBAL OPTIONS:\n   --host value        the fully qualified host for the hg612 modem\n   --identifier value  the identifier for the line and modem\n   --bind value        the bind string for the http server ie :8080 (default: \":8080\")\n   --interval value    the interval between collection in seconds (default: 10)\n   --help, -h          show help (default: false)\n```\n\n## Build\n* `go build .`\n* `docker build .`\n\n## Run\n* `go run main.go --host \u003chost\u003e --identifier \u003cidentifier\u003e`\n* `docker run docker run nikdoof/hg612-exporter --host \u003chost\u003e --identifier \u003cidentifier\u003e`\n\n## Metrics\n\n| Domain | Implemented | Status\n| --- | --- | --- |\n| dsl | ✓ | alpha |\n| device | - | - |\n| wan | - | - |\n| lan | - | - |\n| atm | - | - |\n\n| Domain | Metric Name | Type | Labels |\n| --- | --- | --- | --- |\n| dsl | dsl_down_attenuation | gauge | `host` `identifier` |\n| dsl | dsl_down_crc | gauge | `host` `identifier` |\n| dsl | dsl_down_crc_2 | gauge | `host` `identifier` |\n| dsl | dsl_down_current_rate | gauge | `host` `identifier` |\n| dsl | dsl_down_current_rate_2 | gauge | `host` `identifier` |\n| dsl | dsl_down_fec | gauge | `host` `identifier` |\n| dsl | dsl_down_fec_2 | gauge | `host` `identifier` |\n| dsl | dsl_down_hec | gauge | `host` `identifier` |\n| dsl | dsl_down_hec_2 | gauge | `host` `identifier` |\n| dsl | dsl_down_max_rate | gauge | `host` `identifier` |\n| dsl | dsl_down_power | gauge | `host` `identifier` |\n| dsl | dsl_down_snr | gauge | `host` `identifier` |\n| dsl | dsl_status | gauge | `host` `identifier` `status` `modulation` `dataPath` |\n| dsl | dsl_up_attenuation | gauge | `host` `identifier` |\n| dsl | dsl_up_crc | gauge | `host` `identifier` |\n| dsl | dsl_up_crc_2 | gauge | `host` `identifier` |\n| dsl | dsl_up_current_rate | gauge | `host` `identifier` |\n| dsl | dsl_up_current_rate_2 | gauge | `host` `identifier` |\n| dsl | dsl_up_fec | gauge | `host` `identifier` |\n| dsl | dsl_up_fec_2 | gauge | `host` `identifier` |\n| dsl | dsl_up_hec | gauge | `host` `identifier` |\n| dsl | dsl_up_hec_2 | gauge | `host` `identifier` |\n| dsl | dsl_up_max_rate | gauge | `host` `identifier` |\n| dsl | dsl_up_power | gauge | `host` `identifier` |\n| dsl | dsl_up_snr | gauge | `host` `identifier` |\n\n### Grafana Dashboard Preview\n\n![](https://raw.githubusercontent.com/nikdoof/hg612-exporter/master/resources/dashboard.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikdoof%2Fhg612-exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnikdoof%2Fhg612-exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikdoof%2Fhg612-exporter/lists"}