DBmarlin Integration
Create alerts in ilert from DBmarlin alert rules — with ilert's DBmarlin inbound integration.
DBmarlin is a database observability and performance monitoring tool that tracks database instances, hosts, and the changes that affect them. Its alert rules watch statistics such as query time, executions, or host CPU and fire when a threshold is breached. With this integration, DBmarlin alert rules automatically create alerts in ilert, so the right responders are notified and escalations happen reliably.
In ilert: Create a DBmarlin alert source
Go to Alerting → Alert sources and click on Create new alert source

Search for DBmarlin in the search field, click on the tile and click on Next.

Give your alert source a name, optionally assign teams and click Next.
Select an escalation policy by creating a new one or assigning an existing one.

Select your Alert grouping preference and click Continue setup. You may click Do not group alerts for now and change it later.

The next page shows additional settings such as custom alert templates or notification priority. Click on Finish setup for now.
On the final page, ilert generates a webhook URL for your alert source in the form
https://api.ilert.com/api/v1/events/dbmarlin/<api-key>. Copy it — you will need it in the next section. You can find it again later under the alert source's Settings tab.
In DBmarlin: Enable the Webhook integration
In the DBmarlin sidebar, go to Settings --> Integrations.

In the Alert notification section, find the Webhook row and click on Edit.

Click on Create to add a new webhook integration.

In DBmarlin: Create the ilert webhook
Fill in the Create Webhook Integration form:
Name: a name for the webhook, for example
ilert webhookWebhook URL: the webhook URL you copied from your ilert alert source
DBmarlin URL: the base URL of your DBmarlin installation, for example
http://localhost:9090. DBmarlin uses it to build the deep link that is sent to ilert asdbmarlinUrl, so responders can jump straight from the ilert alert into DBmarlin.Headers: click on Add Header and add
Content-Typewith the valueapplication/jsonContent Template: the payload for database instance alert rules — copy and paste the template from Content template below
Host Content Template: the payload for host alert rules — copy and paste the template from Host content template below

Then save the webhook and make sure both the webhook itself and the Webhook integration on the Integrations page are toggled to Enabled.
Finally, attach the webhook to your alert rules: mark it as Default so every alert rule uses it, or select it on individual rules under Settings --> Alert Rules.
Content template
Used for alert rules on database instances. The datasourceName field carries the name of the monitored instance.
Host content template
Used for alert rules on hosts. Instead of datasourceName it carries eventType, which DBmarlin populates with the substitution variable <startedended> — that is, whether the alert condition started or ended.
When an alert rule fires, DBmarlin renders the matching template and posts it to ilert, which creates an alert.
FAQ
Will alerts in ilert be resolved automatically?
Yes, for alert rules that send the eventType field: ilert resolves the corresponding alert as soon as DBmarlin sends the event with eventType set to ended. This field is part of the host content template. If you also want database instance alerts to resolve automatically, add "eventType": "<startedended>", to the content template.
The ilert alert does not link back to DBmarlin. What is wrong?
Check the DBmarlin URL field of the webhook. It must be a URL that your responders can actually reach — http://localhost:9090 only works on the DBmarlin host itself, so use the externally reachable hostname of your DBmarlin installation instead.
Last updated
Was this helpful?