For the complete documentation index, see llms.txt. This page is also available as Markdown.

IBM Cloud Functions Integration

Connect IBM Cloud Functions alerts to ilert to forward technical notifications for function failures and automate escalation to on‑call engineers.

IBM Cloud Function provides a service to run your application code without servers, scale it automatically, and pay nothing when it's not in use, with integrations with IBM Cloud services. Integrating IBM Cloud Functions with ilert enables technical alerts on execution failures or performance issues to reach on-call teams instantly. This ensures prompt attention to serverless function problems with clear escalation workflows and accountability.

In ilert: Create a IBM Cloud Functions alert source

  1. Go to Alerting → Alert sources and click Create new alert source.

  2. Search for IBM Cloud Functions, click its tile, and click Next.

  3. Give your alert source a name, optionally assign teams, and click Next.

  4. Choose who gets notified: select Use existing escalation policy and pick a policy, or Generate new escalation policy to start with a basic one that notifies you first. Click Next.

    The escalation step of the ilert alert source wizard, headed Who should be notified about alerts, with an escalation policy selected and a preview of its escalation rules below.
    Pick an existing escalation policy, or generate a basic one without leaving the wizard.
  5. Select Default grouping and click Continue setup. It groups events by the alert key the integration sets; the other grouping options are easier to judge once events are arriving.

  6. The next page shows more settings, such as notification priority and alert templates. Click Finish setup for now; you can change them later.

  7. On the final page, ilert shows the integration key and URL for this alert source. You will need them later in this guide.

In IBM Cloud Functions

  1. On IBM Cloud Functions dashboard, create an Action by clicking "Actions" -> "Create"

  1. Choose the name of your choice, in this case we will name it as "ilert-incidents", and choose "Node.js 12" as a runtime

  1. Paste the following on the code, and please replace the "ILERT_URL" with the IBM Cloud Functions URL that we got earlier on ilert's dashboard

  1. To trigger it, we need to pass the params, in this case click on "Invoke with parameters" on top right

  1. Put the following as a parameter, you can adjust the summary and details, however please replace the "API_KEY" **** with the IBM Cloud Functions API Key that we go on ilert's dashboard earlier and Apply the parameters

  1. To trigger the creation of incidents on ilert simple click "Invoke" on the top right, and it should create the incident on ilert

FAQ

  1. How to trigger the incident creation from other service?

    For more information about invoking from trigger in IBM Cloud Service, please refer to IBM Documentation: https://cloud.ibm.com/docs/openwhisk?topic=openwhisk-triggers

  2. Is it possible to manage the incident, for example to accept or resolve the incident?

    Yes it is possible if the eventType is passed with value ACCEPT or RESOLVE, this should accept and resolve the issue respectively. In addition to that, you need to pass the incidentKey parameter on creation as well. All the parameter on event creation will be accepted. For more information, please refer to our API Documentation: https://api.ilert.com/api-docs/#tag/Events/paths/~1events/post

Last updated

Was this helpful?