Hi Dynatrace Community,
As a newbie navigating Dynatrace, I’m on a mission to create great dashboards from Kong API Gateway logs. Things are going well so far, OpenPipeline makes it pretty smooth to generate metrics from the logs and visualize them on dashboards. However, I’ve hit a couple of bumps on this journey.
First what works with processing in OpenPipeline:
Adding fields like status_count: 1 and dt.source_entity: HOST-***
Using DQL for transformations like:
fieldsAdd upstream_status_code = if(upstream_status == “-”, “499”, else:substring(upstream_status, from:0, to:3))
The Issues are:
1️) Missing Metric Mystery:
I have a DQL statement that works perfectly when testing with “Run sample data.” However, despite waiting patiently for days, the metric doesn’t show up anywhere. Here’s the snippet:
parse latencies, “JSON:latenciesJson”
| fieldsFlatten latenciesJson, prefix: “lat.”
| fieldsAdd upstream_latency = if(toDouble(lat.proxy) < 1000, ceil(toDouble(lat.proxy) / 100) * 100, else:ceil(toDouble(lat.proxy) / 1000) * 1000)
2️) Array Field Extraction Troubles:
I’m trying to extract the IP from the first object in the tries array. I’ve tried various combinations of parse try, “JSON:tryJson” and JSON_ARRAY: without success.
Current Metrics field extraction is status_count
With dimensions:
- route.name
- `request.headers.x-field`
- kong_env
- dt.source_entity
- upstream_status_code
- upstream_latency
- service.name
- consumer.username
- service.host
I’ve attached a sample JSON for reference. If you have any insights or DQL wizardry up your sleeve, I’d love to hear them.
Thanks in advance for your help, and for sympathizing with a newbie learning the ropes! ![]()
Cheers,
Erwin
Kong-log-499-c.txt (2.08 KB)




