In this article we will talk about real-time monitoring of Atlassian applications.
But first, let us define what monitoring is and why it is important to monitor Atlassian applications.
Monitoring is used for measuring performance and availability of software applications. Another words, it visualizes the current state of an application in the real-time mode.
When is it useful to monitor Atlassian applications?
Here are a couple of examples:
It is also important not only to be able to view information about the current state of an application, but also receive notifications if something went wrong.
Prometheus can monitor thousands of services. Prometheus collects metrics as frequent as you defined, usting the pull-model, and stores collected metrics in the database. Also there is the Alert manager, which can send notifications to different channels, if an event has been triggered.
Prometheus exporter is an agent, which collects metrics from entities (a whole server or an application). Prometheus has rich capabilities for extending, that is why there are exporters for almost all popular applications.
[ jira | confluence | bitbucket | bamboo ]_exporter works the following way:
You can find an example of Prometheus/Grafana installation in Docker here. This example was kindly provided by Stefan Prodan.
First, you need to install the plugin for your Atlassian Application. You can find all plugins here. When the plugin has been installed, you can receive metrics by baseUrl/plugins/servlet/prometheus/metrics url.
You also can set up security keys.
Then you should add the reference to the metric collection servlet to the prometheus.yml. For example, for Jira it would look like this:
- job_name: 'jira'
scheme: https # change to http if don't you have https
- targets: ['myhost:2990'] # Jira host and port you serve
Installation and setup is finished. You can collect metrics.
(sum(rate(jira_request_duration_on_path_sum[1m])) by (path)) / (sum(rate(jira_request_duration_on_path_count[1m])) by (path))
More information about queries you can find here.
You can find a dashboard for Jira here.
Here is a dashboard for Confluence:
There are plans to let users define their own metircs, using the Groovy language. You will be able to collect your custom metrics not only from the Atlassian applications but also from other plugins. Also there will be metrics collected from Jira Service Desk.
All Prometheus exporters for Atlassian applications are open source and continuously gaining new features.
If your Atlassian instances are large and you need to ensure their stability, then you need to use monitoring. It is up to you to decide how to do it. Prometheus is one of the possible solutions to accomplish this task.
Alexey Matveev [cPrime]Community Leader
Hi everyone! My name’s Matt and I’m a product manager at Atlassian. I work in the navigation & findability space for all our Jira Cloud products. We’ve been working on trying to improve the exp...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events