From 1f82d26421bcba9013201f8cb54b895546b0070a Mon Sep 17 00:00:00 2001 From: Leo Q Date: Mon, 4 Nov 2024 18:00:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8D=95=E4=BD=8D=E8=BD=AC?= =?UTF-8?q?=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://en.wikipedia.org/wiki/Bit_rate --- exporter/cdn_exporter.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exporter/cdn_exporter.go b/exporter/cdn_exporter.go index a35e5a1..3b540bc 100644 --- a/exporter/cdn_exporter.go +++ b/exporter/cdn_exporter.go @@ -84,7 +84,7 @@ func (e *cdnExporter) Collect(ch chan<- prometheus.Metric) { ch <- prometheus.MustNewConstMetric( e.cdnBandWidth, prometheus.GaugeValue, - bandWidth / 1024 / 1024, + bandWidth / 1000 / 1000, domain, ) ch <- prometheus.MustNewConstMetric( @@ -109,4 +109,4 @@ func (e *cdnExporter) Collect(ch chan<- prometheus.Metric) { ) } } -} \ No newline at end of file +}