Add livebox prefix to existing metrics

This commit is contained in:
Tomy Guichard 2023-03-01 21:12:24 +01:00
parent 1c1732895b
commit 3b01929958
2 changed files with 8 additions and 8 deletions

View file

@ -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

View file

@ -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",