feat(metrics): add total number of attachments metric
This commit is contained in:
@ -64,6 +64,10 @@ func setupMetrics(a *echo.Group) {
|
||||
metrics.FilesCountKey,
|
||||
files.File{},
|
||||
},
|
||||
{
|
||||
metrics.AttachmentsCountKey,
|
||||
models.TaskAttachment{},
|
||||
},
|
||||
} {
|
||||
// Set initial totals
|
||||
total, err := models.GetTotalCount(c.Type)
|
||||
|
Reference in New Issue
Block a user