diff --git a/api/http/handler/endpoints/endpoint_inspect.go b/api/http/handler/endpoints/endpoint_inspect.go index 00a4b4e90..ecd6057cb 100644 --- a/api/http/handler/endpoints/endpoint_inspect.go +++ b/api/http/handler/endpoints/endpoint_inspect.go @@ -53,7 +53,7 @@ func (handler *Handler) endpointInspect(w http.ResponseWriter, r *http.Request) } isServerMetricsDetected := endpoint.Kubernetes.Flags.IsServerMetricsDetected - if !isServerMetricsDetected && handler.K8sClientFactory != nil { + if endpointutils.IsKubernetesEndpoint(endpoint) && !isServerMetricsDetected && handler.K8sClientFactory != nil { endpointutils.InitialMetricsDetection( endpoint, handler.DataStore.Endpoint(),