<commit_before># slapin-newrelic

<!-- TOC depthFrom:1 depthTo:6 withLinks:1 updateOnSave:1 orderedList:0 -->

- [slapin-newrelic](#slapin-newrelic)
- [Info](#info)
- [Status](#status)
- [Config](#config)
- [Commands/Usage](#commandsusage)
	- [Apps](#apps)
	- [Servers](#servers)

<!-- /TOC -->

# Info

SLAPI Plugin for New Relic

# Status

Currently in Beta

Basic Support for APM and Servers Services from New Relic

# Config

-   Get an integration API Key: <https://docs.newrelic.com/docs/apis/rest-api-v2/requirements/api-keys#viewing>
-   Set the NR_TOKEN in the config below or you can use the example file [newrelic.example.yml](newrelic.example.yml)
-   Place configured file at ``./slapi/config/plugins/newrelic.yml`
-   Start bot or just run `@bot reload` from chat
-   Profit

```yaml
plugin:
  type: api
  managed: true
  build: false
  build_force: false
  build_stream: false
  api_config:
    url: 'http://localhost:4700'
    endpoint: '/command'
  config:
    Image: 'slapi/slapin-newrelic'
    Env:
      - NR_TOKEN='<PASSWORD>'
    HostConfig:
      PortBindings:
        4700/tcp:<commit_msg>fixing readme formatting<commit_after># slapin-newrelic

<!-- TOC depthFrom:1 depthTo:6 withLinks:1 updateOnSave:1 orderedList:0 -->

- [slapin-newrelic](#slapin-newrelic)
- [Info](#info)
- [Status](#status)
- [Config](#config)
- [Commands/Usage](#commandsusage)
	- [Apps](#apps)
	- [Servers](#servers)

<!-- /TOC -->

# Info

SLAPI Plugin for New Relic

# Status

Currently in Beta

Basic Support for APM and Servers Services from New Relic

# Config

-   Get an integration API Key: <https://docs.newrelic.com/docs/apis/rest-api-v2/requirements/api-keys#viewing>
-   Set the NR_TOKEN in the config below or you can use the example file [newrelic.example.yml](newrelic.example.yml)
-   Place configured file at `./slapi/config/plugins/newrelic.yml`
-   Start bot or just run `@bot reload` from chat
-   Profit

```yaml
plugin:
  type: api
  managed: true
  build: false
  build_force: false
  build_stream: false
  api_config:
    url: 'http://localhost:4700'
    endpoint: '/command'
  config:
    Image: 'slapi/slapin-newrelic'
    Env:
      - NR_TOKEN='00000000000CHANGEME'
    HostConfig:
      PortBindings:
        4700/tcp:
{'fraction_non_alphanumeric': 0.13496659242761694, 'fraction_numerical': 0.01737193763919822, 'mean_word_length': 3.501002004008016, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 1, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '274960', 'n_tokens_mistral': 846, 'n_tokens_neox': 801, 'n_words': 197}