Skip to content

Commit

Permalink
fix(Infrastructure): Added minor modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
nbaenam committed May 30, 2023
1 parent 17c8e69 commit d977946
Showing 1 changed file with 11 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,19 @@ Our LAMPy integration relies on the Apache integration to work. To learn more an

Our LAMPy integration relies on the Python agent to work. To learn more and check requirements review our [Python docs](/docs/apm/agents/python-agent/getting-started/introduction-new-relic-python/).

1. From [one.newrelic.com](https://one.newrelic.com) click **Add data ** > Application monitoring > Python**.
1. From [one.newrelic.com](https://one.newrelic.com) click **Add data > Application monitoring > Python**.
2. Name your application.
3. Download the configuration file and place it in your application's root directory.
4. Integrate your python agent that is connected to Django web site. This python agent also runs on the Apache server.
5. Add the below line to your `settings.py` file:
* `NEW_RELIC_CONFIG_FILE = BASE_DIR / 'newrelic.ini'`
6. Add the lines below to your `wsgi.py` file:
5. Add this line to your `settings.py` file:

```py
`NEW_RELIC_CONFIG_FILE = BASE_DIR / 'newrelic.ini'`
```

6. Add these lines to your `wsgi.py` file:

```py
import newrelic.agent

from django.conf import settings
Expand All @@ -67,9 +71,9 @@ Our LAMPy integration relies on the Python agent to work. To learn more and chec
newrelic.agent.initialize(settings.NEW_RELIC_CONFIG_FILE)
newrelic.agent.WSGIApplicationWrapper(application)
```
## Step 5: Restart your Apache server.
## Step 5: Restart your Apache server

Wait five minutes and then proceed to finding your data in New Relic.
Wait for a few minutes and then proceed to finding your data in New Relic.


## Find your data [#find-data]
Expand All @@ -94,7 +98,7 @@ If you installed the infrastructure agent, you'll also receive [infrastructure d

Here is an example NRQL query to check bytes sent per request:

```
```sql
SELECT (average(`apache.server.net.bytesPerSecond`) / average(`apache.server.net.requestsPerSecond`)) as 'Bytes sent per request'
FROM Metric
TIMESERIES auto
Expand Down

0 comments on commit d977946

Please sign in to comment.