Chever-John commented on a change in pull request #6616: URL: https://github.com/apache/apisix/pull/6616#discussion_r835710835
########## File path: docs/zh/latest/plugins/datadog.md ########## @@ -0,0 +1,147 @@ +--- +title: datadog +--- + +<!-- +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +--> + +## 简介 + +`datadog` 是 Apache APISIX 内置的监控插件,可与 [Datadog](https://www.datadoghq.com/)(云应用最常用的监控和可观测性平台之一)无缝集成。`datadog` 插件支持对每个请求和响应周期进行多种指标参数的获取,这些指标参数基本反映了系统的行为和健康状况。 + +该插件通过 UDP 协议将其自定义指标推送给 DogStatsD 服务器,该服务器与 Datadog Agent 捆绑在一起(关于如何安装 Datadog Agent,请参考[Agent](https://docs.datadoghq.com/agent/) )。DogStatsD 基本上是 StatsD 协议的实现,它将收集到的 Apache APISIX 代理的自定义指标聚合成单个数据点,并发送到设置的 Datadog 服务器上。更多关于 DogStatsD 的信息,请参考 [DogStatsD](https://docs.datadoghq.com/developers/dogstatsd/?tab=hostagent) 。 + +`datadog` 插件具有将多个指标参数组成一个批处理统一推送给外部 Datadog Agent 的能力,并且可以重复使用同一个数据包套接字。 + +这样的功能可以有效解决日志数据不及时发送的问题,因为当生成一个批处理,并对其做了恰当的配置 (比如对 `inactive_timeout` 参数进行配置) 之后。批处理器便会在配置时间(默认是 5s)内发送日志数据。 Review comment: I change it to `此功能可以有效解决日志数据不及时发送的问题。在生成一个批处理后,通过对 `inactive_timeout` 参数进行配置,批处理器便会在配置时间(默认是 5s)内自动发送日志数据。` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org