-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Total Global services (& Service Export) metrics are confusing #40771
Copy link
Copy link
Closed
Labels
area/agentCilium agent related.Cilium agent related.area/clustermeshRelates to multi-cluster routing functionality in Cilium.Relates to multi-cluster routing functionality in Cilium.area/metricsImpacts statistics / metrics gathering, eg via Prometheus.Impacts statistics / metrics gathering, eg via Prometheus.kind/bugThis is a bug in the Cilium logic.This is a bug in the Cilium logic.
Description
The following metrics:
clustermesh_global_servicesclustermesh_global_service_exports
Are supposed to export the "total number of global service in the cluster mesh", in fact this is not what they are doing as they only represent the number of remote service and service exports which could be different (for instance some global service which only exist in the local cluster).
This is done in the Global caches here which only get info from remote clusters:
cilium/pkg/clustermesh/common/services.go
Line 35 in 0a2680c
metricTotalGlobalServices metric.Gauge metricTotalGlobalServiceExports metric.Gauge
It am not sure if we should actually fix that or simply rename the metrics to clustermesh_remote_global_services and clustermesh_global_remote_service_exports (or similar) though 🤔
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area/agentCilium agent related.Cilium agent related.area/clustermeshRelates to multi-cluster routing functionality in Cilium.Relates to multi-cluster routing functionality in Cilium.area/metricsImpacts statistics / metrics gathering, eg via Prometheus.Impacts statistics / metrics gathering, eg via Prometheus.kind/bugThis is a bug in the Cilium logic.This is a bug in the Cilium logic.