As teams continue to become more agile and move at the speed of light, instant, and efficient communication is an ever-expanding need. Not to mention the fact that the team that memes together, wins together. And Slack is leading software for instant communication and team collaboration here. This partnership is the next best step to continue providing the best of breed collaboration and communication software for Atlassian’s customers.

We at Cprime embrace the Slack integration with open arms!  Here’s a deep dive into how we do this using Atlassian JiraPrometheusPrometheus Exporter PRO for Jira, and Slack.

First, we create a Slack channel where the Prometheus alert manager will post alerts. Those alerts are triggered by metrics taken from Atlassian Jira with Prometheus Exporter PRO for Jira.

Then, Prometheus Exporter PRO provides endpoints to expose Atlassian application metrics to Prometheus so that you can monitor application health, diagnose anomalies in real-time, respond quickly without affecting production, convert metrics into charts, and centralized monitoring location.

So, why wait? There’s no better time to integrate Jira, Prometheus (Alertmanager), and Slack than today. Just follow the instructions below.

 

Here’s how it works

It’s easy, straightforward, and only takes 15 minutes of your time.

Practice time!

We will run Jira and Prometheus in Docker using the Idalko Jira image.

  1. Run Jira
    1. Create and a run a docker-compose.yml file
    2. Install the Prometheus Exporter PRO for Jira app
  2. Run Prometheus
    1. Create a docker-compose.yml file
    2. Create prometheus.yml in data/Prometheus/config folder
    3. Create rules.yml in data/Prometheus/config folder
  3. Go to your Slack and configure Incoming Webhooks for the channel where you want to see alerts.
    1. Create alertmanager.yml in data/alertmanager/config folder
    2. Run with docker-compose.

…and voilà! You’re all set.


Time to see it in action

Let’s take several simple examples to test the alerts:

  1. Add one more user in your Jira and you will get a notification in the alerts channel in Slack. If you remove this user, you will get a message into the Slack channel that the issue has been resolved.
  2. Stop Jira containers and you will get a notification in the alerts channel in Slack that Jira is down. If you run Jira containers again, you will get a message in the Slack channel that the issue has been resolved.


Send an alert to Slack when there are too many users in your instance

  1. Add more users into your Jira.
  2. Check if the Prometheus metric was updated.
  3. Confirm the alert was detected.
  4. You will get a notification on the alerts channel in Slack.

    If you remove this user, you will get a message in the Slack channel that the issue has been resolved.

Send an alert to Slack if your Jira is down

  1. Stop your Jira containers and check if the Prometheus metric was detected by the Alertmanager.
  2. You will get a notification in the alerts channel in Slack that your Jira is down.

    If you run Jira containers again, you will get a message in the Slack channel that the issue has been resolved.

We have a lot in store for the app so stay tuned for new versions and releases. If you have an idea – let’s hear it! Share your idea with us at products@cprime.com, and we’ll be in touch.

 

 



Tagged with: , , , , , , , , , , ,

Categorized in: , , , , , , , , , ,