# Determining network latency between Prometheus server and a Windows endpoint

**URL:** https://discuss.prometheus.io/t/determining-network-latency-between-prometheus-server-and-a-windows-endpoint/3449
**Category:** PromQL
**Created:** [August 19, 2025, 5:28pm UTC](https://discuss.prometheus.io/t/determining-network-latency-between-prometheus-server-and-a-windows-endpoint/3449 "2025-08-19T17:28:19Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![jeremiahharbach](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.prometheus.io/jeremiahharbach/32/1199_2.png) [@jeremiahharbach](https://discuss.prometheus.io/u/jeremiahharbach)
#### Post date: [August 19, 2025, 5:28pm UTC](https://discuss.prometheus.io/t/determining-network-latency-between-prometheus-server-and-a-windows-endpoint/3449/1 "2025-08-19T17:28:19Z")

</div>

Our previous monitoring tool tracked ping latency (server → target).

I have been asked to implement similar network latency tracking in Prometheus.

I don’t think it needs to be ping/ICMP specifically but I know that could be an option with the blackbox exporter.

We monitor a few hundred Windows servers via the windows exporter.

The exact milliseconds of latency is not all that important in this case. We are more concerned about trends. For example, if a service is suddenly much slower than normal, can we determine if the slowness is the result of high network latency or an issue with the application itself.

If I am trying to determine network latency, would the following query get me a result analogous to (i.e. similar to and roughly as useful as) a ping?

```auto
scrape_duration_seconds - windows_exporter_scrape_duration_seconds

```

Or are there other factors (e.g. responsiveness of http server) that this query takes into account that could muddy the results? Or should I just configure the ICMP monitoring in the blackbox exporter?

---

<div class="post-metadata">

### Author: ![aj2s](https://avatars.discourse-cdn.com/v4/letter/a/a4c791/32.png) [@aj2s](https://discuss.prometheus.io/u/aj2s)
#### Post date: [August 21, 2025, 4:53pm UTC](https://discuss.prometheus.io/t/determining-network-latency-between-prometheus-server-and-a-windows-endpoint/3449/2 "2025-08-21T16:53:53Z")

</div>

I recommend blackbox exporter 🙂
