Kubernetes - Monitoring and Logging
来源:互联网 发布:织梦cms 手机版 编辑:程序博客网 时间:2024/05/16 15:48
Kubernetes - Monitoring and Logging
Built-in monitoring
Google’s open source projects
Contrib
is a catch-all for a variety of components that are not part of core Kubernetes. It is found at https://github.com/kubernetes/contrib.LevelDB
is a key store library that was used in the creation of InfluxDB. It is found at https://github.com/google/leveldb.Heapster
runs in a container on one of the minion nodes and aggregates the data from kublet. A simple REST interface is provided to query the data.InfluxDB
is an open-source distributed time series database with no external dependencies.Grafana
, which provides a dashboard and graphing interface for the data stored in InfluxDB.
Exploring Heapster
First, we can list the pods to find the one running Heapster as follows:
$ kubectl get pods --namespace=kube-system
Run a describe command to see which node it is running on as follows:
$ kubectl describe pods/<Heapster monitoring Pod> --namespace=kube-system
Figure 6.2. Heapster pod details
Next, we can SSH to this box with the familiar gcloud ssh command as follows:
$ gcloud compute --project "<Your project ID>" ssh --zone "<your gce zone>" "<kubernetes minion from describe>"
Let’s see the list now by issuing a curl command to the pod IP address we saved from the describe command as follows:
$ curl -G <Heapster IP from describe>:8082/api/v1/metric-export-schema/
Customizing our dashboards
Figure 6.3. Heapster pod details
Figure 6.4. Singlestat options
Figure 6.5. Custom dashboard panels
FluentD and Google Cloud Logging
FluentD
FluentD
is a collector. It can be configured to have multiple sources to collect and tag logs, which are then sent to various output points for analysis, alerting, or archiving.
The AWS Kubernetes setup also uses FluentD, but instead forwards events to Elasticsearch
.
Maturing our monitoring operations
Beyond system monitoring with Sysdig
Sysdig stands out for its ability to dive deep not only into system operations but specifically containers.
Figure 6.9. Sysdig Cloud Explore page
- Detailed views
- Topology views
- Metrics
- Alerting
Figure 6.10. Sysdig Cloud network topology view
Figure 6.11. The Sysdig Cloud network topology detailed view
Figure 6.12. Sysdig Cloud capacity estimate view
Figure 6.13. Sysdig Cloud new alert
- Kubernetes - Monitoring and Logging
- Nginx LOGGING AND MONITORING
- Chapter 18. Tools for Cloud Infrastructure V (Debugging, Logging, and Monitoring for Containerized A
- tensorflow学习笔记十五:tensorflow官方文档学习 Logging and Monitoring Basics with tf.contrib.learn
- TensorFlow学习笔记10----Logging and Monitoring Basics with tf.contrib.learn
- 深度学习笔记——深度学习框架TensorFlow(八)[Logging and Monitoring Basics with tf.contrib.learn]
- JMX Management and Monitoring
- Nagios - System and Network Monitoring
- Linux System and Performance Monitoring
- Linux System and Performance Monitoring
- Linux System and Performance Monitoring
- Monitoring and benchmark tools(1)
- Monitoring Open and Cached Cursors
- Akka 【四】 Supervision and Monitoring
- Monitoring Open and Cached Cursors
- 8 Monitoring Performance and Troubleshooting
- Percona Monitoring and Management架构
- Percona Monitoring and Management 部署
- poj 3034 Whac-a-Mole
- 内核调试工具 — kdump & crash
- 1110: [POI2007]砝码Odw 进制拆分,贪心
- 无符号数计算非零比特数量的多种版本C代码汇总
- HTTP的工作流程
- Kubernetes - Monitoring and Logging
- 懒虫小鑫
- 爬楼梯
- 设计模式-笔记01
- Linux基础命令学习:开启8080端口
- 在Mac上安装mysql数据库
- 机器学习门径初窥
- 微信好友在阅读哪些原创文章?
- 博客搬家至博客园http://www.cnblogs.com/SweetBeens/