文档文档

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 (创建通知端点)

  1. In the navigation menu on the left, select Alerts > Alerts. (在左侧的导航菜单中,选择 **警报 > 警报**。)

  2. Select Notification Endpoints. (选择 **通知端点**。)

  3. Click Create. (点击 ** 创建**。)

  4. From the Destination drop-down list, select a destination endpoint to send notifications to. (从 **目标** 下拉列表中,选择一个要将通知发送到的目标端点。)

  5. In the Name and Description fields, enter a name and description for the endpoint. (在 **名称** 和 **描述** 字段中,输入端点的名称和描述。)

  6. 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"
        
  7. Click Create Notification Endpoint. (点击 **创建通知端点**。)


Was this page helpful? (此页对您有帮助吗?)

Thank you for your feedback! (感谢您的反馈!)


The future of Flux (Flux 的未来)

Flux is going into maintenance mode. You can continue using it as you currently are without any changes to your code. (Flux 将进入维护模式。您可以继续像现在这样使用它,而无需对代码进行任何更改。)

Read more (阅读更多)

InfluxDB 3 Open Source Now in Public Alpha (InfluxDB 3 开源版本现已发布公开 Alpha 版)

InfluxDB 3 Open Source is now available for alpha testing, licensed under MIT or Apache 2 licensing. (InfluxDB 3 开源版本现已可用于 Alpha 测试,并根据 MIT 或 Apache 2 许可授权。)

We are releasing two products as part of the alpha. (我们正在发布两个产品作为 Alpha 的一部分。)

InfluxDB 3 Core 是我们的全新开源产品。它是一个用于时间序列和事件数据的近期数据引擎。 InfluxDB 3 Enterprise 是一个商业版本,它建立在 Core 的基础上,增加了历史查询功能、读取副本、高可用性、可扩展性和细粒度安全控制。

有关如何开始使用的更多信息,请查看