mirror of
https://github.com/nikdoof/hg612-exporter.git
synced 2025-12-14 02:32:15 +00:00
add desc, build and run instructions
This commit is contained in:
100
README.md
100
README.md
@@ -1,5 +1,18 @@
|
|||||||
# HG612 Prometheus Exporter
|
# HG612 Prometheus Exporter
|
||||||
|
|
||||||
|
[](https://quay.io/repository/jakekeeys/hg612-exporter)
|
||||||
|
|
||||||
|
A prometheus exporter for the HG612 modem
|
||||||
|
|
||||||
|
 
|
||||||
|
|
||||||
|
*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
|
## Usage
|
||||||
|
|
||||||
```
|
```
|
||||||
@@ -20,35 +33,66 @@ GLOBAL OPTIONS:
|
|||||||
--help, -h show help (default: false)
|
--help, -h show help (default: false)
|
||||||
```
|
```
|
||||||
|
|
||||||
## Dashbaord
|
## Build
|
||||||
|
go
|
||||||
|
```
|
||||||
|
go build .
|
||||||
|
```
|
||||||
|
|
||||||

|
docker
|
||||||
|
```
|
||||||
|
docker build .
|
||||||
|
```
|
||||||
|
|
||||||
|
## Run
|
||||||
|
go
|
||||||
|
```
|
||||||
|
go run main.go --host <host> --identifier <identifier>
|
||||||
|
```
|
||||||
|
|
||||||
|
docker
|
||||||
|
```
|
||||||
|
docker run docker run quay.io/jakekeeys/hg612-exporter --host <host> --identifier <identifier>
|
||||||
|
```
|
||||||
|
|
||||||
## Metrics
|
## Metrics
|
||||||
| Metric | Type | Lables |
|
|
||||||
|
| Domain | Implemented | Status
|
||||||
| --- | --- | --- |
|
| --- | --- | --- |
|
||||||
| dsl_down_attenuation | gauge | `host` `identifier` |
|
| dsl | ✓ | alpha |
|
||||||
| dsl_down_crc | gauge | `host` `identifier` |
|
| device | - | - |
|
||||||
| dsl_down_crc_2 | gauge | `host` `identifier` |
|
| wan | - | - |
|
||||||
| dsl_down_current_rate | gauge | `host` `identifier` |
|
| lan | - | - |
|
||||||
| dsl_down_current_rate_2 | gauge | `host` `identifier` |
|
| atm | - | - |
|
||||||
| dsl_down_fec | gauge | `host` `identifier` |
|
|
||||||
| dsl_down_fec_2 | gauge | `host` `identifier` |
|
| Domain | Metric Name | Type | Labels |
|
||||||
| dsl_down_hec | gauge | `host` `identifier` |
|
| --- | --- | --- | --- |
|
||||||
| dsl_down_hec_2 | gauge | `host` `identifier` |
|
| dsl | dsl_down_attenuation | gauge | `host` `identifier` |
|
||||||
| dsl_down_max_rate | gauge | `host` `identifier` |
|
| dsl | dsl_down_crc | gauge | `host` `identifier` |
|
||||||
| dsl_down_power | gauge | `host` `identifier` |
|
| dsl | dsl_down_crc_2 | gauge | `host` `identifier` |
|
||||||
| dsl_down_snr | gauge | `host` `identifier` |
|
| dsl | dsl_down_current_rate | gauge | `host` `identifier` |
|
||||||
| dsl_status | gauge | `host` `identifier` `status` `modulation` `dataPath` |
|
| dsl | dsl_down_current_rate_2 | gauge | `host` `identifier` |
|
||||||
| dsl_up_attenuation | gauge | `host` `identifier` |
|
| dsl | dsl_down_fec | gauge | `host` `identifier` |
|
||||||
| dsl_up_crc | gauge | `host` `identifier` |
|
| dsl | dsl_down_fec_2 | gauge | `host` `identifier` |
|
||||||
| dsl_up_crc_2 | gauge | `host` `identifier` |
|
| dsl | dsl_down_hec | gauge | `host` `identifier` |
|
||||||
| dsl_up_current_rate | gauge | `host` `identifier` |
|
| dsl | dsl_down_hec_2 | gauge | `host` `identifier` |
|
||||||
| dsl_up_current_rate_2 | gauge | `host` `identifier` |
|
| dsl | dsl_down_max_rate | gauge | `host` `identifier` |
|
||||||
| dsl_up_fec | gauge | `host` `identifier` |
|
| dsl | dsl_down_power | gauge | `host` `identifier` |
|
||||||
| dsl_up_fec_2 | gauge | `host` `identifier` |
|
| dsl | dsl_down_snr | gauge | `host` `identifier` |
|
||||||
| dsl_up_hec | gauge | `host` `identifier` |
|
| dsl | dsl_status | gauge | `host` `identifier` `status` `modulation` `dataPath` |
|
||||||
| dsl_up_hec_2 | gauge | `host` `identifier` |
|
| dsl | dsl_up_attenuation | gauge | `host` `identifier` |
|
||||||
| dsl_up_max_rate | gauge | `host` `identifier` |
|
| dsl | dsl_up_crc | gauge | `host` `identifier` |
|
||||||
| dsl_up_power | gauge | `host` `identifier` |
|
| dsl | dsl_up_crc_2 | gauge | `host` `identifier` |
|
||||||
| dsl_up_snr | 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
|
||||||
|
|
||||||
|

|
||||||
|
|||||||
Reference in New Issue
Block a user