Integrate Monika with Pushbullet API

Denny Pradipta
Hyperjump Tech
Published in
4 min readDec 14, 2022
Pushbullet Logo

At Hyperjump, one of our priorities is improving Monika integrations with many collaboration tools. We have successfully integrated Monika with Telegram Bots, Slack, Microsoft Teams, Discord, and even WhatsApp too. In December 2022, we added Pushbullet to Monika’s growing channel choice.

Pushbullet is a popular service that allows users to easily push notifications, files, and other data between their devices and the web. By combining Pushbullet and Monika, you can easily get notifications from Monika, no matter what device you’re using. Let’s dive in and see how to set up this integration.

Getting the Pushbullet API access token

First, visit the Pushbullet website and sign up for an account if you haven’t already done so. Once you’ve signed up, click on your profile icon in the top-right corner of the screen, and then select “Settings” from the drop-down menu.

Settings Menu

On the Settings page, click on the “Account” tab and then select “Create Access Token” from the menu on the left.

Create Access Token

This will generate a unique API access token for your account. Copy this token and save it somewhere safe, as you’ll need it later on.

Generated access token

That’s it! You now have your Pushbullet API access token, which you can use to integrate Pushbullet with Monika.

Integrating Pushbullet with Monika

Monika is an open-source and free command-line application that allows you to monitor your website(s) for outages or slow services. The name Monika stands for “Monitoring Berkala” in Bahasa Indonesia.

With Monika, you can easily add as many websites as you want to monitor, and configure it to send notifications of any incidents through your preferred communication tools, such as SMTP mail, WhatsApp (it’s free!), Microsoft Teams, Slack, and more.

Monika can be installed using Node Package Manager (NPM), by downloading binaries from the Monika release page, or through package managers like Homebrew or Snapcraft.

Let’s create a configuration using the Access Token we previously saved.

The notifications section specifies a single notification channel that uses the pushbullet type. The data section for this channel includes a token field that should contain the Pushbullet API access token for the account you want to use to receive notifications.

The probes section specifies a single probe called "URI without credential". This probe will make a request to the specified URL (https://httpbin.org/delay/{{ number 0 2 }}) and will trigger an alert if the response time is greater than 1000 milliseconds. If two or more consecutive alerts are triggered, an incident will be generated. When two or more consecutive successful probes occur, the incident will be considered resolved.

Once we are ready, it’s time to run Monika with the configuration above by running monika -c monika.yml in your terminal. When there is an alert or an incident, it will show up in your Pushbullet dashboard.

Running Monika
Pushbullet notification

Congratulations! You have successfully integrated Monika with Pushbullet!

Closing

In this article, we discussed the integration of Monika with Pushbullet as a notification channel. This integration allows Monika users to easily receive notifications on their Pushbullet-enabled devices.

If you encounter any problems while using Monika, be sure to create an issue on Monika’s Github Issue Page. We also encourage you to share this article with your friends and colleagues if you found it useful.

Thanks for reading, and we hope you found this information helpful. Until next time!

Hyperjump is an open-source-first company providing engineering excellence service. We aim to build and commercialize open-source tools to help companies streamline, simplify, and secure the most important aspects of their modern DevOps practices.

--

--

Denny Pradipta
Hyperjump Tech

Full-stack developer who loves to explore new technologies. Uses MongoDB, Express, React, and Node daily. Regularly writing for Hyperjump Technologies.