mirror of
https://github.com/go-vikunja/vikunja.git
synced 2025-12-05 19:16:51 -06:00
[PR #1330] feat: Add tasks_completed_total Prometheus metric #1425
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/go-vikunja/vikunja/pull/1330
Author: @s1lverkin
Created: 8/21/2025
Status: 🔄 Open
Base:
main← Head:patch-2📝 Commits (2)
e37c24dUpdate tasks.go5037a31Update metrics.go📊 Changes
2 files changed (+19 additions, -0 deletions)
View changed files
📝
pkg/metrics/metrics.go(+10 -0)📝
pkg/models/tasks.go(+9 -0)📄 Description
This commit introduces a new Prometheus metric,
vikunja_tasks_completed_total, to monitor user productivity and instance activity.The counter is incremented every time a task is marked as complete (i.e., its 'done' status changes from false to true). This provides valuable insight into how actively the platform is being used.
Changes include:
pkg/metrics/metrics.go.IncCounthelper function for easier metric manipulation.Updatemethod inpkg/models/tasks.go.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.