Skip to content

Commit

Permalink
Merge pull request #16501 from keegoid-nr/patch-7
Browse files Browse the repository at this point in the history
align wording with synthetics job manager
  • Loading branch information
rhetoric101 authored Mar 15, 2024
2 parents f3f6e8f + c9c9a0f commit e993ee9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ All directories and files <DoNotTranslate>**must**</DoNotTranslate> be assigned
* Each PV must have a separate copy of the directories. For example, a cluster with _n_ Minion replicas must have _n_ PVs, each with their own copy of directories
* The directories and files must be added prior to the Minion boot up, otherwise the Minion must be restarted to detect the updates

## Custom npm modules [#custom-modules]
## Custom node modules [#custom-modules]

Custom npm modules are exclusive to the CPM. They allow you to provide an arbitrary set of [npm modules](https://docs.npmjs.com/about-packages-and-modules), and make them available for scripted monitors in synthetic monitoring.
Custom node modules are exclusive to the CPM. They allow you to provide an arbitrary set of [node modules](https://docs.npmjs.com/about-packages-and-modules), and make them available for scripted monitors in synthetic monitoring.

To set up the modules:

Expand All @@ -63,16 +63,16 @@ To set up the modules:
└── package.json ⇦ the only mandatory file
```

The `package.json` defines `dependencies` as both a local module (for example, `counter`) and an npm hosted modules (for example, `async` version `^2.6.1`):
The `package.json` defines `dependencies` as both a local module (for example, `counter`) and any hosted modules (for example, `async` version `^2.6.1`):

```
{
"name": "custom-modules",
"version": "1.0.0", ⇦ optional
"description": "example custom modules directory", ⇦ optional
"dependencies": {
"async": "^2.6.1", ⇦ npm hosted module
"counter": "file:./counter" ⇦ Local module
"async": "^2.6.1", ⇦ hosted module
"counter": "file:./counter" ⇦ local module
}
}
```
Expand Down Expand Up @@ -138,7 +138,7 @@ Now you can add `"require('async');"` into the [script](/docs/synthetics/new-rel

### Change `package.json` for custom modules [#change-package-json]

Along with npm modules, you can also use [Node.js modules](/docs/synthetics/new-relic-synthetics/scripting-monitors/import-nodejs-modules). To change the custom modules used by your CPM, modify `package.json` and reboot the CPM. It will detect the change in configuration during the reboot, and then clean up and re-install.
Along with local and hosted modules, you can also use [Node.js modules](/docs/synthetics/new-relic-synthetics/scripting-monitors/import-nodejs-modules). To change the custom modules used by your CPM, modify `package.json` and reboot the CPM. It will detect the change in configuration during the reboot, and then clean up and re-install.

<Callout variant="caution">
Local modules: While your `package.json` can include any local module, these modules must reside inside the tree under your custom module directory. If stored outside the tree, the initialization process will fail and you will see an error message in the [docker logs](/docs/synthetics/new-relic-synthetics/private-locations/containerized-private-minion-cpm-maintenance-monitoring#monitor-docker-logs) after launching CPM.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ Some of our open-source software is listed under multiple software licenses, and

## Configure CPM [#configuration]

You can configure the containerized private minion with custom npm modules, preserve data between launches, use environment variables, and more. For more information, see [CPM configuration](/docs/synthetics/new-relic-synthetics/private-locations/containerized-private-minion-cpm-configuration).
You can configure the containerized private minion with custom node modules, preserve data between launches, use environment variables, and more. For more information, see [CPM configuration](/docs/synthetics/new-relic-synthetics/private-locations/containerized-private-minion-cpm-configuration).

## Networks

Expand Down

0 comments on commit e993ee9

Please sign in to comment.