March 2020
Intermediate to advanced
626 pages
14h 45m
English
We can collect TCP metrics after we run the MongoDB database for ratings:v2. As we did in the previous section, here, we'll create an instance, handler, and a rule to collect metrics. Let's get started:
# Script : 05-create-metric-instance.yamlapiVersion: config.istio.io/v1alpha2kind: instancemetadata: name: mongosentbytes... params: value: connection.sent.bytes | 0 # uses a TCP-specific attribute dimensions: source_service: source.workload.name | "unknown" source_version: source.labels["version"] | "unknown" destination_version: destination.labels["version"] | "unknown"...metadata: name: mongoreceivedbytes...
Read now
Unlock full access