#1789·gatus

latency spikes with http(s) endpoints because of DNS

Author: sebastianfischerCreated Sep 1, 2026Updated Sep 1, 2026
Labelsbug

Describe the bug

Gatus runs in docker. https endpoints has random latency spikes. Normal: 20ms, Spikes: ~1800ms. ICMP endpoints did not show that problem. Both were configured with URIs (ex. https Endpoint: https://cloud.example.com, ICMP endpoint: cloud.example.com) against same hosts. DNS resolved to IPv6 DNS resolver on this host.

curl from another container had no latency spikes, this seems to be specific to gatus, but I might be mistaken. Solution was to insert fixed ipv4 dns servers in docker compose of gatus. No more latency spikes.

What do you see?

No response

What do you expect to see?

No response

List the steps that must be taken to reproduce this issue

No response

Version

v5.36.0

Additional information

No response