hg612-exporter

所属分类:Modem编程
开发工具:GO
文件大小:0KB
下载次数:0
上传日期:2023-01-01 22:56:30
上 传 者sh-1993
说明:  HG612调制解调器的普罗米修斯导出器,
(A prometheus exporter for the HG612 modem,)

文件列表:
.golangci.yml (349, 2023-01-01)
Dockerfile (177, 2023-01-01)
LICENSE (11357, 2023-01-01)
go.mod (244, 2023-01-01)
go.sum (41865, 2023-01-01)
internal/ (0, 2023-01-01)
internal/metrics/ (0, 2023-01-01)
internal/metrics/collector.go (1097, 2023-01-01)
internal/metrics/dsl.go (8270, 2023-01-01)
internal/rest/ (0, 2023-01-01)
internal/rest/server.go (681, 2023-01-01)
main.go (1488, 2023-01-01)
pkg/ (0, 2023-01-01)
pkg/hg612/ (0, 2023-01-01)
pkg/hg612/client.go (628, 2023-01-01)
pkg/hg612/dsl.go (4249, 2023-01-01)
resources/ (0, 2023-01-01)
resources/dashboard.json (21281, 2023-01-01)
resources/dashboard.png (77476, 2023-01-01)
resources/manifest.yaml (794, 2023-01-01)

# HG612 Prometheus Exporter [![Docker Repository on Quay](https://quay.io/repository/jakekeeys/hg612-exporter/status "Docker Repository on Quay")](https://quay.io/repository/jakekeeys/hg612-exporter) A prometheus exporter for the HG612 modem ![](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) *Requires unlocked firmware with exposed metrics* see https://kitz.co.uk/routers/hg612unlock.htm for flashing instructions and firmware see also https://support.aa.net.uk/Router_-_EchoLife_HG612 ## Usage ``` NAME: hg612 prometheus exporter - a metrics exporter for the hg612 USAGE: main [global options] command [command options] [arguments...] COMMANDS: help, h Shows a list of commands or help for one command GLOBAL OPTIONS: --host value the fully qualified host for the hg612 modem --identifier value the identifier for the line and modem --bind value the bind string for the http server ie :8080 (default: ":8080") --interval value the interval between collection in seconds (default: 10) --help, -h show help (default: false) ``` ## Build * `go build .` * `docker build .` ## Run * `go run main.go --host --identifier ` * `docker run docker run quay.io/jakekeeys/hg612-exporter --host --identifier ` ## Metrics | Domain | Implemented | Status | --- | --- | --- | | dsl | | alpha | | device | - | - | | wan | - | - | | lan | - | - | | atm | - | - | | Domain | Metric Name | Type | Labels | | --- | --- | --- | --- | | dsl | dsl_down_attenuation | gauge | `host` `identifier` | | dsl | dsl_down_crc | gauge | `host` `identifier` | | dsl | dsl_down_crc_2 | gauge | `host` `identifier` | | dsl | dsl_down_current_rate | gauge | `host` `identifier` | | dsl | dsl_down_current_rate_2 | gauge | `host` `identifier` | | dsl | dsl_down_fec | gauge | `host` `identifier` | | dsl | dsl_down_fec_2 | gauge | `host` `identifier` | | dsl | dsl_down_hec | gauge | `host` `identifier` | | dsl | dsl_down_hec_2 | gauge | `host` `identifier` | | dsl | dsl_down_max_rate | gauge | `host` `identifier` | | dsl | dsl_down_power | gauge | `host` `identifier` | | dsl | dsl_down_snr | gauge | `host` `identifier` | | dsl | dsl_status | gauge | `host` `identifier` `status` `modulation` `dataPath` | | dsl | dsl_up_attenuation | gauge | `host` `identifier` | | dsl | dsl_up_crc | gauge | `host` `identifier` | | dsl | dsl_up_crc_2 | gauge | `host` `identifier` | | dsl | dsl_up_current_rate | gauge | `host` `identifier` | | dsl | dsl_up_current_rate_2 | gauge | `host` `identifier` | | dsl | dsl_up_fec | gauge | `host` `identifier` | | dsl | dsl_up_fec_2 | gauge | `host` `identifier` | | dsl | dsl_up_hec | gauge | `host` `identifier` | | dsl | dsl_up_hec_2 | gauge | `host` `identifier` | | dsl | dsl_up_max_rate | gauge | `host` `identifier` | | dsl | dsl_up_power | gauge | `host` `identifier` | | dsl | dsl_up_snr | gauge | `host` `identifier` | ### Grafana Dashboard Preview ![](https://raw.githubusercontent.com/jakekeeys/hg612-exporter/master/resources/dashboard.png)

近期下载者

相关文件


收藏者