Monitoring Netagent

Aggregate and summarize networking metrics for the Access Tier
Updated On: Jun 30, 2025

Overview

The Netagent binary, which is the core component of the Access Tier, is instrumented to generate metrics to be collected by a StatsD daemon; the daemon will then generate aggregates and relay them to a monitoring backend.

Enabling metrics collection

To enable metrics collection, enter the Metrics Collection Address under the Advanced Settings tab in the Access Tier configuration spec.

Once configured, the following metrics will be sent to the statsd daemon:

Metric NameMetric TypeDescription
banyan.transmit_rateCOUNTBytes transmitted
banyan.receive_rateCOUNTBytes received
banyan.connectionsCOUNTNumber of TCP connections
banyan.errorsCOUNTNumber of failures to connect to the upstream server
banyan.unauthorized_attemptsCOUNTNumber of attempted accesses blocked by policy
banyan.response_timeHISTOGRAMTime to respond to a HTTP request
banyan.decision_timeHISTOGRAMTime to process a TCP request
banyan.clientsCOUNTNumber of active clients connected to a Service Tunnel

Netagent aggregates TX/RX byte counts and sends them to statsd daemon roughly every 13 seconds. For all metrics except TX/RX byte counts, Netagent sends statsd messages to the daemon immediately, where they are received and aggregated.

Every metric is tagged with descriptors that allow you to disaggregate telemetry data as needed:

Tag NameTag Value
site_nameName of Access Tier that generated the metrics
host_nameLinux host running Netagent, representing a specific instance of the Access Tier
service_idID of the CSE (formerly Banyan) Service for the metric

Metric tags and the HISTOGRAM metric type are supported explicitly by Datadog, but may not work with other monitoring tools. The Response Time metric is calculated only for Hosted Website services.

Datadog Integration using DogStatsD

DogStatsD is a metrics aggregation service bundled with the Datadog Agent. When you run the Datadog agent alongside Netagent on the Access Tier machines, you can use DogStatsD to collect network metrics for visualization in your Datadog dashboards.

Leveraging Tags for per Service or per Access Tier metrics

Metrics sent to Datadog contain tags that allow filtering at per Service or per Access Tier level. In order to filter metrics at an Access Tier level, navigate to the Metrics Explorer and filter on site_name={Access Tier}.

In order to filter metrics at a Banyan service level, navigate to the Metrics Explorer and filter on service_id={Service Name}.