• EnglishEspañol日本語한국어Português
  • Log inStart now

New Relic NGINX integration buildpack for VMware Tanzu

Streamline NGINX monitoring and troubleshooting with the New Relic NGINX integration buildpack for VMware Tanzu. By automatically collecting and sending detailed inventory and performance metrics to the New Relic platform, you gain invaluable insights into connections, client requests, and overall server health. Correlate this data with VMware Tanzu infrastructure metrics from the New Relic Firehose Nozzle for comprehensive environment visibility and rapid issue resolution.

Requirements and compatibility

This product has been tested and is compatible with VMware Tanzu OpsManager versions up to and including v3.0 and Tanzu Application Service 4.0, 5.0 and 6.0.

The New Relic NGINX integration buildpack for VMware Tanzu requires the following:

For general information about adding multiple buildpacks to manifests, see Cloud Foundry documentation: Pushing an app with multiple buildpacks.

Version and support information

The following table provides version support information about the New Relic NGINX integration buildpack for VMware Tanzu.

Element

Details

Tile version

1.0.2

Release date

August 09, 2024

Software component version

New Relic NGINX integration buildpack for VMware Tanzu 1.0.2

Compatible Ops Manager version(s)

3.0.x

Compatible VMware Tanzu Application Service for VMs versions

4.0.x, 5.0.x and 6.0.x

BOSH stemcell version

Ubuntu Jammy

CF Stack

cflinuxfs3, cflinuxfs4

Installation and configuration

This section describes how to install and configure the New Relic NGINX integration buildpack for VMware Tanzu.

You can install the buildpacks either as a tile in Ops Manager or individually using the CF CLI.

Download the latest version of the tile (currently newrelic-nginx-buildpack-1.0.1.pivotal) from the Broadcom download site, or from New Relic's GitHub repo under releases.

Navigate to the Ops Manager Installation Dashboard and click Import a Product to upload the product file.

Under the Import a Product button, click the + sign next to the version number of New Relic NGINX Buildpack for Tanzu to add the tile to your staging area.

Click the newly added New Relic NGINX Buildpack for Tanzu tile.

  1. Install and configure the tile in Ops Manager. You can accept the default values to install both buildpacks in your PCF foundation or select the checkbox for any buildpacks you wish to install under Tile Configuration > New Relic Buildpack Selection.

  2. If you make any configuration changes, click the Save button on each tab at the bottom of the page.

In Ops Manager, go to the installation UI and click Apply changes.

Unzip newrelic-nginx-buildpack-*.pivotal into a separate subdirectory:

bash
$
unzip newrelic-pcf-nginx-buildpack-*.pivotal -d buildpack_tile

Change directory to buildpack_tile/releases:

bash
$
cd buildpack_tile/releases

Create a subdirectory, such as tmp:

bash
$
mkdir tmp

Extract the tgz file in the releases folder into the tmpdirectory:

bash
$
tar xvf newrelic-pcf-nginx-buildpack-*.tgz -C tmp

Change directory to tmp/packages:

bash
$
cd tmp/packages

Extract any of the individual buildpack .tgz files using the following command:

bash
$
tar xvf newrelic_nginx_buildpack_cflinuxfs4.tgz

OR

bash
$
tar xvf newrelic_nginx_buildpack_cflinuxfs3.tgz

This will create a folder with the name of the buildpack, containing the zipped version of the buildpack.

Upload the zipped buildpack file using the CF CLI's cf create-buildpack command:

bash
$
cf create-buildpack newrelic_nginx_buildpack-local newrelic_nginx_buildpack_cflinuxfs4/newrelic_nginx_buildpack-cached-cflinuxfs4-v*.zip 99

OR

bash
$
cf create-buildpack newrelic_nginx_buildpack-local newrelic_nginx_buildpack_cflinuxfs3/newrelic_nginx_buildpack-cached-cflinuxfs3-v*.zip 99

Buildpack build and deploy process

The buildpacks in this tile are pre-built and ready for use in Cloud Foundry. However, if you want to make changes or update the cached version of any buildpacks with newer dependencies, you can build your own copy. Follow the instructions below to build and deploy your own copy.

Build the buildpack

  1. Clone the buildpack repository to your system:
    bash
    $
    git clone https://github.com/newrelic/newrelic-pcf-nginx-buildpack
  2. Change directory to the cloned buildpack.
  3. Source the .envrc file in the buildpack directory:
    bash
    $
    source .envrc
  4. Install Bosh CLI and Tile Generator:
    bash
    $
    ./scripts/setup.sh
  5. To build the buildpack, you have two options:
  • Only build the buildpack:

    bash
    $
    make clean
    $
    make package

    The following buildpacks will be generated:

    • build/newrelic_nginx_buildpack-cached-cflinuxfs4-v*.zip

    • build/newrelic_nginx_buildpack-cached-cflinuxfs3-v*.zip

      OR

  • Build the buildpack by creating a tile:

    bash
    $
    make clean
    $
    make all

    The following tile will be generated:

    • product/newrelic-pcf-nginx-buildpack-*.pivotal

Deploy to Cloud Foundry

  1. Upload the buildpack to Cloud Foundry and optionally specify it by name using the CF CLI:

    bash
    $
    cf create-buildpack newrelic_nginx_buildpack [BUILDPACK_ZIP_FILE_PATH] 99
  2. Create a folder named example and download the example.tar.gz archive:

    bash
    $
    mkdir example
    $
    cd example
    $
    wget https://github.com/newrelic/newrelic-pcf-nginx-buildpack/releases/download/v1.0.1/example.tar.gz
  3. Push the application using the cf push command by using the manifest.yml:

    bash
    $
    cf push

(Optional) Bind your application to New Relic Broker Service

To integrate your application with the New Relic Broker Service, follow these steps:

  1. Use the Cloud Foundry CLI to create a New Relic service instance:

    bash
    $
    cf create-service newrelic <NEWRELIC_PLAN_NAME> <YOUR_NEWRELIC_SERVICE_INSTANCE_NAME>

    Make sure you replace <NEWRELIC_PLAN_NAME> with the desired New Relic plan and <YOUR_NEWRELIC_SERVICE_INSTANCE_NAME> with a name for your service instance.

  2. Bind your application to the New Relic service instance using the CF CLI:

    bash
    $
    cf bind-service my_app <YOUR_NEWRELIC_SERVICE_INSTANCE_NAME>

    Make sure to replace my_app with the name of your application and <YOUR_NEWRELIC_SERVICE_INSTANCE_NAME> with the name of the New Relic service instance you created.

  3. Specify the New Relic service instance in the services section of your application's manifest.yml file:

    services:
    - <YOUR_NEWRELIC_SERVICE_INSTANCE_NAME>
  4. Deploy your application with the updated manifest:

    bash
    $
    cf push

Monitoring with New Relic

Once the application is successfully pushed, the NGINX integration will start sending NGINX metrics to New Relic.

To install the dashboard, follow these UI instructions. Make sure you skip the installation and directly install the dashboard.

You may also explore data further under All entities > On Hosts > NGINX Servers.

Important

The cached version of this integration buildpack contains New Relic infrastructure agent 1.53.0 and New Relic NGINX integration 3.4.6.

Leave us feedback

If you have a feature request, questions, or information about a bug, please submit a GitHub issue.

Copyright © 2024 New Relic Inc.

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