• /
  • EnglishEspañolFrançais日本語한국어Português
  • Log inStart now

Port monitoring integration

Our port monitoring integration monitors status for networking ports, such as TCP, UDP, etc., and reports uptime and outage data to New Relic.

Dashboard of the port monitoring integration

Install the integration

Follow the steps below to install the integration:

Install the infrastructure agent

To use the Port Monitoring integration, you need to first install the infrastructure agent on the same host. All our on-host integrations require the infrastructure agent, which helps expose and report metrics to New Relic.

Download and prepare the integration

  1. Choose and download a release for your platform from the GitHub repo. For example:

    bash
    $
    wget https://github.com/newrelic/nri-port-monitor/releases/download/1.4/nri-port-monitor_x86_64.tar.gz && tar -zxvf nri-port-monitor_x86_64.tar.gz
  2. Copy nri-port-monitor executable to /var/db/newrelic-infra/newrelic-integrations. Copy port-monitor-config.yml to /etc/newrelic-infra/integrations.d

    bash
    $
    cp nri-port-monitor /var/db/newrelic-infra/newrelic-integrations && cp port-monitor-config.yml /etc/newrelic-infra/integrations.d
  3. Set execution permissions for the binary file nri-port-monitor so it can run correctly:

    bash
    $
    chmod +x /var/db/newrelic-infra/newrelic-integrations/nri-port-monitor

Configure the integration

  1. Open port-monitor-config.yml and edit the config with all the port instances you'd like to monitor (add multiple stanzas to integrations block for each address/port to monitor:

    integrations:
    - name: nri-port-monitor
    interval: 60s
    env:
    # Network type. Known networks are:
    # tcp, tcp4 (IPv4-only), tcp6 (IPv6-only),
    # udp, udp4 (IPv4-only), udp6 (IPv6-only),
    # ip, ip4 (IPv4-only), ip6 (IPv6-only),
    # unix, unixgram and unixpacket
    NETWORK: tcp
    # Address to check in the format host:port
    ADDRESS: localhost:80
    # Timeout in seconds
    TIMEOUT: 5
    labels:
    env: production

Find your data

To easily find your Port Monitoring data, download our pre-built dashboard:

  1. Go to one.newrelic.com and click on + Integrations & Agents.

  2. Click on Dashboards tab.

  3. In the search box, search for Port Monitoring.

  4. Click on the Port Monitoring dashboard to install it.

    Here's an example NRQL query that returns the status of configured ports:

    SELECT latest(status) FROM NetworkPortSample FACET address SINCE 30 MINUTES AGO TIMESERIES
Copyright © 2026 New Relic Inc.

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