You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For "deny" probes, we have the problem of heavy logging [1] due to expected failures. I think we can solve this in several ways but i was wondering if cloudprober would benefit with some notion of throttled logging at a probe level. Once we have throttled logging parameters, we can add a utility function say
func shouldLogForProbe() bool { ...} // time-based control or one-every-N logging.
then probes can change their probe path to be
func doOneProbe(...) {
shouldLog := shouldLogForProbe()
...
throttledLog(p.l, shouldLog, msg)
// OR we could hide the logic for throttling completely by passing a timestamp or probe ID.
throttledLog(p.l, probeTSorID, msg)
...
}
With this we could capture all logs for a single probe and probe writers can also increase the logging per probe with the confidence that there wont be too much log spam.
Alternatively, as a quick fix, we could also add "throttle_log_interval" param to http probe that could be used to limit logging to every 'interval'.
Or a tertiary fix of removing the log line completely.
Using negative test in HTTP seems like a good start, I will propose a CL.
That said, it will be a while before we can move the probes to this (alerts, slos, etc... will have to be modified). So internally, we are have disabled logging and will keep it disabled till we can enable negative test for HTTP probes.
Activity
manugarg commentedon Feb 13, 2025
Other than logs throttling, we can also look at implementing negative test in HTTP probe, similar to the TCP probe:
cloudprober/probes/tcp/tcp.go
Line 167 in 47ff806
ls692 commentedon Feb 18, 2025
Using negative test in HTTP seems like a good start, I will propose a CL.
That said, it will be a while before we can move the probes to this (alerts, slos, etc... will have to be modified). So internally, we are have disabled logging and will keep it disabled till we can enable negative test for HTTP probes.