Name of the Kubernetes secret that contains the key privateLocationKey, which contains the authentication key associated with your synthetics private location. REQUIRED if synthetics.privateLocationKey is not set. UUID/ Private location key of the private location, as found on the private location web page. REQUIRED if synthetics.privateLocationKeySecretName is not set. If set, enables verified script execution and uses this value as a passphrase. For more information on monitor types, see Types of synthetic monitors. The maximum allowed value for this variable is 1250. If undefined, the minion will use 25 * NUM_CPUS where NUM_CPUS is the number of CPUs available to the minion. The number of workers the minion will use to run lightweight jobs ( SIMPLE ping jobs). The maximum allowed value for this variable is 50.
If undefined, the minion will use NUM_CPUS where NUM_CPUS is the number of CPUs available to the minion. The number of workers the minion will use to run heavy jobs ( BROWSER, SCRIPT_BROWSER, SCRIPT_API). Default is 'false', when set as 'true' the CPM will bypass this healthcheck.Ī locally hosted set of user defined key value pairs. The Minion Network Healthcheck disabled state, to manage the CPM check for public internet access. MINION_DOCKER_RUNNER_APPARMOR (CPM version = 3.0.11) MINION_RUNNER_APPARMOR (CPM version > 3.0.2) This value must be an integer between 0 seconds (excluded) and 900 seconds (included) (for example, from 1 second to 15 minutes).ĭefault: 65 seconds for ping monitors, 180 seconds for the other monitor types. The maximum amount of seconds that your monitor checks are allowed to run. Use this to override quay.io/newrelic as the default (for example, docker.io/newrelic).įormat: "username:password" - Support HTTP Basic Auth + additional authentication protocols supported by Chrome.Īcceptable values: true, 1, or yes (any case). The Docker Registry and Organization where the Minion Runner image is hosted. Įnsure your CPM can connect to the appropriate endpoint in order to serve your monitor. If absent, the default value is /var/run/docker.sock.įor US-based accounts, the endpoint is. Points the minion to a given DOCKER_HOST. UUID of the Private Location, as found on the Private Location Web page.įormat: "vX.Y" API version to be used with the given Docker service. This allows a script to be updated per monitor runtime if a Node version of a runtime is no longer compatible with your dependencies. Optionally, you can override the root level package.json with a Node version-specific directory. Anything contained in the dependencies field will be installed by the CPM at start, and made available when running monitors on that private minion. They allow you to provide an arbitrary set of npm modules, and make them available for scripted monitors in synthetic monitoring.Ĭreate a directory which contains a package.json, following the npm official guidelines, in the root of the directory.
Each PV must have a separate copy of the directories.For example, kubectl cp /path/to/src :/path/to/dest will add a directory onto each PV in the specified pod.However, alternative approaches are supported as long as the file permissions are set appropriately. It is possible to add a directory onto a persistent volume ( PV) by using kubectl cp.Directories are mounted onto a container as volumes by specifying a -v argument within docker run.For more information, see running as non-root in Kubernetes or Docker. However, the Minion is able to run as root ( uid: 0) or with any uid between the range of, inclusive. This ensures that the Runner, which uses uid: 1000 and gid: 3729, has access to all the mounted volumes. Guidelines for mounting volumesĪll directories and files must be assigned group ownership as 3729 with read/write permissions. You may not modify any CPM files and New Relic is not liable for any modifications you make. Use environment variables in your configuration.Preserve launch data with permanent data storage.Set up custom modules for scripted browsers in New Relic.You can do the following to customize your CPMs:
#Minion definition how to#
Read on to learn how to configure your containerized private minion (CPM).