Skip to content

Add label 'is_active' to 'gitea_users' metric. #34325

Closed
@tobiasbp

Description

@tobiasbp

Feature Description

Currently, the metric gitea_users returns the number of user accounts in Gitea regardless of their active status.

I would like to add the label is_active to the metric, so gitea_users would be reported like this:

...
# HELP gitea_users Number of Users
# TYPE gitea_users gauge
gitea_users{is_active="true"} 20
gitea_users{is_active="false"} 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.

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/proposalThe new feature has not been accepted yet but needs to be discussed first.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions