In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
Today, I will talk to you about how to use Sentinel+InfluxDB+Chronograf to achieve a large monitoring screen, which may not be well understood by many people. in order to make you understand better, the editor has summarized the following content for you. I hope you can get something according to this article.
Preface
In the previous tweet, we used the time series database InfluxDb to store flow control data, but data storage is not the goal, analysis, monitoring and early warning is the ultimate goal, so the question is, how to better achieve it? Friends who have used Alibaba's Sentinel console, do they think its console is ugly and only five centimeters long, which obviously can't meet the needs of most people or scenes.
Architecture
Tools
Sentinel-dashboard (console, data collection) Influxdb (time series database, data storage) Chronograf (display console, display data and achieve early warning)
Installation
The installation method of Sentinel console and time series database Influxdb has been discussed earlier. I will not repeat it here. I will briefly explain the installation method of Chronograf console. Docker installation is recommended here.
$docker run-p 8888 8888\-v $PWD:/var/lib/chronograf\ chronograf
After the installation is successful, the browser should visit http://ip:8888 and you should see a welcome page:
Then, configure the data source and assemble the monitoring screen according to the business scenario.
Large screen
Here, according to the data collected by the current limiting component of Sentinel, a simple monitoring screen is assembled, which can monitor the total number of historical visits, the number of visits in the last hour, the number of current restrictions, and the access curve in the last few minutes or hours, and so on.
Total visits
SELECT SUM ("successQps") AS "total visits" FROM "sentinel_log". "autogen". "sentinelInfo"
Number of visits in the last hour
SELECT SUM ("successQps") AS "traffic" FROM "sentinel_log". "autogen". "sentinelInfo" WHERE TIME > NOW ()-1h
Current limit in the last hour
SELECT SUM ("blockQps") AS "current limit" FROM "sentinel_log". "autogen". "sentinelInfo" WHERE time > now ()-1h
Number of anomalies in the last hour
SELECT SUM ("exceptionQps") AS "exception number" FROM "sentinel_log". "autogen". "sentinelInfo" WHERE time > now ()-1h
Access trend chart for the last hour (seconds level)
SELECT SUM ("successQps") AS "visits" FROM "sentinel_log". "autogen". "sentinelInfo" WHERE time > now ()-1hGROUP BY time (1s)
Resource access ranking in the last 12 hours
SELECT SUM ("successQps") AS "successful qps", SUM ("blockQps") AS "current limit QPS" FROM "sentinel_log". "autogen". "sentinelInfo" WHERE time > now ()-12hGROUP BY resource
Early warning
Later we connect to Kapacitor in Chronograf, and Chronograf automatically opens the Configure Alert Endpoints section, and Kapacitor supports multiple alert endpoints / event handlers. Interested partners can also make more intelligent settings according to the flow control data in the Sentinel console, such as dynamically adjusting flow control rules according to the limited number of losses and machine indicators.
Source code
Https://gitee.com/52itstyle/sentinel-dashboard
With her, little brothers and sisters no longer have to worry about the alarm clock at one o'clock in the morning, isn't it cool? The above is just the tip of the iceberg. The monitoring system platform we have launched now accesses 1000 servers for real-time monitoring, 200 monitoring screens, thousands of monitoring indicators, and processes tons of data every day through various third-party component libraries (Telegraf, InfluxDB, Chronograf, Kapacitor, Grafana, Prometheus, Consul, Elasticsearch, Kibana). Is it very hanging? I admire my own imagination.
After reading the above, do you have any further understanding of how to use Sentinel+InfluxDB+Chronograf to achieve a large monitoring screen? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.