Create notification endpoints (创建通知端点)
To send notifications about changes in your data, start by creating a notification endpoint to a third-party service. After creating notification endpoints, create notification rules to send alerts to third-party services on check statuses. (要发送关于数据更改的通知,请首先创建一个指向第三方服务的通知端点。创建通知端点后,创建通知规则,以便根据 检查状态 向第三方服务发送警报。)
Create a notification endpoint (创建通知端点)
In the navigation menu on the left, select Alerts > Alerts. (在左侧的导航菜单中,选择 **警报 > 警报**。)
Select Notification Endpoints. (选择 **通知端点**。)
Click Create. (点击 ** 创建**。)
From the Destination drop-down list, select a destination endpoint to send notifications to. (从 **目标** 下拉列表中,选择一个要将通知发送到的目标端点。)
In the Name and Description fields, enter a name and description for the endpoint. (在 **名称** 和 **描述** 字段中,输入端点的名称和描述。)
Enter information to connect to the endpoint (输入连接到端点的信息)
For HTTP, enter the URL to send the notification. Select the auth method to use: None for no authentication. To authenticate with a username and password, select Basic and then enter credentials in the Username and Password fields. To authenticate with an API token, select Bearer, and then enter the API token in the Token field. (**对于 HTTP**,输入用于发送通知的 **URL**。选择要使用的 **身份验证方法**:**无** 表示不进行身份验证。要使用用户名和密码进行身份验证,请选择 **Basic**,然后在 **用户名** 和 **密码** 字段中输入凭据。要使用 API 令牌进行身份验证,请选择 **Bearer**,然后在 **令牌** 字段中输入 API 令牌。)
For Slack, create an Incoming WebHook in Slack, and then enter your webHook URL in the Slack Incoming WebHook URL field. (**对于 Slack**,在 Slack 中创建一个 Incoming WebHook,然后在 **Slack Incoming WebHook URL** 字段中输入您的 webHook URL。)
For PagerDuty (对于 PagerDuty):
Create a new service, add an integration for your service, and then enter the PagerDuty integration key for your new service in the Routing Key field. (创建一个新服务,为您的服务添加集成,然后在 **路由密钥** 字段中输入您的新服务的 PagerDuty 集成密钥。)
The Client URL provides a useful link in your PagerDuty notification. Enter any URL that you’d like to use to investigate issues. This URL is sent as the
client_url
property in the PagerDuty trigger event. By default, the Client URL is set to your Monitoring & Alerting History page, and the following included in the PagerDuty trigger event (**客户端 URL** 在您的 PagerDuty 通知中提供了一个有用的链接。输入您想要用来调查问题的任何 URL。此 URL 作为 PagerDuty 触发事件中的 `client_url` 属性发送。默认情况下,**客户端 URL** 设置为您的监控和警报历史页面,以下内容包含在 PagerDuty 触发事件中)"client_url": "https://127.0.0.1:8086/orgs/<your-org-ID>/alert-history"
Click Create Notification Endpoint. (点击 **创建通知端点**。)
Was this page helpful? (此页对您有帮助吗?)
Thank you for your feedback! (感谢您的反馈!)
Support and feedback (支持和反馈)
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for InfluxDB and this documentation. To find support, use the following resources (感谢您成为我们社区的一员!我们欢迎并鼓励您提供关于 InfluxDB 和本文档的反馈和错误报告。要获得支持,请使用以下资源)
Customers with an annual or support contract can contact InfluxData Support. (**拥有年度或支持合同的客户** 可以 联系 InfluxData 支持。)