Skip to content

Commit

Permalink
made changes, added separate mdx files
Browse files Browse the repository at this point in the history
  • Loading branch information
akristen committed Jan 12, 2024
1 parent c1b0a17 commit f8a7938
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 31 deletions.
@@ -1,15 +1,8 @@
---
componentType: default
optionType: agent-lang
headingText: Install the Node.js agent
headingText: Configure the Node agent
---

## Install the Node.js agent [#install]

To instrument your AI-powered app, you need to follow our install instructions for the Node.js agent. Follow the steps in our [Install the Python agent](https://docs.newrelic.com/install/python/) doc, then return here to finish set up.

## Configure your agent [#configure]

After you have installed the Node.js agent, you will need to turn on the following configuration settings. The ai_monitoring flag enables instrumentation and sending of the LLM events. The increase in custom insights events allows for all the LLM events to be sent to New Relic.

Using environment variables:
Expand All @@ -25,5 +18,3 @@ Using the agent configuration file:
ai_monitoring.enabled = true
Custom_insights_events.max_samples_stored = 10000
```

## View your data [#view]
7 changes: 7 additions & 0 deletions src/install/aim/agent-lang/nodejs-install.mdx
@@ -0,0 +1,7 @@
---
componentType: default
optionType: agent-lang
headingText: Install the Node.js agent
---

To instrument your AI-powered app, you need to follow our install instructions for the Node.js agent. Follow the steps in our [Install the Python agent](https://docs.newrelic.com/install/python/) doc, then return here to finish set up.
@@ -1,15 +1,8 @@
---
componentType: default
optionType: agent-lang
headingText: Install the Python agent
headingText: Configure the Python agent
---

## Install the Python agent [#install]

To instrument your AI-powered app, you need to follow our install instructions for the Python agent. Follow the steps in our [Install the Python agent](https://docs.newrelic.com/install/python/) doc, then return here to finish set up.

## Configure your Python agent [#configure]

There are a few configuration settings we recommend when using AI monitoring.
By default, the Python agent will truncate attribute values once they are larger than 255 characters. In the case of AI monitoring, when large messages are being sent back and forth to the UI, this can result in truncated messages and lost context. To increase this value, you can adjust the following settings. We recommend the maximum value of 4095.

Expand Down Expand Up @@ -46,9 +39,3 @@ We also strongly recommend that you have the following configurations enabled:
* `application_logging.enabled` - Allows us to capture application logs and correlate them with LLM calls
* `application_logging.forwarding.enabled` - Automatically forwards application logs to New Relic (if you have another log forwarding setup, you can use that instead)
* `distributed_tracing.enabled` - Enables distributed tracing so that we can understand your application's LLM usage in the context of your overall architecture

## View your AI data [#view]

Login to new relic platform -> APM & services -> select the APM service that was installed as part of the above steps.

SCREENSHOT HERE
7 changes: 7 additions & 0 deletions src/install/aim/agent-lang/python-install.mdx
@@ -0,0 +1,7 @@
---
componentType: default
optionType: agent-lang
headingText: Install the Python agent
---

To instrument your AI-powered app, you need to follow our install instructions for the Python agent. Follow the steps in our [Install the Python agent](https://docs.newrelic.com/install/python/) doc, then return here to finish set up.
6 changes: 6 additions & 0 deletions src/install/aim/agent-lang/view-your-data.mdx
@@ -0,0 +1,6 @@
---
componentType: default
headingText: View your data
---

asdgasdfasdfsdaf
32 changes: 27 additions & 5 deletions src/install/config/aim.yaml
Expand Up @@ -5,8 +5,8 @@ metaDescription: 'Track the performance of your entire AI stack.'
introFilePath: 'src/install/aim/intro.mdx'
appInfo:
- optionType: agent-lang
label: "Choose your app's language"
placeholder:
label: 'Choose your app''s language'
placeholder: ''
options:
- value: 'nodejs'
displayName: 'Node.js'
Expand All @@ -15,18 +15,40 @@ appInfo:

steps:
- filePath: 'src/install/aim/appInfo.mdx'
- filePath: 'src/install/aim/agent-lang/nodejs.mdx'
- filePath: 'src/install/aim/agent-lang/nodejs-install.mdx'
overrides:
- isConditionalStep: true
selectedOptions:
- optionType: agent-lang
options:
- value: 'nodejs'
- filePath: 'src/install/aim/agent-lang/python.mdx'
- filePath: 'src/install/aim/agent-lang/node-config'
overrides:
- isConditionalStep: true
selectedOptions:
- optionType: agent-lang
options:
- value: 'nodejs'
- filePath: 'src/install/aim/agent-lang/python-install.mdx'
overrides:
- isConditionalStep: true
selectedOptions:
- optionType: agent-lang
options:
- value: 'python'
- value: 'python-install'
- filePath: 'src/install/aim/agent-lang/python-config'
overrides:
- isConditionalStep: true
selectedOptions:
- optionType: agent-lang
options:
- value: 'python'
- filePath: 'src/install/aim/agent-lang/view-your-data'
overrides:
- isConditionalStep: true
selectedOptions:
- optionType: agent-lang
options:
- value: 'nodejs'
- value: 'python'
whatsNextFilePath: 'src/install/aim/whatsNext.mdx'
4 changes: 2 additions & 2 deletions src/nav/root.yml
Expand Up @@ -11,8 +11,8 @@ pages:
- title: Monitor your data
- title: Application Monitoring (APM)
path: apm
- title: AI monitoring
path: ai-monitoring
- title: AI observability
path: ai-observability
- title: Browser Monitoring
path: browser
- title: Infrastructure Monitoring
Expand Down

0 comments on commit f8a7938

Please sign in to comment.