'Monitor TCP traffic (from/to PostgresQL) in Kubernetes with the Open Service Mesh
I am using Open Service Mesh as a service mesh to monitor network traffic in my Kubernetes cluster. Everything is working fine, but I am not able to monitor traffic to/from PostgresQL pods since all the related metrics have label value "unknown".
In my setup, Postgres is the only pod that uses TCP as protocol, so this may be the reason. However, this is from the docs: "HTTP requests that invoke a local response from Envoy have "unknown" destination_* labels in the metrics." But what does that mean exactly? Is there any way to configure Postgres/OSM so that I can monitor this traffic?
My Postgres Kubernetes service looks like this:
apiVersion: v1
kind: Service
metadata:
name: service-keycloak-postgres
spec:
type: ClusterIP
ports:
- targetPort: 5432
port: 5432
name: tcp-name-keycloak
selector:
app: keycloak-postgres
Any ideas? Thanks a lot!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
