如何收集整个TeamCity安装的统计数据和指标?

时间:2022-11-29 21:23:51

We offer a TeamCity installation (with a number of build agents) as a shared resource to a number of distributed technology departments, across our mid-size company. Although we have a qualitative sense of how many departments and technologists are using our TeamCity installation, we'd like to start gathering some quantitative metrics around the use of this installation and the use of TeamCity in general.

我们提供TeamCity安装(包含许多构建代理)作为我们中型公司的许多分布式技术部门的共享资源。虽然我们对使用TeamCity安装的部门和技术人员的定性有一定的了解,但我们想开始围绕使用此安装以及一般使用TeamCity开始收集一些量化指标。

Is it possible for us to gather installation-wide metrics and statistics (i.e. NOT PROJECT SPECIFIC)?

我们是否可以收集安装范围的指标和统计数据(即不是项目特定的)?

We're looking for metrics such as:

我们正在寻找以下指标:

* # of projects in TeamCity
* # of builds processed hourly/daily
* # of build failures hourly/daily
* # of test-runs 
* Min/Avg/Max # of test failures per run
* Min/Avg/Max amount of time it takes to do each test-run

Any help would be greatly appreciated.

任何帮助将不胜感激。

1 个解决方案

#1


If your TeamCity data is in an external SQL server of some kind, you should be able to query that db directly to run these kinds of metrics.

如果您的TeamCity数据位于某种外部SQL服务器中,您应该能够直接查询该数据库以运行这些类型的指标。

#1


If your TeamCity data is in an external SQL server of some kind, you should be able to query that db directly to run these kinds of metrics.

如果您的TeamCity数据位于某种外部SQL服务器中,您应该能够直接查询该数据库以运行这些类型的指标。