Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/drunomics/nuxtjs-newrelic
A Nuxt.js module to easily add NewRelic APM data to your project.
https://github.com/drunomics/nuxtjs-newrelic
Last synced: about 2 months ago
JSON representation
A Nuxt.js module to easily add NewRelic APM data to your project.
- Host: GitHub
- URL: https://github.com/drunomics/nuxtjs-newrelic
- Owner: drunomics
- License: mit
- Created: 2021-08-23T18:21:59.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-15T18:15:41.000Z (8 months ago)
- Last Synced: 2024-05-16T06:25:39.072Z (8 months ago)
- Language: JavaScript
- Size: 22.5 KB
- Stars: 6
- Watchers: 1
- Forks: 3
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# nuxtjs-newrelic
A Nuxt.js module to easily add NewRelic APM data to your project.**Note:** This module only collects data from the Node.js server. For browser monitoring, you will need to add the Nuxt.js infrastructure agent, [see instructions here](https://docs.newrelic.com/docs/infrastructure/host-integrations/host-integrations-list/nuxt-js-integration/).
## Pre-requisites
* A [NewRelic](https://newrelic.com) account and license key.
## Setup
1. Add `drunomics/nuxtjs-newrelic` dependency to your Nuxt.js project
```
npm install drunomics/nuxtjs-newrelic
```2. Add `@drunomics/nuxtjs-newrelic` to the modules section of nuxt.config.js
```
{
modules: [
'@drunomics/nuxtjs-newrelic'
]
}
```3. Add the required variables to your .env:
```
NEW_RELIC_LICENSE_KEY=your_newrelic_license
NEW_RELIC_APP_NAME=Default
```To disable config and use only vars:
```
NEW_RELIC_NO_CONFIG_FILE=true
```## Docs
1. NewRelic Node.js agent documentation:https://docs.newrelic.com/docs/agents/nodejs-agent/installation-configuration/nodejs-agent-configuration
2. List of all dotenv variables:
https://docs.newrelic.com/docs/agents/nodejs-agent/installation-configuration/nodejs-agent-configuration/#exports_config
## License
[MIT License](./LICENSE)
## Credits
Development sponsored by [drunomics](https://drunomics.com)