Vous pouvez configurer des alertes afin de recevoir une notification lorsqu'un événement se produit. Par exemple, vous pouvez créer une alerte pour être averti en cas d'échec de l'authentification par une intégration.
Vous pouvez définir des alertes de deux manières :
Vous pouvez créer et configurer des alertes Cloud Monitoring pour recevoir une notification lorsqu'une ressource Application Integration dépasse un seuil spécifié. Par exemple, vous pouvez créer une alerte pour être averti lorsque le nombre total de données traitées pour une intégration dépasse une valeur seuil spécifiée, ou si le nombre d'exécutions de l'intégration dépasse une certaine limite.
Pour en savoir plus sur les alertes dans Cloud Monitoring, consultez la page Présentation des alertes.
Avant de commencer
Assurez-vous que le rôle IAM Éditeur Monitoring (roles/monitoring.editor) est attribué à votre projet Google Cloud. Pour en savoir plus sur l'attribution de rôles, consultez la section Gérer les accès.
Pour en savoir plus sur les concepts généraux des règles d'alerte, consultez la page Présentation des alertes.
Pour sélectionner la ressource, la métrique et les filtres pour l'Application Integration, procédez comme suit :
Cliquez sur Sélectionner une métrique.
Dans le champ de saisie Filtrer par nom de ressource ou de métrique, saisissez le nom Integration Version et sélectionnez-le.
Dans le menu Catégories de métriques actives, sélectionnez un type de métriques, puis Métriques actives. Pour obtenir la liste des types de métriques, consultez la section Type de métrique d'intégration.
Cliquez sur Appliquer.
Cliquez sur Suivant pour ouvrir la section Configurer un déclencheur d'alerte.
Définissez une valeur de seuil pour déclencher l'alerte.
Cliquez sur Suivant pour ouvrir le volet Configurer les notifications et finaliser l'alerte.
(Facultatif) Pour ajouter des notifications à votre règle d'alerte, cliquez sur Canaux de notification, puis sélectionnez un ou plusieurs canaux de notification dans la liste déroulante. puis sur OK.
Pour recevoir une notification en cas d'ouverture et de fermeture d'un incident, cochez la case Notifier en cas de fermeture des incidents. Par défaut, les notifications ne sont envoyées que lorsque des incidents sont ouverts.
(Facultatif) Utilisez le champ de texte Documentation pour saisir les informations à inclure dans le message de notification.
Cliquez sur Nom de l'alerte et saisissez un nom pour la règle d'alerte.
Les alertes sont envoyées aux contacts essentiels configurés dans votre projet Google Cloud. Pour en savoir plus sur l'ajout de contacts essentiels, consultez la page Gérer les contacts pour les notifications.
Alertes dans Cloud Logging
Vous pouvez créer et configurer des alertes basées sur les journaux pour recevoir une notification lorsqu'un message spécifique apparaît dans l'un des journaux inclus dans votre sélection. Par exemple, voici quelques cas d'utilisation pour lesquels vous pouvez créer une alerte basée sur les journaux: messages correspondant à un modèle spécifique, échec d'exécution de l'intégration, journal correspondant à une gravité spécifique et intégrations dont le temps d'exécution dépasse une certaine valeur.
Créer une alerte
Vous pouvez créer des alertes basées sur les journaux à partir de la page Explorateur de journaux de la consoleGoogle Cloud ou en utilisant l'API Monitoring. Pour obtenir des instructions détaillées, consultez les sections suivantes :
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/09/03 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Difficile à comprendre","hardToUnderstand","thumb-down"],["Informations ou exemple de code incorrects","incorrectInformationOrSampleCode","thumb-down"],["Il n'y a pas l'information/les exemples dont j'ai besoin","missingTheInformationSamplesINeed","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/09/03 (UTC)."],[[["\u003cp\u003eApplication Integration allows users to configure alerts for various events, such as authentication failures or exceeding integration data processing thresholds.\u003c/p\u003e\n"],["\u003cp\u003eAlerts can be set up through Cloud Monitoring, enabling notifications when an Application Integration resource surpasses specified thresholds.\u003c/p\u003e\n"],["\u003cp\u003eCloud Logging can be used to create log-based alerts, notifying users when specific messages, such as failed integration executions or high execution times, appear in their logs.\u003c/p\u003e\n"],["\u003cp\u003eCreating alerts in Cloud Monitoring involves selecting the 'Integration Version' resource, choosing a metric type, setting a trigger threshold, and configuring notification channels.\u003c/p\u003e\n"],["\u003cp\u003eUsers must have the Monitoring Editor IAM role and configure notification channels to create and receive alerts, and essential contacts must be configured to receive the alerts.\u003c/p\u003e\n"]]],[],null,["# Configure alerts\n\nSee the [supported connectors](/integration-connectors/docs/connector-reference-overview) for Application Integration.\n\nConfigure alerts\n================\n\nYou can configure alerts to notify you when an event occurs. For example, you can create an alert\nto notify you when there is an authentication failure by an integration.\n\nYou can set alerts in the following two ways:\n\n- [Alerts in Cloud Monitoring](#alert-cloud-monitoring)\n- [Alerts in Cloud Logging](#alert-cloud-logging)\n\nAlerts in Cloud Monitoring\n--------------------------\n\nYou can create and configure Cloud Monitoring alerts to notify you when an Application Integration resource exceeds a specified threshold. For example, you can create an alert to notify you when the total data processed for an integration exceeds a specified threshold value or if integration execution count reaches beyond a certain limit.\n\nFor more information about alerting in Cloud Monitoring, see [Alerting overview](/monitoring/alerts).\n\n### Before you begin\n\n- Make sure that you have the **Monitoring Editor (`roles/monitoring.editor`)** IAM role granted on your Google Cloud project. For information about granting roles, see [Manage access](/iam/docs/granting-changing-revoking-access).\n- Learn about the general concepts of alerting policies, see [Alerting overview](/monitoring/alerts).\n- Configure notification channels to receive alerts, see [Create and manage notification channels](/monitoring/support/notification-options).\n\n### Create an alert\n\n1. In the Google Cloud console, go to the **Monitoring \\\u003e Alerting** page.\n\n [Go to Alerting](https://console.cloud.google.com/monitoring/alerting)\n2. Click **+ Create Policy**.\n3. To select the resource, metric, and filters for Application Integration, follow these steps:\n 1. Click **Select a metric**.\n 2. In the **Filter by resource or metric name** input field, enter `Integration Version` and select it.\n 3. In the **Active metric categories** menu, select a metric type, and then **Active Metrics** . For a list of metric types, see [integrations metric type](/monitoring/api/metrics_gcp_i_o#gcp-integrations).\n 4. Click **Apply**.\n4. Click **Next** to open the **Configure alert trigger** section.\n5. Set a threshold value to trigger the alert.\n6. Click **Next** to open the **Configure notifications and finalize alert** section.\n7. (Optional) To add notifications to your alerting policy, click **Notification channels** and select one or more notification channels from the drop-down list. Click **OK** .\n\n To be notified when incidents are opened and closed, check\n **Notify on incident closure**. By default, notifications are sent only when\n incidents are opened.\n8. (Optional) Use the **Documentation** text field to enter any information that you want included in a notification message.\n9. Click **Alert policy name** and enter a name for the alerting policy.\n10. Click **Create Policy**.\n\nFor more sample alerts, see [Alert policy templates for Application Integration](https://github.com/GoogleCloudPlatform/monitoring-dashboard-samples/tree/master/alerts/google-application-integration).\n\nThe alerts are sent to the essential contacts configured in your Google Cloud Project. For\nmore information on adding essential contacts, see\n[Managing contacts for notifications](/resource-manager/docs/managing-notification-contacts).\n\nAlerts in Cloud Logging\n-----------------------\n\nYou can create and configure log-based alerts to notify you whenever a specific message\nappears in your included logs. For example, the following lists some use cases for which you can create a log-based alert: messages that match a specific pattern, failed integration execution status, specific severity log, and integrations with an execution time time higher than certain value.\n\n### Create an alert\n\nYou can create log-based alerts from the **Logs Explorer** page in the\nGoogle Cloud console or by using the Monitoring API. For detailed instructions, see\nthe following sections:\n\n- [Create a log-based alert by\n using the Logs Explorer](/logging/docs/alerting/log-based-alerts#lba-definition)\n- [Create a\n log-based alert by using the Monitoring API](/logging/docs/alerting/log-based-alerts#lba-by-api)\n\n| **Note:** You may incur additional charges for using Cloud Monitoring API directly. For more information, see [Cloud Monitoring pricing](/monitoring#section-7).\n\nWhat's next\n-----------\n\n- Learn more about [configuring log-based alerts](/logging/docs/alerting/log-based-alerts)."]]