Connecting your MongoDB data to PagerDuty by writing SQL queries is easy with LogicLoop. You can automatically schedule your monitoring to run every minute, every hour, every day, every week, and everything in between. LogicLoop's collaborate UI dashboard is intuitive and any business analyst who knows SQL can set up a connection quickly without needing an engineer.
The first step is to connect your MongoDB data source. We also support other popular databases like Postgres, MySQL, AWS RDS, or a data warehouse like Redshift, BigQuery, or you can even grab data from APIs like Stripe, Slack, and Twilio. Once you've signed up for your LogicLoop account, all you have to do is to go under the data sources tab in your LogicLoop dashboard and enter your database credentials.
The next step is to write your SQL query. You can go into your LogicLoop dashboard and add a new rule. Select your data source and you will see the relevant tables and columns you can query. The SQL query can be written to capture the logic and data set you need to express what you want to run your integration on. Run your SQL query and you will see the results show up on the bottom.
Next, click the "View Action" button on the bottom left corner of your rule's page to have your SQL query trigger an PagerDuty alert. You can set up your alert to trigger once per row returned, or once on the entire result set. You can also turn on deduplication if you do not want to re-alert on an item you've flagged before. LogicLoop is very flexible and you can pipe your alert into any number of services such as Slack, JIRA, or a ticketing system via a webhook call to whatever downstream service you want to set up. You can transform and inject the data from your SQL query into your downstream service so it has the information it needs to take the next step. LogicLoop also records the history of all actions taken on the platform so you can see a log of every time the SQL query ran and took an action.
Here's an example of what a LogicLoop alert could look like in PagerDuty.
Setting up automations on top of your database using SQL dead simple with LogicLoop. Get started today in just 15 minutes!