Grafana Integration
MTE Relay v5 emits structured JSON logs (see the Event Schema Reference). Two prebuilt Grafana dashboards are provided, one per common log backend.
The dashboards under /grafana/aws and /grafana/azure target MTE Relay v4 field names and do not work with v5 logs. Use the v5 dashboards below.
Artifacts​
| File | Backend |
|---|---|
| mte-relay-v5-cloudwatch-dashboard.json | CloudWatch Logs Insights (AWS deployments) |
| mte-relay-v5-loki-dashboard.json | Grafana Loki (Kubernetes/on-prem deployments) |
Both include: requests/sec, latency percentiles, the decrypt/validate/proxy/encrypt phase breakdown, status codes, security events by type, high/critical security event feeds, and error/panic feeds.
CloudWatch (AWS)​
- Ship relay container logs to CloudWatch (ECS
awslogsdriver or FireLens → CloudWatch). - In Grafana (e.g. Amazon Managed Grafana), add a CloudWatch data source with Logs Insights permissions (AWS instructions).
- Dashboards → New → Import, upload
mte-relay-v5-cloudwatch-dashboard.json. - Set the
regionandloggroupvariables (defaults:us-east-1,/ecs/mte-relay).
Loki (Kubernetes / on-prem)​
- Ship container logs to Loki with Promtail, Grafana Alloy, or Fluent Bit.
- Add the Loki data source in Grafana.
- Dashboards → New → Import, upload
mte-relay-v5-loki-dashboard.json. - Set the
containervariable to the label value your collector assigns the relay container (default regexmte-relay.*). If your setup labels streams differently (e.g.apporjobinstead ofcontainer), edit the stream selector in the panel queries once — everything else is derived via| json.
Alerting​
Grafana-managed alert rules can be built directly on the dashboard queries. Recommended starters (mirroring the Datadog/New Relic alert sets):
- Any
security_event.severityinhigh|critical— 5 min window - Any
error_event.event_type = panic— 5 min window state_save_failed/state_not_foundcount > 5 — 10 min window- Avg
performance_event.total_time_ms> 500 — 10 min window (tune) client_pairs_exhaustedcount > 50 — 15 min window (tune)
Cost control​
Per-request performance events dominate log volume. On high-traffic deployments set PERF_EVENT_SAMPLE_PERCENT=10 on the relay; dashboard rates and percentiles remain statistically sound.