AndreyVMarkelov / prom-bitbucket-exporter

Prometheus Exporter for Bitbucket
https://marketplace.atlassian.com/plugins/ru.andreymarkelov.atlas.plugins.prom-bitbucket-exporter/server/overview
BSD 2-Clause "Simplified" License
51 stars 21 forks source link

Add metric for maximum allowed users #19

Closed chrisipa closed 5 years ago

chrisipa commented 5 years ago

Hi @AndreyVMarkelov ,

thanks for your great work on this Prometheus Bitbucket exporter. Could you please also add this metric here?

bitbucket_allowed_users_gauge

This metric is pretty important for us to send alarms if we only have a few bitbucket licences left. Here's an example alert rule for Prometheus which would notify us in case of 80% of the licences used:

bitbucket_active_users_gauge / bitbucket_allowed_users_gauge * 100 > 80

You already have comparable metrics for your JIRA and Confluence exporters.

Thank you very much.

Best regards Chris

AndreyVMarkelov commented 5 years ago

Done

chrisipa commented 5 years ago

Wow that was really quick. I have tested the new release and everything works as expected. Great job.