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
fmt.Printf("stop probing requested by %s\n", request.RemoteAddr)
conf.StopRequested = true
}
start := request.URL.Query()["start"]
if len(start) > 0 {
fmt.Printf("start probing requested by %s\n", request.RemoteAddr)
conf.StopRequested = false
}
debugoff := request.URL.Query()["debugoff"]
if len(debugoff) > 0 {
fmt.Printf("debugoff requested by %s\n", request.RemoteAddr)
conf.Debug = false
}
debugon := request.URL.Query()["debugon"]
if len(debugon) > 0 {
fmt.Printf("debugon requested by %s\n", request.RemoteAddr)
conf.Debug = true
}
_, _ = fmt.Fprintf(writer, "hzmon running:%t, debug:%t. Use /?start or /?stop to control probing, /?debugon or /?debugoff to control debug mode (use header X-Cf-Process-Instance=\"<process-guid>:<Instance-Index>\" to direct to all the app instances).\n", !conf.StopRequested, conf.Debug)