Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/davidcelis/new_relic-discourse
A New Relic plugin for Discourse forums.
https://github.com/davidcelis/new_relic-discourse
Last synced: about 2 months ago
JSON representation
A New Relic plugin for Discourse forums.
- Host: GitHub
- URL: https://github.com/davidcelis/new_relic-discourse
- Owner: davidcelis
- Created: 2014-03-12T22:40:16.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2019-04-03T21:24:23.000Z (over 5 years ago)
- Last Synced: 2024-10-12T08:35:30.578Z (2 months ago)
- Language: Ruby
- Homepage: http://www.newrelic.com/
- Size: 27.3 KB
- Stars: 17
- Watchers: 4
- Forks: 18
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# New Relic for Discourse
This is a Discourse plugin to get your forums reporting performance data to [New Relic][new-relic]. It is meant to be used with the [Discourse Docker Image][discourse-docker], so installation instructions will follow that route. It was originally written by [Sam Saffron][original], but I've updated the version of the New Relic RPM gem and supplied a newrelic.yml file that will be parsed by ERB.
## Installation
Assuming you've followed the above instructions for the Discourse Docker image:
1. SSH into your forum server as the user running docker (probably root)
2. `cd /var/discourse`
3. Open up `containers/app.yml`
4. In the `env:` section, add `NEW_RELIC_LICENSE_KEY: `
5. In the `env:` section, add `NEW_RELIC_APP_NAME: `
6. (optional) In the `env` sesion, add `NEW_RELIC_AGENT_VERSION: `
7. In the `hooks` section at the bottom, add the following to `cmd:````yaml
- git clone https://github.com/davidcelis/new_relic-discourse.git
```
7. (optional) In the `run` section at the bottom, add the following to get notified about new 'deployments':```yaml
- exec: curl -H "x-api-key:" -d "deployment[app_name]=" -d "deployment[description]=This is an app id deployment" https://api.newrelic.com/deployments.xml
```The next time you bootstrap and start a new container for your forums, it'll start reporting into New Relic! Yay! To restart Discourse so that it picks up the new plugin, just SSH into your server and do the following:
```sh
$ cd /var/discourse
$ ./launcher rebuild app
$ ./launcher start app
```Or, you can visit the `/admin/upgrade` URL on your Discourse installation's frontend and upgrade as you would normally.
[new-relic]: http://www.newrelic.com/
[discourse-docker]: https://github.com/discourse/discourse/blob/master/docs/INSTALL-digital-ocean.md
[original]: https://meta.discourse.org/t/newrelic-plugin/12986