Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-11382

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

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • None
    • None
    • 10
    • We collect Bitbucket feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      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.

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

                Created:
                Updated: