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 +}