- DevOps with Kubernetes
- Hideto Saito Hui Chuan Chloe Lee Cheng Yang Wu
- 277字
- 2021-07-02 13:41:45
Monitoring and logging tools
Once you start to manage microservices using a cloud infrastructure, there are various monitoring tools that can help you to manage your servers.
Amazon CloudWatch is the built-in monitoring tool for AWS. No agent installation is needed; it automatically gathers metrics from AWS instances and allows the user to visualize these in order to carry out DevOps tasks. It also supports the ability to set an alert based on the criteria that you set. The following screenshot shows the Amazon CloudWatch metrics for an EC2 instance:

Amazon CloudWatch also supports the gathering of an application log. This requires us to install an agent on an EC2 instance. Centralized log management is useful when you need to start managing multiple microservice instances.
ELK is a popular combination of stacks that stands for Elasticsearch (https://www.elastic.co/products/elasticsearch), Logstash (https://www.elastic.co/products/logstash), and Kibana (https://www.elastic.co/products/kibana). Logstash aggregates the application log, transforms it to JSON format, and then sends it to Elasticsearch. Elasticsearch is a distributed JSON database. Kibana can visualize the data that's stored on Elasticsearch. The following Kibana example shows an nginx access log:

Grafana (https://grafana.com) is another popular visualization tool. It used to be connected with time series databases such as Graphite (https://graphiteapp.org) or InfluxDB (https://www.influxdata.com). A time series database is designed to store data that's flat, de-normalized, and numeric, such as CPU usage or network traffic. Unlike RDBMS, a time series database has some optimization in order to save data space and can carry out faster queries on historical numeric data. Most DevOps monitoring tools use time series databases in the backend.
The following Grafana screenshot shows some Message Queue Server statistics:

- Web程序設計及應用
- TensorFlow Lite移動端深度學習
- Ext JS Data-driven Application Design
- 你不知道的JavaScript(中卷)
- concrete5 Cookbook
- Mastering Linux Network Administration
- 數(shù)據(jù)結構案例教程(C/C++版)
- C語言開發(fā)基礎教程(Dev-C++)(第2版)
- 零基礎學Kotlin之Android項目開發(fā)實戰(zhàn)
- Unity&VR游戲美術設計實戰(zhàn)
- PHP 7從零基礎到項目實戰(zhàn)
- 從程序員角度學習數(shù)據(jù)庫技術(藍橋杯軟件大賽培訓教材-Java方向)
- Oracle 12c從入門到精通(視頻教學超值版)
- IBM RUP參考與認證指南
- 軟件測試實驗實訓指南