CastawayLabs / cachet-monitor

Distributed monitoring plugin for CachetHQ
https://castawaylabs.github.io/cachet-monitor/
MIT License
439 stars 127 forks source link

API response time #48

Closed mkok1019 closed 7 years ago

mkok1019 commented 7 years ago

Hey, guys, @matejkramny

I've just installed cachet-monitor and check the response time of my api. It says, 203.93ms, but when I ping the api url in console, it only takes 20ms,

Is this something like a bug?

matejkramny commented 7 years ago

not quite, because cachet pings the API which is not the same ping as with the ping command.

ping sends ICMP requests and pings the server.

cachet-monitor pings using HTTP which is on a different network layer. Your web application has to respond to it which explains the response time