argo-cd icon indicating copy to clipboard operation
argo-cd copied to clipboard

Export metrics for a number of daily users (dau)

Open andrii-korotkov-verkada opened this issue 1 year ago • 5 comments

Summary

Export a metric about how many distinct users of ArgoCD server were there in the last 24 hours (or maybe support a few other intervals).

Motivation

This can be great to evaluate how many people need to use the tool. It can be interpreted both ways - lower metric can also mean people don't have many issues and rely on autosync.

Proposal

Keep some counter with a rolling window on ArgoCD server and populate daily users from it.

andrii-korotkov-verkada avatar Nov 14 '24 20:11 andrii-korotkov-verkada

Is this issue still available

sathiya06 avatar Apr 03 '25 05:04 sathiya06

Sorry for the long reply, yeah, it's available, the linked PR doesn't address it IIUC.

andrii-korotkov-verkada avatar Apr 19 '25 16:04 andrii-korotkov-verkada

@andrii-korotkov-verkada @rumstead can you take a look at this PR. I have added a counter that increments whenever a user logs in.

I also looked into ways to accurately track the active users instead just counting request by using tools like ClickHouse. But it requires adding another tool just for this purpose which i figured is not what we are looking for.

sathiya06 avatar Jun 12 '25 05:06 sathiya06

I think the idea of ​​implementing daily user count metrics through login is good. However, I'm not sure if it's okay to collect new metrics every time log in.

I'm curious about other reviewers' opinions :)

sunyeongchoi avatar Jun 15 '25 07:06 sunyeongchoi

I am running 3.2.1 but I am not getting the metric. Is there anything I need to do to enable it?

raweber42 avatar Dec 01 '25 15:12 raweber42