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