This tutorial will show you how to integrate Monika with Pushover to get your Monika notifications through your Pushover clients.
To use Pushover with Monika, head to https://pushover.net and create an account. Then, you need to confirm your email. After that, log in to the dashboard and pay attention to the “Your User Key”. Save the user key to a safe place as we are going to need it later.
Then, scroll down to the bottom of the page. Click the Create a new Application/API Token. Fill out the forms, and click Create Application. You should see your API Token/Key. Save the token to a safe place as we are going to need it later.
After you created the API Token, go back to the main Dashboard. Then, click the Add Phone, Tablet, or Desktop. For this case, use the Pushover for Desktop. Then, enter your Device Name and click Register Web Browser. You will be redirected to your created Pushover desktop client.
Once that’s done, it’s time to configure Monika to integrate with the Pushover desktop client.
Now that we have our User and API Token from Pushover, it’s time to create a Monika configuration called monika.yml
notifications:- id: pushover-notificationtype: pushoverdata:token: <YOUR_PUSHOVER_API_TOKEN>user: <YOUR_PUSHOVER_USER_KEY>probes:- id: 6a31bcff-48f1-40b0-98aa-8c7610f4f428name: Localhostdescription: ''requests:- url: http://localhost:8080/healthmethod: GETheaders: {}body: '{}'timeout: 0alerts:- query: response.status < 200 or response.status > 299message: HTTP Status is not 200- query: response.time > 2000message: Response time is more than 2000ms
Let’s take a look at the configuration above:
Once that’s done, run Monika with the configuration above with the command monika -c monika.yml
Congratulations! You have successfully integrated Monika with Pushover! Note that Pushover integration is only available from the Monika version 1.8.0.
PT Artha Rajamas Mandiri (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 its modern DevOps practices.
Copyright © 2024 Hyperjump Tech. All Rights Reserved.