As an admin, I would like to monitor the license count via JMX

XMLWordPrintable

    • Type: Suggestion
    • Resolution: Unresolved
    • None
    • Component/s: None
    • 9
    • 3

      Problem Definition

      Considering that users can be programmatically created or provisioned from external user directory systems and that once the license count is exceeded Bitbucket becomes Read-Only, it is critical to monitor the license usage to quickly react when the active users is approaching the threshold or it is reached.

      Suggested Solution

      Provide JMX counters for monitoring the license details.

      For example, Jira exposes the jira.license counter which provides the following:

      The types of licenses you have, the number of active users, and the maximum number of users available for each license type.

      Workaround

      The Bitbucket REST API provides an endpoint to query for licensed users.

      Here is an example

      $ ADMIN_USER=admin
      $ ADMIN_PASS=admin
      $ curl -u $ADMIN_USER:$ADMIN_PASS -X GET <bitbucket_url>/rest/api/1.0/users?permission=LICENSED_USER > /tmp/users
      

      More options are available on the How do I find which users count against my bitbucket server license article.

            Assignee:
            Unassigned
            Reporter:
            Caterina Curti
            Votes:
            17 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: