@@ -52,6 +52,10 @@ type PrincipalMetrics struct {
5252 AppProjectUpdated prometheus.Counter
5353 AppProjectDeleted prometheus.Counter
5454
55+ RepositoryCreated prometheus.Counter
56+ RepositoryUpdated prometheus.Counter
57+ RepositoryDeleted prometheus.Counter
58+
5559 EventReceived prometheus.Counter
5660 EventSent prometheus.Counter
5761
@@ -95,28 +99,41 @@ func NewPrincipalMetrics() *PrincipalMetrics {
9599
96100 ApplicationCreated : promauto .NewCounter (prometheus.CounterOpts {
97101 Name : "principal_applications_created" ,
98- Help : "The total number of applications created by agents " ,
102+ Help : "The total number of applications created on the control plane " ,
99103 }),
100104 ApplicationUpdated : promauto .NewCounter (prometheus.CounterOpts {
101105 Name : "principal_applications_updated" ,
102- Help : "The total number of applications updated by agents " ,
106+ Help : "The total number of applications updated on the control plane " ,
103107 }),
104108 ApplicationDeleted : promauto .NewCounter (prometheus.CounterOpts {
105109 Name : "principal_applications_deleted" ,
106- Help : "The total number of applications deleted by agents " ,
110+ Help : "The total number of applications deleted on the control plane " ,
107111 }),
108112
109113 AppProjectCreated : promauto .NewCounter (prometheus.CounterOpts {
110114 Name : "principal_app_projects_created" ,
111- Help : "The total number of app project created by agents " ,
115+ Help : "The total number of app project created on the control plane " ,
112116 }),
113117 AppProjectUpdated : promauto .NewCounter (prometheus.CounterOpts {
114118 Name : "principal_app_projects_updated" ,
115- Help : "The total number of app project updated by agents " ,
119+ Help : "The total number of app project updated on the control plane " ,
116120 }),
117121 AppProjectDeleted : promauto .NewCounter (prometheus.CounterOpts {
118122 Name : "principal_app_projects_deleted" ,
119- Help : "The total number of app project deleted by agents" ,
123+ Help : "The total number of app project deleted on the control plane" ,
124+ }),
125+
126+ RepositoryCreated : promauto .NewCounter (prometheus.CounterOpts {
127+ Name : "principal_repositories_created" ,
128+ Help : "The total number of repositories created on the control plane" ,
129+ }),
130+ RepositoryUpdated : promauto .NewCounter (prometheus.CounterOpts {
131+ Name : "principal_repositories_updated" ,
132+ Help : "The total number of repositories updated on the control plane" ,
133+ }),
134+ RepositoryDeleted : promauto .NewCounter (prometheus.CounterOpts {
135+ Name : "principal_repositories_deleted" ,
136+ Help : "The total number of repositories deleted on the control plane" ,
120137 }),
121138
122139 EventReceived : promauto .NewCounter (prometheus.CounterOpts {
0 commit comments