You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/12/13 07:26:41 UTC
[GitHub] [apisix-website] SylviaBABY opened a new pull request #809: docs: add Monitor Ingress Controller with Prometheus blog
SylviaBABY opened a new pull request #809:
URL: https://github.com/apache/apisix-website/pull/809
Changes:
add Monitor APISIX Ingress Controller with Prometheus blog
--
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-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-website] netlify[bot] commented on pull request #809: docs: add Monitor Ingress Controller with Prometheus blog
Posted by GitBox <gi...@apache.org>.
netlify[bot] commented on pull request #809:
URL: https://github.com/apache/apisix-website/pull/809#issuecomment-992180553
👷 Deploy Preview for *apache-apisix* processing.
🔨 Explore the source changes: 4476f6e79a0de3b5276f5df13a2d2ffef334ac33
🔍 Inspect the deploy log: [https://app.netlify.com/sites/apache-apisix/deploys/61b6f5a82f245d0008c9b844](https://app.netlify.com/sites/apache-apisix/deploys/61b6f5a82f245d0008c9b844)
--
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-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-website] netlify[bot] edited a comment on pull request #809: docs: add Monitor Ingress Controller with Prometheus blog
Posted by GitBox <gi...@apache.org>.
netlify[bot] edited a comment on pull request #809:
URL: https://github.com/apache/apisix-website/pull/809#issuecomment-992180553
👷 Deploy Preview for *apache-apisix* processing.
🔨 Explore the source changes: 81ee4a43e444c5d79e9a7ed2ea782318cb243235
🔍 Inspect the deploy log: [https://app.netlify.com/sites/apache-apisix/deploys/61b6fa82c896930008afb6f5](https://app.netlify.com/sites/apache-apisix/deploys/61b6fa82c896930008afb6f5)
--
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-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-website] netlify[bot] edited a comment on pull request #809: docs: add Monitor Ingress Controller with Prometheus blog
Posted by GitBox <gi...@apache.org>.
netlify[bot] edited a comment on pull request #809:
URL: https://github.com/apache/apisix-website/pull/809#issuecomment-992180553
👷 Deploy Preview for *apache-apisix* processing.
🔨 Explore the source changes: 10bf3cb78b8140445ce42c96726a9aadc8168416
🔍 Inspect the deploy log: [https://app.netlify.com/sites/apache-apisix/deploys/61b70192a8fce300072b916a](https://app.netlify.com/sites/apache-apisix/deploys/61b70192a8fce300072b916a)
--
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-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-website] netlify[bot] edited a comment on pull request #809: docs: add Monitor Ingress Controller with Prometheus blog
Posted by GitBox <gi...@apache.org>.
netlify[bot] edited a comment on pull request #809:
URL: https://github.com/apache/apisix-website/pull/809#issuecomment-992180553
✔️ Deploy Preview for *apache-apisix* ready!
🔨 Explore the source changes: 8c70d734e25aba6e4921e51a230bcfbb6f71e36b
🔍 Inspect the deploy log: [https://app.netlify.com/sites/apache-apisix/deploys/61b6f628fc7d5d0007db232b](https://app.netlify.com/sites/apache-apisix/deploys/61b6f628fc7d5d0007db232b)
😎 Browse the preview: [https://deploy-preview-809--apache-apisix.netlify.app](https://deploy-preview-809--apache-apisix.netlify.app)
--
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-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-website] bzp2010 merged pull request #809: docs: add Monitor Ingress Controller with Prometheus blog
Posted by GitBox <gi...@apache.org>.
bzp2010 merged pull request #809:
URL: https://github.com/apache/apisix-website/pull/809
--
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-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-website] netlify[bot] edited a comment on pull request #809: docs: add Monitor Ingress Controller with Prometheus blog
Posted by GitBox <gi...@apache.org>.
netlify[bot] edited a comment on pull request #809:
URL: https://github.com/apache/apisix-website/pull/809#issuecomment-992180553
--
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-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-website] netlify[bot] edited a comment on pull request #809: docs: add Monitor Ingress Controller with Prometheus blog
Posted by GitBox <gi...@apache.org>.
netlify[bot] edited a comment on pull request #809:
URL: https://github.com/apache/apisix-website/pull/809#issuecomment-992180553
✔️ Deploy Preview for *apache-apisix* ready!
🔨 Explore the source changes: 81ee4a43e444c5d79e9a7ed2ea782318cb243235
🔍 Inspect the deploy log: [https://app.netlify.com/sites/apache-apisix/deploys/61b6fa82c896930008afb6f5](https://app.netlify.com/sites/apache-apisix/deploys/61b6fa82c896930008afb6f5)
😎 Browse the preview: [https://deploy-preview-809--apache-apisix.netlify.app](https://deploy-preview-809--apache-apisix.netlify.app)
--
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-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-website] yzeng25 commented on a change in pull request #809: docs: add Monitor Ingress Controller with Prometheus blog
Posted by GitBox <gi...@apache.org>.
yzeng25 commented on a change in pull request #809:
URL: https://github.com/apache/apisix-website/pull/809#discussion_r767481907
##########
File path: website/i18n/zh/docusaurus-plugin-content-blog/2021/12/13/monitor-apisix-ingress-controller-with-prometheus.md
##########
@@ -0,0 +1,194 @@
+---
+title: "使用 Prometheus 监控 APISIX Ingress Controller"
+authors:
+ - name: "张超"
+ title: "Author"
+ url: "https://github.com/tokers"
+ image_url: "https://avatars.githubusercontent.com/u/10428333?v=4"
+ - name: "苏钰"
+ title: "Technical Writer"
+ url: "https://github.com/SylviaBABY"
+ image_url: "https://avatars.githubusercontent.com/u/39793568?v=4"
+keywords:
+- Apache APISIX
+- APISIX Ingress Controller
+- Prometheus
+- Metrics
+- Grafana
+description: 本文介绍了如何使用 Prometheus 监控 APISIX Ingress Controller 的相关步骤和部分指标的展示效果。
+tags: [Technology]
+---
+
+> 本文介绍了如何使用 Prometheus 监控 APISIX Ingress Controller 的相关步骤和部分指标的展示效果。
+
+<!--truncate-->
+
+无论是之前单体应用的时代,或是云原生大行其道的今天,「监控功能」一直扮演着十分重要的角色。一个良好的监控体系能够帮助工程师们快速了解运行在生产环境中的服务状态,并在服务异常时快速定位问题或者提前预警异常的发生。
+
+Apache APISIX Ingress Controller 在最近几个版本中加强了对 Prometheus Metrics 的支持。本文将为大家介绍如何使用 Prometheus 收集 APISIX Ingress Controller 的 Metrics 数据,并通过 Grafana 进行后续可视化呈现。
+
+## 步骤一:安装 APISIX Ingress Controller
+
+首先我们通过 [Helm](https://helm.sh/) 将 Apache APISIX、ETCD 和 APISIX Ingress Controller 部署到本地的 Kubernetes 集群中。
+
+```shell
+helm repo add apisix https://charts.apiseven.com
+helm repo update
+kubectl create namespace ingress-apisix
+helm install apisix apisix/apisix --namespace ingress-apisix \
+ --set ingress-controller.enabled=true
+```
+
+安装完毕后请等待,直至所有服务都已正常运行。具体状态确认可通过下述命令进行检查。
+
+```shell
+kubectl get all -n ingress-apisix
+```
+
+## 步骤二:启用 Prometheus 插件
+
+大部分情况下,监控功能的涉及面肯定不止 APISIX Ingress Controller 这一个组件,如果需要同时监控 Apache APISIX,可以创建以下 `ApisixClusterConfig` 资源。
+
+```yaml
+apiVersion: apisix.apache.org/v2alpha1
+kind: ApisixClusterConfig
+metadata:
+ name: default
+spec:
+ monitoring:
+ prometheus:
+ enable: true
+```
+
+### 安装 Prometheus 和 Grafana
+
+接下来我们将通过 Prometheus Operator 来启用 Prometheus 服务,因此需要先安装 Prometheus Operator。
+
+> 下述命令同时也会安装 Grafana
Review comment:
I see `:::note` is used in English version, could you also use it here?
--
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-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-website] yzeng25 commented on a change in pull request #809: docs: add Monitor Ingress Controller with Prometheus blog
Posted by GitBox <gi...@apache.org>.
yzeng25 commented on a change in pull request #809:
URL: https://github.com/apache/apisix-website/pull/809#discussion_r767482767
##########
File path: website/blog/2021/12/13/monitor-apisix-ingress-controller-with-prometheus.md
##########
@@ -0,0 +1,184 @@
+---
+title: "Monitoring APISIX Ingress Controller with Prometheus"
+authors:
+ - name: "Chao Zhang"
+ title: "Author"
+ url: "https://github.com/tokers"
+ image_url: "https://avatars.githubusercontent.com/u/10428333?v=4"
+ - name: "Sylvia"
+ title: "Technical Writer"
+ url: "https://github.com/SylviaBABY"
+ image_url: "https://avatars.githubusercontent.com/u/39793568?v=4"
+keywords:
+- Apache APISIX
+- APISIX Ingress Controller
+- Prometheus
+- Metrics
+- Grafana
+description: This article introduces the relevant steps of how to use Prometheus to monitor APISIX Ingress Controller and the display effect of some indicators.
+tags: [Technology]
+---
+
+> This article introduces the relevant steps of how to use Prometheus to monitor APISIX Ingress Controller and the display effect of some indicators.
+
+<!--truncate-->
+
+Whether in the days of monolithic applications or today's cloud-native era, "monitoring functions" have always played a very important role. A good monitoring system can help engineers quickly understand the status of services running in production environments, and quickly locate problems or warn of anomalies when they occur.
+
+Apache APISIX Ingress Controller has been enhanced to support Prometheus Metrics in recent releases. In this article, we will introduce how to use Prometheus to collect Metrics data from APISIX Ingress Controller and subsequently visualize it through Grafana.
+
+## Step 1: Install APISIX Ingress Controller
+
+First we deploy Apache APISIX, ETCD and APISIX Ingress Controller to the local Kubernetes cluster via [Helm](https://helm.sh/).
+
+```shell
+helm repo add apisix https://charts.apiseven.com
+helm repo update
+kubectl create namespace ingress-apisix
+helm install apisix apisix/apisix --namespace ingress-apisix \
+ --set ingress-controller.enabled=true
+```
+
+After installation, please wait until all services are up and running. Specific status confirmation can be checked with the following command.
+
+```shell
+kubectl get all -n ingress-apisix
+```
+
+## Step 2: Enable the Prometheus Plugin
+
+In most cases, the monitoring function must involve more than just the APISIX Ingress Controller component. If you need to monitor Apache APISIX at the same time, you can create the following `ApisixClusterConfig` resource.
+
+### Installing Prometheus and Grafana
+
+Next, we will enable the Prometheus service through the Prometheus Operator, so you will need to install the Prometheus Operator first.
+
+>The following command will also install Grafana.
Review comment:
could you also apply `:::note` here?
--
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-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-website] netlify[bot] edited a comment on pull request #809: docs: add Monitor Ingress Controller with Prometheus blog
Posted by GitBox <gi...@apache.org>.
netlify[bot] edited a comment on pull request #809:
URL: https://github.com/apache/apisix-website/pull/809#issuecomment-992180553
✔️ Deploy Preview for *apache-apisix* ready!
🔨 Explore the source changes: 10bf3cb78b8140445ce42c96726a9aadc8168416
🔍 Inspect the deploy log: [https://app.netlify.com/sites/apache-apisix/deploys/61b70192a8fce300072b916a](https://app.netlify.com/sites/apache-apisix/deploys/61b70192a8fce300072b916a)
😎 Browse the preview: [https://deploy-preview-809--apache-apisix.netlify.app](https://deploy-preview-809--apache-apisix.netlify.app)
--
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-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org