And here’s the rules config:
apiVersion: config.istio.io/v1alpha2
kind: rule
metadata:
name: newrelichttp
namespace: istio-system
spec:
match: context.protocol == "http" || context.protocol == "grpc"
actions:
- handler: newrelic.dogstatsd
instances:
- requestcount.metric.istio-system
- requestduration.metric
- requestsize.metric.istio-system
- responsesize.metric.istio-system
---
apiVersion: config.istio.io/v1alpha2
kind: rule
metadata:
name: newrelictcp
namespace: istio-system
spec:
match: context.protocol == "tcp"
actions:
- handler: newrelic.dogstatsd
instances:
- tcpbytesent.metric
- tcpbytereceived.metric