diff options
author | Tobias Balle-Petersen <tobiasbp@gmail.com> | 2025-05-07 20:00:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-07 18:00:53 +0000 |
commit | 020e774b915512815637aac743ddbe595c5eede5 (patch) | |
tree | 9ef635994102fc455065ad03dc52a1834a9c9f38 /services/gitdiff/submodule_test.go | |
parent | dd886d729f6206ad878aa5e0f0f3d4d20ea9a208 (diff) | |
download | gitea-020e774b915512815637aac743ddbe595c5eede5.tar.gz gitea-020e774b915512815637aac743ddbe595c5eede5.zip |
feat: add label 'state' to metric 'gitea_users' (#34326)
This PR adds the label _state_ to the metric _gitea_users_. With the
change, _gitea_users_ would be reported like this:
```
...
# HELP gitea_users Number of Users
# TYPE gitea_users gauge
gitea_users{state="active"} 20
gitea_users{state="inactive"} 10
...
```
The metrics above would be from a Gitea instance with 30 user accounts.
20 of the accounts are active and 10 of the accounts are not active.
Resolve #34325
Diffstat (limited to 'services/gitdiff/submodule_test.go')
0 files changed, 0 insertions, 0 deletions