Document setup of OpenResty instrumentation for APM #40696
Preview links (active after the build_preview check completes)
Modified Files
## OpenResty with Datadog module
Optional: this parallels ## NGINX with Datadog module and gives the section a more specific heading. If you take it, update the #openresty anchor on line 25 to #openresty-with-datadog-module.
It's not clear why users should care about NGINX setup here, so I'm suggesting deleting that sentence. If there's some reason for them to follow that link (for example, for additional configuration options or something), better to say so explicitly.
OpenResty is built on NGINX, and each `nginx-datadog` release includes a separate OpenResty build of the module.
2. Choose the tarball that matches your OpenResty version and CPU architecture. Use the four-part OpenResty version from `openresty -v` (for example, `1.31.1.1`), not the NGINX core version it's built on.
nginx3. Extract `ngx_http_datadog_module.so` from the tarball and place it in `/usr/local/openresty/nginx/modules`. Create the directory if it doesn't exist.
4. At the top of `/usr/local/openresty/nginx/conf/nginx.conf`, load the module:
load_module modules/ngx_http_datadog_module.so;
These are sequential steps, so they belong in the numbered list. The section also needs its own load_module example so it works on its own without the NGINX section.
The `datadog_*` directives described in the module's [API documentation][4] and the `DD_*` environment variables work the same way in OpenResty as in NGINX.
1. Download the appropriate `openresty-` prefixed version from the [latest `nginx-datadog` GitHub release][1].
Thanks for adding OpenResty coverage! I left a few suggestions. The main one is moving the extract and load_module steps into the numbered list and giving the section its own load_module example, so it works without the NGINX section. There's also a stray comma on line 354. The rest are small wording tweaks.
Thanks for adding OpenResty coverage! I left a few suggestions. The main one is moving the extract and load_module steps into the numbered list and giving the section its own load_module example, so it works without the NGINX section. There's also a stray comma on line 354. The rest are small wording tweaks.
@melamos Thanks for the review - I've applied all the suggested changes.
Thanks for the fixes! 🙂
Approved these changes.
LGTM!
melamos
duncanhewett
<!-- Note: Please remember to review the Datadog Documentation Contribution Guidelines if you have not yet done so. -->
What does this PR do? What is the motivation?
OpenResty is supported by the NGINX module but not currently documented.
<!-- _Brief_ description of context for changes, the problem you're solving, from the user's and reviewer's perspectives, NOT a detailed itemization or justification. The reviewer needs to be able to quickly understand why the changes were made. Keep it short. See PR Etiquette for examples. -->
Merge readiness
<!--
If you're waiting for a release or there are other considerations that you want us to be aware of, list them here. If the PR is ready to be merged once it receives the required reviews, check the box above after you've created the PR.
-->
AI assistance
<!-- If you used AI tools (Claude Code, GitHub Copilot, Cursor, etc.) while working on this PR, briefly note how. This helps reviewers understand the contribution. Examples: "Used Claude Code for initial draft", "Copilot autocomplete for code examples", "AI-assisted research, manually written". Leave blank if not applicable. -->
For Datadog employees:
<name>/<description>convention and include the forward slash (/). If you've already created your PR with an incorrect branch name, please rename your branch and open a fresh PR./reviewto run an automated check that catches common issues before a Documentation team member reviews your PR.Additional notes
<!-- Anything else we should know when reviewing?-->
<!-- Previewing the PR: Assuming you are a Datadog employee and named your branch
<yourname>/<description>, a preview build will run and links to the preview output will be auto-generated and posted in the PR comments. The links will 404 until the preview build is finished running. -->