From 3b01929958fb05762c052c9a2a29d64a63935201 Mon Sep 17 00:00:00 2001 From: Tomy Guichard Date: Wed, 1 Mar 2023 21:12:24 +0100 Subject: [PATCH] Add livebox prefix to existing metrics --- README.md | 8 ++++---- main.go | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 9c8446d..f8d6165 100644 --- a/README.md +++ b/README.md @@ -7,10 +7,10 @@ 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 | +| Name | Type | Description | Labels | +| -------------------------- | ----- | ---------------------------- | --------- | +| livebox_interface_rx_mbits | gauge | Received Mbits per second | interface | +| livebox_interface_tx_mbits | gauge | Transmitted Mbits per second | interface | ## Usage diff --git a/main.go b/main.go index 5006630..e221dad 100644 --- a/main.go +++ b/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",