code manager logging details

asked 2018-11-19 08:37:00 -0600

sirinek gravatar image

I would like to track how long code deploys are taking per environment. I see that the deploy times are conveniently provided in the code-manager-access.log file, as below I can see that the last deploy took 69 seconds.

10.10.10.10 - - [19/Nov/2018:08:20:20 -0500] "POST /code-manager/v1/deploys HTTP/1.1" 200 257 "-" "CodeManagerCLI" 131967
10.10.10.10 - - [19/Nov/2018:08:46:34 -0500] "POST /code-manager/v1/deploys HTTP/1.1" 200 253 "-" "CodeManagerCLI" 80015
10.10.10.10 - - [19/Nov/2018:08:50:59 -0500] "POST /code-manager/v1/deploys HTTP/1.1" 200 253 "-" "CodeManagerCLI" 69774

Is there a way to include the environment name in the logging output? I see the logging is configured in /etc/puppetlabs/puppetserver/code-manager-request-logging.xml but how to include the additional information I do not know.

Thanks

Bill

edit retag flag offensive close merge delete