diff --git a/prometheus.go b/prometheus.go index 1b8fe6e..73b7b25 100644 --- a/prometheus.go +++ b/prometheus.go @@ -141,7 +141,7 @@ var ( zoneColocationRequestsTotal = promauto.NewCounterVec(prometheus.CounterOpts{ Name: "cloudflare_zone_colocation_requests_total", Help: "Total requests per colocation", - }, []string{"zone", "colocation"}, + }, []string{"zone", "colocation", "host"}, ) zoneFirewallEventsCount = promauto.NewCounterVec(prometheus.CounterOpts{ @@ -246,7 +246,7 @@ func fetchZoneColocationAnalytics(zones []cloudflare.Zone, wg *sync.WaitGroup) { for _, c := range cg { zoneColocationVisits.With(prometheus.Labels{"zone": name, "colocation": c.Dimensions.ColoCode, "host": c.Dimensions.Host}).Add(float64(c.Sum.Visits)) zoneColocationEdgeResponseBytes.With(prometheus.Labels{"zone": name, "colocation": c.Dimensions.ColoCode, "host": c.Dimensions.Host}).Add(float64(c.Sum.EdgeResponseBytes)) - zoneColocationRequestsTotal.With(prometheus.Labels{"zone": name, "colocation": c.Dimensions.ColoCode, "host": c.Dimensions.Host}).Add(float64(c.Count)) + zoneColocationRequestsTotal.With(prometheus.Labels{"zone": name, "colocation": c.Dimensions.ColoCode, "host": c.Dimensions.Host}).Add(float64(c.Count)) } } }