• EnglishEspañol日本語한국어Português
  • 로그인지금 시작하기

LAMPy stack monitoring integration

Our LAMPy integration makes use of the infrastructure agent, MySQL integration, Apache integration, and Python agent to provide you with a pre-built dashboard with your most important metrics like response time, CPU utilization, traffic, and login frequencies.

After setting up our LAMPy integration, we give you a dashboard for your LAMPy web app metrics.

Step 1: Install the infrastructure agent

To do this, follow the infrastructure agent install steps for the host containing your LAMPy application.

Step 2: Install the MySQL integration

Our LAMPy integration relies on the MySQL integration to work. To learn more and check requirements review our MySQL docs.

  1. From one.newrelic.com click Integrations & Agents > Infrastructure & OS > MySQL.
  2. Follow the instructions to install the MySQL agent.

Step 3: Install the Apache integration

Our LAMPy integration relies on the Apache integration to work. To learn more and check requirements review our Apache docs.

  1. From one.newrelic.com click Integrations & Agents > Infrastructure & OS > Apache.
  2. Follow the instructions on the screen to install Apache agent.

Step 4: Install the Python agent

Our LAMPy integration relies on the Python agent to work. To learn more and check requirements review our Python docs.

  1. From one.newrelic.com click Integrations & Agents > 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 this line to your settings.py file:

    NEW_RELIC_CONFIG_FILE = BASE_DIR / 'newrelic.ini'
  6. Add these lines to your wsgi.py file:

    import newrelic.agent
    from django.conf import settings
    from django.core.wsgi import get_wsgi_application
    application = get_wsgi_application()
    newrelic.agent.initialize(settings.NEW_RELIC_CONFIG_FILE)
    newrelic.agent.WSGIApplicationWrapper(application)

Step 5: Restart your Apache server

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

Find your data

To get your LAMPy dashboard:

  1. From one.newrelic.com, go to the Integrations & Agents page.
  2. Click on Dashboards.
  3. In the search bar, type LAMPy.
  4. The LAMPy dashboard should appear. Click on it to install it.

Your LAMPy dashboard is considered a custom dashboard and can be found in the Dashboards UI. For docs on using and editing dashboards, see our dashboard docs.

For information about data reported, see the docs for each of the tools you installed:

If you installed the infrastructure agent, you'll also receive infrastructure data.

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

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

What's next?

To learn more about querying your data and creating custom dashboards, check out these docs:

Copyright © 2024 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.