Contributions are always welcome. Before contributing please read the
code of conduct and search the issue tracker; your issue may have already been discussed or fixed in master. To contribute,
fork this repository, commit your changes, and send a Pull Request.
Note that our code of conduct applies to all platforms and venues related to this project; please follow it in all your interactions with the project and its participants.
Feature requests should be submitted in the Issue tracker, with a description of the expected behavior & use case, where they’ll remain closed until sufficient interest, e.g. 👍 reactions, has been shown by the community. Before submitting an Issue, please search for similar ones in the closed issues.
- Ensure any install or build dependencies are removed before the end of the layer when doing a build.
- Increase the version numbers in any examples files and the README.md to the new version that this Pull Request would represent. The versioning scheme we use is SemVer.
- You may merge the Pull Request in once you have the sign-off of two other developers, or if you do not have permission to do that, you may request the second reviewer to merge it for you.
CI runs npm ci, npm run lint, npm run types:check, and npm test. All of those
run locally with Node 24.
A few checks depend on external binaries rather than npm packages:
-
gitleaks (secret scanning).
npm run scan:secretsscans the full history andnpm run scan:secrets:dirthe working tree. Install withbrew install gitleaks. The script uses whichevergitleaksis on yourPATH, while CI pins a version in.github/workflows/secret-scan.yml. If the two differ, a local pass does not guarantee CI agrees. -
actionlint (workflow syntax).
actionlint .github/workflows/*.yml, installed withbrew install actionlint. Worth running after editing any workflow: it catches invalid expressions andif:conditions that would otherwise surface only on a real run. -
act (running a workflow job locally, optional). For example:
act push -W .github/workflows/ci.yml -j build \ -P ubuntu-latest=catthehacker/ubuntu:act-latestIt needs Docker.
actreads onlyDOCKER_HOSTand ignores Docker CLI contexts, so on Rancher Desktop, or any setup without/var/run/docker.sock, point it at the real socket first or it fails with "failed to connect to the docker API":export DOCKER_HOST="unix://$HOME/.rd/docker.sock"actcannot reproduce everything. There is no GitHub cache service, socachesteps warn and miss, and there is no OIDC token endpoint, sopublish.yml's Trusted Publishing step cannot be exercised locally.
This project translates real customers' queries and dashboards, so take care not
to commit customer-identifying content. In code, tests, and docs, never name a
customer or paste real identifiers (company/brand names, host/index/cluster
names, customer-specific field names) — use generic placeholders instead (e.g.
"a customer", userId, region_north). Real corpus data lives only in a private
repository, never here. Maintainers who hold that private data also run a local
pre-commit scan (scripts/scan-customer-names.sh) that blocks accidental commits.
Keep in mind that when you submit your Pull Request, you'll need to sign the CLA via the click-through using CLA-Assistant. If you'd like to execute our corporate CLA, or if you have any questions, please drop us an email at opensource@newrelic.com.
For more information about CLAs, please check out Alex Russell’s excellent post, “Why Do I Need to Sign This?”.
We host a public Slack with a dedicated channel for contributors and maintainers of open source projects hosted by New Relic. If you are contributing to this project, you're welcome to request access to the #oss-contributors channel in the newrelicusers.slack.com workspace. To request access, see https://newrelicusers-signup.herokuapp.com/.