stable

Clone or download

Read-only

request #13482: Collect more metrics about tracker plugin activity

The goal of this contribution is to increase the chance for Tuleap administrators to spot tracker misusages (e.g. script trying to delete all the artifacts via the REST API) and issues (e.g. infinite loop of changeset creation) as early as possible. Following metrics are added: * counter tracker_artifacts_total takes into artifact deletion in the artifacts activities * a new counter tracker_artifact_changesets_total to collect changeset creation * a new gauge tracker_artifacts_count to get the number of artifacts on the instance * a new gauge tracker_artifact_changesets_count to get the number of changesets on the instance Change-Id: I410c9f1feaf03143d9aa91ef311779feb5fd4e71

Modified Files

Name
M plugins/tracker/include/Tracker/Artifact/ArtifactInstrumentation.php +17 −8 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/ArtifactsDeletion/ArtifactDeletor.php +3 −1 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Changeset/ChangesetCreatorBase.class.php +2 −0 Go to diff View file
A plugins/tracker/include/Tracker/Artifact/Changeset/ChangesetInstrumentation.php +35 −0 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/dao/Tracker_ArtifactDao.class.php +5 −2 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/dao/Tracker_Artifact_ChangesetDao.class.php +17 −1 Go to diff View file
M plugins/tracker/include/trackerPlugin.class.php +21 −0 Go to diff View file