Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dynatrace/agent-nodejs
Dynatrace agent for PaaS environments
https://github.com/dynatrace/agent-nodejs
agent apm data-ingestion dynatrace oneagent paas rollout
Last synced: about 21 hours ago
JSON representation
Dynatrace agent for PaaS environments
- Host: GitHub
- URL: https://github.com/dynatrace/agent-nodejs
- Owner: Dynatrace
- License: mit
- Created: 2016-09-08T08:09:52.000Z (about 8 years ago)
- Default Branch: main
- Last Pushed: 2024-10-04T09:12:55.000Z (about 1 month ago)
- Last Synced: 2024-10-31T00:50:39.216Z (16 days ago)
- Topics: agent, apm, data-ingestion, dynatrace, oneagent, paas, rollout
- Language: JavaScript
- Homepage: https://www.dynatrace.com/support/help/technology-support/cloud-platforms/
- Size: 172 KB
- Stars: 13
- Watchers: 16
- Forks: 11
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dynatrace npm module for PaaS
This module adds enterprise grade monitoring for Node.js in PaaS environments that aren't supported by a dedicated integration.
Before using this module, please [review the Dynatrace documentation](https://www.dynatrace.com/support/help/setup-and-configuration/setup-on-cloud-platforms) to
make sure that there isn't already a marketplace integration or buildpack available for your platform.## Installation
* [Sign up for free](https://www.dynatrace.com/trial/) and follow the instructions
* Click on "Deploy Dynatrace"
* Click on "Set up PaaS Integration"
* Generate a PaaS token
* Run `$ npm install --save @dynatrace/oneagent` in your project directory
* Using the previously created credentials add the following code block as first statement to your application```js
try {
require('@dynatrace/oneagent')({
environmentid: '',
apitoken: '',
endpoint: '' // specify endpoint url - not needed for SaaS customers
});
} catch (err) {
console.log('Failed to load OneAgent: ', err);
}
```
#### Emitting debug outputTo enable debug output set the `DEBUG` environment variable to `dynatrace*`. For more detail see the [debug module documentation](https://www.npmjs.com/package/debug).
## Deployment
### Deploying Dynatrace to AWS Lambda
Starting with Dynatrace OneAgent 1.207, Dynatrace offers a dedicated AWS Lambda layer to monitor Node.js based AWS Lambda functions. Please review the [Dynatrace product news](https://www.dynatrace.com/news/blog/dynatrace-extends-distributed-tracing-for-serverless-on-aws-lambda/) and [documentation](https://www.dynatrace.com/support/help/technology-support/cloud-platforms/amazon-web-services/integrations/deploy-oneagent-as-lambda-extension/) to learn more.
### Deploying Dynatrace to Heroku
Starting with Dynatrace OneAgent 1.141, Dynatrace offers a dedicated buildpack for Heroku. Please refer to our [documentation](https://www.dynatrace.com/support/help/how-to-use-dynatrace/infrastructure-monitoring/cloud-platform-monitoring/heroku-monitoring) for further instructions.
### Deploying Dynatrace to Cloud Foundry
Starting with Dynatrace OneAgent 1.131 and [Cloud Foundry Node.js buildpack 1.6.10](https://github.com/cloudfoundry/nodejs-buildpack/releases/tag/v1.6.10) Dynatrace is part of the buildpack.
Using the buildpack is preferable to the npm module approach due to several improvements. For instance,
you're no longer required to install a dependency on `@dynatrace/oneagent` in your project directory.
You also no longer need to add a require statement as the first statement of your application.
Please review the [Dynatrace product news](https://www.dynatrace.com/blog/support-for-node-js-apps-on-cloud-foundry-paas/)
and [documentation](https://www.dynatrace.com/support/help/setup-and-configuration/setup-on-container-platforms/cloud-foundry/deploy-oneagent-on-pivotal-web-services-for-application-only-monitoring)
to learn more.## Licence
Licensed under the MIT License. See the LICENSE file for details.