Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More data in logs #203

Open
josepowera opened this issue Nov 29, 2021 · 0 comments
Open

More data in logs #203

josepowera opened this issue Nov 29, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@josepowera
Copy link
Contributor

josepowera commented Nov 29, 2021

It would simplify debuging kubernetes cluster problems / mittens configuration parameter errors when additional data regarding what is going on, at least where it's connecting to and url that is getting fetched / or has problems would be logged.

Current output log


2021/11/29 01:34:45 Wrote file: alive
2021/11/29 01:34:45 []
2021/11/29 01:34:45 Waiting for http target to be ready for a max of 60s
2021/11/29 01:34:46 HTTP target not ready yet...
2021/11/29 01:34:47 HTTP target not ready yet...
2021/11/29 01:34:48 HTTP target not ready yet...


Rational

It's hard to debug configuration (we were working on READY check) when you work with a black box

When log has more data, debugging the problems and finding a solution is much easier.

2021/11/29 01:34:45 Writing file: alive
2021/11/29 01:34:45 Wrote file: alive
2021/11/29 01:34:45 []
2021/11/29 01:34:45 creating httpclient to host: http://apidsp2.xyz.com:80
2021/11/29 01:34:45 Waiting for http target to be ready for a max of 60s
2021/11/29 01:34:46 creating request: http://apidsp2.xyz.com:80/health.aspx
2021/11/29 01:34:46 status code: 404
2021/11/29 01:34:46 HTTP target not ready yet...
2021/11/29 01:34:47 creating request: http://apidsp2.xyz.com:80/health.aspx
2021/11/29 01:34:47 status code: 404
2021/11/29 01:34:47 HTTP target not ready yet...


or output like from the warmup phase:

021/11/29 16:07:00 🔴 http response	89 ms	404	POST	/process.aspx
2021/11/29 16:07:00 🔴 http response	300 ms	404	POST	/process.aspx
2021/11/29 16:07:00 🔴 http response	279 ms	404	POST	/process.aspx
@josepowera josepowera added the enhancement New feature or request label Nov 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

1 participant