kayx23 commented on code in PR #1629: URL: https://github.com/apache/apisix-website/pull/1629#discussion_r1248347429
########## blog/zh/blog/2023/06/30/release-apache-apisix-3.4.0.md: ########## @@ -0,0 +1,112 @@ +--- +title: "Release Apache APISIX 3.4.0" +authors: + - name: "Xin Rong" + title: "Author" + url: "https://github.com/AlinsRan" + image_url: "https://avatars.githubusercontent.com/u/79972061?v=4" + - name: "Traky Deng" + title: "Technical Writer" + url: "https://github.com/kayx23" + image_url: "https://avatars.githubusercontent.com/u/39619599?v=4" +keywords: +- Apache APISIX +- API Gateway +- API Management Platform +- New Release +- Cloud Native +description: Apache APISIX 3.4.0 版本于2023年6月30日发布。此版本新增了一个适用于 Grafana Loki 的插件,允许在路由级别上建立 mTLS 连接,并进行性能优化,不断提升 APISIX 的用户体验。 +tags: [Community] +--- + +我们很高兴地介绍 Apache APISIX 3.4.0,它带来了令人兴奋的新功能和性能改进。 + +此版本提供了一个新的插件 `loki-logger`,可将日志转发到 [Grafana Loki](https://grafana.com/oss/loki/),并允许在路由级别上建立 mTLS 连接。此外,此版本还还引入了许多新的特性,旨在优化对 APISIX 的使用体验。 + +## 新功能 + +### 使用 `loki-logger` 插件支持与 Grafana Loki 集成 + +`loki-logger` 插件被用于将日志转发到 [Grafana Loki](https://grafana.com/oss/loki/) 进行分析和存储。 + +启用插件后,APISIX 会将请求上下文信息序列化为[JSON 格式的 Log 条目](https://grafana.com/docs/loki/latest/api/#push-log-entries-to-loki),并将其提交到批处理队列。当队列条件满足时数据将被推送到 Grafana Loki。 + +例如,您可以在特定路由上启用 `loki-logger` 插件: + +```shell +curl http://127.0.0.1:9180/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d ' +{ + "plugins": { + "loki-logger": { + "endpoint_addrs" : ["http://127.0.0.1:3100"] + } + }, + "upstream": { + "nodes": { + "127.0.0.1:1980": 1 + }, + "type": "roundrobin" + }, + "uri": "/hello" +}' +``` + +如果成功,APISIX 日志将被转发到运行在 `http://127.0.0.1:3100` 上的 Loki。 + +有关该插件的更多信息,请参见 `loki-logger` [插件文档](https://github.com/apache/apisix/blob/release/3.4/docs/en/latest/plugins/loki-logger.md)。 Review Comment: did not locate chinese doc for this -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
