How to get pod's TCP or WebSocket connection count on Google Kubernetes Engine?

2/25/2019

Is there any way to get pod's TCP or WebSocket connection count on Google Kubernetes Engine? My point is, i need to create and scale new pod instance if my pod's connection count (not request) is over 2000? I read GKE's and Google StackDriver's documents but there is no info about connection count.

-- Murat Mustafa Dinler
google-cloud-stackdriver
google-kubernetes-engine
kubernetes
stackdriver

1 Answer

2/27/2019

At this point, I did not see any metric that you can monitor on Stackdriver monitoring to address TCP connection count for pods. One possible route is to use Autoscaling Deployments with Custom Metrics.

Since metric is not available, you could also place a feature here for the Stackdriver Monitoring team to work on.

-- dany L
Source: StackOverflow