当前位置:网站首页>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 configure
Under 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 .
边栏推荐
- JMeter cross thread parameter association requires no script
- Detailed explanation of conv2d of pytorch
- How to design test cases
- Doker's container data volume
- d编译时计数
- KVM IO性能测试数据
- What is flush software? In addition, is it safe to open an account online now?
- Architecture of IM integrated messaging system sharing 100000 TPS
- [450. delete nodes in binary search tree]
- 远程办公期间,项目小组微信群打卡 | 社区征文
猜你喜欢
MIT doctoral dissertation optimization theory and machine learning practice
MIT博士论文 | 优化理论与机器学习实践
How to change the win11 computer name? Win11 method of changing computer name
What does project management really manage?
Two dots on the top of the latex letter
[Android, kotlin, tflite] mobile device integration deep learning light model tflite (object detection)
[career planning for Digital IC graduates] Chap.1 overview of IC industry chain and summary of representative enterprises
Swift 5.0 - creation and use of swift framework
2022-06-30: what does the following golang code output? A:0; B:2; C: Running error. package main import “fmt“ func main() { ints := make
理想中的接口自动化项目
随机推荐
How does win11 optimize services? Win11 method of optimizing service
leetcode:104. 二叉树的最大深度
d编译时计数
B_ QuRT_ User_ Guide(32)
Esp8266 becomes client and server
去中心化交易所系统开发技术原理丨数字货币去中心化交易所系统开发(说明案例)
智慧路灯| 云计算点亮智慧城市的“星星之火”
A new one from Ali 25K came to the Department, which showed me what the ceiling is
Femas: cloud native multi runtime microservice framework
How to ensure the security of our core drawings by drawing encryption
请指教同花顺软件究竟是什么?另外想问,现在在线开户安全么?
[无线通信基础-13]:图解移动通信技术与应用发展-1-概述
"Team training competition" Shandong multi university training 3
Label Contrastive Coding based Graph Neural Network for Graph Classification
交易所系统开发如何开发?数字货币交易所系统开发成熟技术案例
D compile time count
Ten of the most heart piercing tests / programmer jokes, read the vast crowd, how to find?
「团队训练赛」ShanDong Multi-University Training #3
腾讯3年,功能测试进阶自动化测试,送给在手工测试中迷茫的你
How to design test cases