![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
ca-apm-probe
Advanced tools
CA APM Node.js Agent monitors real-time health and performance of Node.js applications
The APM Node.js Agent monitors Node.js based web applications.
The DX Application Performance Management product documentation can be accessed from DX Application Performance Management platform. Goto Help and search for "Node.js Agent". We expect this will not only allow easier access to specific information, but also improve our ability to respond with improvements and enhancements.
NOTICE: This product is owned and/or licensed by CA Technologies (“CA”) a Broadcom company.
An active license agreement for DX Application Performance Management (“License Agreement”) is required for its use. Your use of this product is governed by the terms of the License Agreement. If you do not have an active License Agreement with Broadcom, you may not use this product.
The Probe Agent is the component that runs inside the Node.js application process. The Probe Agent instruments the Node.js application at startup. This simple agent only interacts with the Infrastructure Agent and reports events to it. You deploy the Probe Agent using the Node Package Manager (NPM).
We have found that there are some application requirements where it doesn't want to depend on node gyp (which needs Python).
We utilize Node gyp to gathers information like Event loop stats and GC stats that is not available at the Javascript layer. We have moved it to different module See Native Metric module for details. This module is optional with Probe agent.
You can quick install the Probe Agent globally using default values and without any code modifications. This method makes the Probe Agent available to all your Node.js applications.
With optional native metric (dependent on node gyp)
$ npm install --global ca-apm-probe
Without optional native metric (dependent on node gyp)
$ npm install --global ca-apm-probe --no-optional
Then, run your app with it as you would with node:
$ cd my-app
my-app$ node ca-apm-run <startup_script>
You can install the Probe Agent locally for each application. This method lets you selectively instrument and monitor each application.
With optional native metric (dependent on node gyp)
$ cd to/your/app/root
my-app$ npm install --save ca-apm-probe
Without optional native metric (dependent on node gyp)
$ cd to/your/app/root
my-app$ npm install --save ca-apm-probe --no-optional
The Node.js Agent runs dynamically whenever you start your Node.js application. Start the Node.js application:
my-app$ node ./node_modules/ca-apm-probe/bin/ca-apm-run <startup-script>
You can install and manually configure the Probe Agent. You can install and run the Probe Agent locally as an application dependency. Optionally, you can manually configure your Node.js application for monitoring. Use the npm command to install the Probe Agent and add it as a dependency of your application. This setup avoids any modification of the system and keeps all dependencies local to the application.
With optional native metric (dependent on node gyp)
$ cd to/your/app/root
my-app$ npm install --save ca-apm-probe
Without optional native metric (dependent on node gyp)
$ cd to/your/app/root
my-app$ npm install --save ca-apm-probe --no-optional
Add the following first line to your application main entry point script (for example, server or server.js). Optionally, you can specify arguments. For example, if Infrastructure Agent is running on a different host or port, you can specify corresponding arguments. Save and close the file.
var probe = require('ca-apm-probe').start(<infrastructure-agent-host>, <infrastructure-agent-port>, <probe-name>);
Where:
<infrastructure-agent-host>
is the the host address of the Infrastructure Agent, usually this address is localhost.
<infrastructure-agent-port>
is the port of the Infrastructure Agent.
<probe-name>
is the name of the probe that the metrics will be reported under.
Important! Place the ca-apm-probe require statement as the first require statement in the code (above all the other require statements), for example:
var probe = require('ca-apm-probe').start();
……
var express = require('express');
var mongoose = require('mongoose');
Run your application as follows:
$ node <startup_script>
Support for HTTP/HTTPS along with ARF
Probe agent default connects to Collector agent via ARF protocol but we can move it HTTP.
We have exposed few properties in config file to keep switching protocol configurable.
ConfigProperties | Environment Variables | Description |
---|---|---|
protocol | PROTOCOL | Possible value are arf and http. Default: arf |
security.eanabled | SECURITY_ENABLED | If true and Protocol is http then HTTPS else HTTP protocol. Default: false |
security.certPath | CERTPATH | If Protocol is http and want https connection, add certificate path for public key |
You can configure the properties for a Probe Agent by editing the config.json file. Follow these steps:
Go to the <INSTALL_DIR>/ca-apm-probe directory.
Open the config.json file in a text editor.
Specify the values for the properties you want to configure:
Save and close the file.
Restart the managed application.
The scripts adds or updates property in config.json based on local config.
Keep the backup of config JSON before you take the latest version of ca-apm-probe.
If ca-apm-probe is installed Globally then run:
$ cd to/your/app/root
my-app$ node config-json-update <local config json path>
If ca-apm-probe is installed Per Application then run:
my-app$ node ./node_modules/ca-apm-probe/bin/config-json-update <local config json path>
To enable ReactJs monitoring, enable the react,autoinjectionEnabled properties in config.json The React application static index.html location has to be updated in htmlpath property in config.json The probe's script ca-apm-run.js should be run along with ReactJs application start script Example: "scripts": { "start": "node .\node_modules\ca-apm-probe\bin\ca-apm-run.js && react-scripts start" } The React pages performance is tracked using browser agent metrics
FAQs
CA APM Node.js Agent monitors real-time health and performance of Node.js applications
The npm package ca-apm-probe receives a total of 616 weekly downloads. As such, ca-apm-probe popularity was classified as not popular.
We found that ca-apm-probe demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.