# PRO TIP: Monitoring Network Device Availability with NAM and DQL

**URL:** <https://community.dynatrace.com/t/pro-tip-monitoring-network-device-availability-with-nam-and-dql/56222>\
**Category:** Dynatrace Tips\
**Tags:** dql, notebooks, network-monitoring, network-device\
**Created:** [June 18, 2026, 10:30am UTC](https://community.dynatrace.com/t/pro-tip-monitoring-network-device-availability-with-nam-and-dql/56222 "2026-06-18T10:30:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![uros\_djukic1](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/uros_djukic1/32/37084_2.png) [@uros\_djukic1](https://community.dynatrace.com/u/uros_djukic1)\
**Post date:** [June 18, 2026, 10:30am UTC](https://community.dynatrace.com/t/pro-tip-monitoring-network-device-availability-with-nam-and-dql/56222/1 "2026-06-18T10:30:46Z")

</div>

Hi Dynatracers,  
We are using **Dynatrace Network Availability Monitors (NAM)** to collect the availability of network devices through **Ping/ICMP, DNS, and TCP checks**. NAM supports ICMP, TCP, and DNS monitor types to validate the availability of hosts, devices, and services from a network perspective.Example of Powerful DQL I use :

| timeseries availability = avg(dt.synthetic.multi\_protocol.request.availability),  
by: {  
dt.entity.multiprotocol\_monitor,  
multi\_protocol.request.target\_address,  
request.target\_address  
}  
| fieldsAdd targetAddress = coalesce(request.target\_address, multi\_protocol.request.target\_address)  
| lookup [  
fetch `dt.entity.network:device`  
| expand dt.ip\_addresses  
| fields  
deviceId = id,  
deviceName = entity.name,  
lookupIp = dt.ip\_addresses  
],  
sourceField: targetAddress,  
lookupField: lookupIp,  
fields: { deviceId, deviceName }  
| fieldsAdd monitorName = entityName(dt.entity.multiprotocol\_monitor)  
| fieldsAdd deviceName = coalesce(deviceName, "No matching network device")  
| fields monitorName, deviceName, deviceId, targetAddress, availability |

## Result :&nbsp;

 ![uros_djukic1_0-1781778506400.png](https://global.discourse-cdn.com/dynatrace/original/3X/8/c/8c2c43c5e66609c7269af6f6b385a46abe2fc2f6.png)

**Remark :**

Reachability is the key KPI because it measures whether the target network device or service is actually reachable from the monitoring location, regardless of the underlying protocol used: ICMP, DNS, or TCP.

Reachability (%) = average availability of NAM requests over the selected timeframe

## Why Ping, DNS, and TCP Are Useful

- **Ping / ICMP** checks whether the device is reachable on the network.  
In simple terms: _Can I reach the device?_
- **DNS** checks whether the device or service name can be resolved correctly.  
In simple terms: _Does the hostname resolve to the expected IP address?_
- **TCP** checks whether a specific port is open and accepting connections.  
In simple terms: _Is the expected service actually reachable on its port?_

Conclusion :&nbsp;Ping validates network reachability, DNS validates name resolution, and TCP validates service-level accessibility. The DQL lookup then connects these checks back to the corresponding Dynatrace network device entity.

Hope it helps,  
Cheers!
