1
0

feat(metrics): add total number of attachments metric

This commit is contained in:
kolaente
2023-12-03 15:30:39 +01:00
parent fd0b2d103d
commit cca42b9188
3 changed files with 49 additions and 11 deletions

View File

@ -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)