Add livebox prefix to existing metrics
This commit is contained in:
parent
1c1732895b
commit
3b01929958
2 changed files with 8 additions and 8 deletions
|
@ -8,9 +8,9 @@ FTTH subscription.
|
|||
This exporter currently exposes the following metrics:
|
||||
|
||||
| Name | Type | Description | Labels |
|
||||
| ------------------ | ----- | ---------------------------- | --------- |
|
||||
| interface_rx_mbits | gauge | Received Mbits per second | interface |
|
||||
| interface_tx_mbits | gauge | Transmitted Mbits per second | interface |
|
||||
| -------------------------- | ----- | ---------------------------- | --------- |
|
||||
| livebox_interface_rx_mbits | gauge | Received Mbits per second | interface |
|
||||
| livebox_interface_tx_mbits | gauge | Transmitted Mbits per second | interface |
|
||||
|
||||
## Usage
|
||||
|
||||
|
|
8
main.go
8
main.go
|
@ -19,15 +19,15 @@ const defaultPollingFrequency = 30
|
|||
|
||||
var (
|
||||
rxMbits = promauto.NewGaugeVec(prometheus.GaugeOpts{
|
||||
Name: "interface_rx_mbits",
|
||||
Help: "Received Mbits per second",
|
||||
Name: "livebox_interface_rx_mbits",
|
||||
Help: "Received Mbits per second.",
|
||||
}, []string{
|
||||
// Name of the interface.
|
||||
"interface",
|
||||
})
|
||||
txMbits = promauto.NewGaugeVec(prometheus.GaugeOpts{
|
||||
Name: "interface_tx_mbits",
|
||||
Help: "Transmitted Mbits per second",
|
||||
Name: "livebox_interface_tx_mbits",
|
||||
Help: "Transmitted Mbits per second.",
|
||||
}, []string{
|
||||
// Name of the interface.
|
||||
"interface",
|
||||
|
|
Loading…
Reference in a new issue