当前位置:网站首页>How to use dataant to monitor Apache APIs IX
How to use dataant to monitor Apache APIs IX
2022-06-30 22:44:00 【Apacheapisik China Community】
Background information
Apache APISIX Is an open source cloud native API gateway , As API gateway , It's dynamic 、 real time 、 High performance and so on , Provides load balancing 、 Dynamic upstream 、 Grayscale Publishing 、 Service failure 、 Identity Authentication 、 Observability and other rich traffic management functions . You can use Apache APISIX To handle the traditional north-south flow , And the East-West flow between services , You can also think of it as K8s Ingress controller To use . Thanks to the APISIX Fully dynamic design , Configuration changes can be made at any time without restarting the service .
DataAnt The whole stack cloud monitoring system can summarize through big data and machine learning IaaS、PaaS and SaaS All operation and maintenance data of layer , Provide users with a unified visual interface . DataAnt Allows users to move seamlessly and quickly between related monitoring data sources , Without switching tools , Learn more about yourself IT The state of the system . It provides DataAnt Agent It can be monitored in real time APISIX And upload its monitoring data to DataAnt PaSS platform , Realize one-stop monitoring in the cloud .
Introduction of the principle

One 、 Collection configuration
DataAnt Agent First it will pass config.yaml The configuration of APISIX Item to initialize and register the collector . same Agent You can register multiple collectors . The collector collects APISIX After exposure to indicators , Encrypt the index data and upload it to DataAnt Cloud.
Two 、 Data visualization
DataAnt Cloud After receiving the data , The data will be stored in the time series database after preliminary monitoring information supplement and processing , And then you can go through DataAnt Of Dashboard Real-time monitoring APISIX.
3、 ... and 、 Warning notice
The data will also be distributed to alarm matching processing through messages , Then the notification aggregation is performed, and finally the alarm is sent through the configured notification mode , That is, it can receive in real time APISIX Abnormal conditions of .
Configuration Guide
First visit [DataAnt Cloud](http://139.224.11.158), Register your account and log in to the platform .
Get it from the following network disk link DataAnt Of Agent, Upload to after downloading APISIX On the same machine and add execution permission .
1. Extract the link : https://pan.baidu.com/s/1fabvSiDLDh8ZRTjpzINHLg
2. Extraction code : 87d4
- Create in current directory DataAnt Agent Required profile
./config.yaml. The detailed configuration is as follows :
tenantId: 11 # The ID It's yours DataAnt Users of the platform ID. hostIp: 127.0.0.1 # Identification of the host IP hostName: apisix configs: - uri: http://127.0.0.1:9091 # APISIX Ports exposed by monitoring indicators . type: apisix # Monitoring type selection APISIX asName: apisix_test # Alias user: admin # The user name can be omitted - Start with the following command Agent.
./agent After successful startup , The following data will be returned :
2022/06/21 20:50:10 {"code":200,"msg":" The request is successful ","data":null} 2022/06/21 20:50:30 {"code":200,"msg":" The request is successful ","data":null} 2022-06-21 20:51:00:000 INFO apisix/apisix.go:25 Obtain the corresponding monitoring data , Data length 1675 2022-06-21 20:51:00:000 INFO prometheus/prometheusCollector.go:43 Get the corresponding monitoring data and start parsing 1675 2022-06-21 20:51:00:000 INFO prometheus/prometheusCollector.go:43 Obtain the corresponding monitoring data to complete the analysis Number of analytical indicators 21 2022-06-21 20:51:00:000 INFO collector/collector.go:82 apisix Amount of data collected 21 2022-06-21 20:51:00:000 INFO runtime/asm\_amd64.s:1581 apisix\_test9091: Number of indicators :21 stay DataAnt Click Install integration plug-in on the platform homepage > Monitor plug-ins , choice APISIX, And click
To configureUnder theClick configuration.stay DataAnt On the platform home page, click the dashboard in the left navigation bar and create a new dashboard .
Choose the indicators you need , And drag it onto the dashboard , The indicators of configuration completion are as follows :

matters needing attention
DataAnt Agent every other 30 The data will be reported once every second , So there will be some delay .
summary
This article mainly introduces how to pass DataAnt Agent Upload APISIX The index data of DATA ANT In the monitoring system , You can use it later , Configure relevant alarm rules and alarm contacts , When the service fails , I can inform you in time .
边栏推荐
- 智慧路灯| 云计算点亮智慧城市的“星星之火”
- 10 airbags are equipped as standard, and Chery arizer 8 has no dead corner for safety protection
- pytorch 的Conv2d的详细解释
- 在线客服聊天系统源码_美观强大golang内核开发_二进制运行傻瓜式安装_附搭建教程...
- What does the software test report contain? How to obtain high quality software test reports?
- Fastjson V2 简单使用手册
- AtCoder Beginner Contest 257
- Where can I find the computer version of wechat files
- KVM IO performance test data
- How to design test cases
猜你喜欢

如何使用 DataAnt 监控 Apache APISIX

Introduction to digital transformation solutions for enterprises going to sea

A new one from Ali 25K came to the Department, which showed me what the ceiling is

Jmeter跨线程参数关联无需脚本

What does project management really manage?

JVM Part 21 of interview with big companies Q & A

B_ QuRT_ User_ Guide(31)

实现多方数据安全共享,解决普惠金融信息不对称难题

MIT博士论文 | 优化理论与机器学习实践

Doker's container data volume
随机推荐
Jmeter跨线程参数关联无需脚本
Wechat applet transmits parameters (data-) by clicking events
KVM IO性能测试数据
企业出海数字化转型解决方案介绍
Some memory problems summarized
唯一性索引与逻辑删除冲突问题解决思路
dba
Architecture of IM integrated messaging system sharing 100000 TPS
In depth analysis of Apache bookkeeper series: Part 4 - back pressure
Why does the computer speed slow down after vscode is used for a long time?
Kubevela 1.4: make application delivery safer, easier to use, and more transparent
多線程經典案例
B_ QuRT_ User_ Guide(34)
Web APIs comprehensive case -tab column switching - dark horse programmer
How cloud computing can protect online education in the post epidemic Era
Doker's container data volume
AtCoder Beginner Contest 257
多线程经典案例
如何使用 DataAnt 监控 Apache APISIX
Redis' cache penetration, cache breakdown and cache avalanche