tcWebHooks icon indicating copy to clipboard operation
tcWebHooks copied to clipboard

Get Information from Performance Monitor (BuildFeature)

Open Super8film87 opened this issue 1 year ago • 4 comments

Hey,

I was just interested if it is possible to get average, max for CPU, Disk, Memory from a a build and send the data via web hook to the monitoring?

I was checking to use the data from the Build Feature Performance Monitor but I don't find any interface. Additional I found https://javadoc.jetbrains.net/teamcity/openapi/current/jetbrains/buildServer/util/DiagnosticUtil.ThreadDumpData.html#getCpuUsage() but I assume this for TeamCity Server, correct? Even I didn't get this running :)

Super8film87 avatar Sep 18 '23 07:09 Super8film87

Yes, these values will not be available in the context of a build.

netwolfuk avatar Sep 18 '23 07:09 netwolfuk

I had a quick look and I can't see a plugin to export the server data and it doesn't appear to be available via the rest API either

netwolfuk avatar Sep 18 '23 07:09 netwolfuk

Ok - so I'll have to use a third party tool :(

Super8film87 avatar Sep 18 '23 08:09 Super8film87

TeamCity supports Prometheus. That would be a good place to start.

netwolfuk avatar Sep 18 '23 08:09 netwolfuk