当前位置:网站首页>How to use dataant to monitor Apache apisex
How to use dataant to monitor Apache apisex
2022-06-28 20:30:00 【ApacheAPISIX】
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, 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 .
Extract the link : https://pan.baidu.com/s/1fabvSiDLDh8ZRTjpzINHLg
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 亿数据秒级关联,货拉拉基于 Apache Doris 的 OLAP 体系演进(附 PPT 下载)
管道 | 与重定向 >
List of domestic database directory
How to recover after Oracle delete accidentally deletes table data
学习太极创客 — MQTT 第二章(八)ESP8266 MQTT 用户密码认证
T检验(检验两个总体的均值差异是否显著)
input separator
QSP read label configuration error
圆球等的相关计算
LeetCode每日一题——324. 摆动排序 II
Ref attribute, props configuration, mixin mixing, plug-in, scoped style
Fix the simulator that cannot be selected by flutter once
Can layoffs really save China's Internet?
RT thread thread synchronization and thread communication
Is it safe for CICC fortune to open an account? Let's talk about CICC fortune
ANR分析--问题1
输入和输出实型数据
Data standardization processing
数据资产为王,如何解析企业数字化转型与数据资产管理的关系?
wc命令的使用

![[graduation season · advanced technology Er] hard work can only pass, hard work can be excellent!](/img/e5/b6035abfa7d4bb59c3080d3b87ce45.jpg)






