Tools for Logging, Monitoring, and Visibility


Rancher contains a variety of tools that aren’t included in Kubernetes to assist in your DevOps operations. Rancher can integrate with external services to help your clusters run more efficiently. Tools are divided into following categories:

Rancher包含Kubernetes中未包含的各种工具,可帮助您进行DevOps操作。Rancher可以与外部服务集成,帮助您的集群更高效地运行。工具分为以下几类:

通知notifier程序和警报alert是两个功能,它们的配合可以通知您Rancher系统中的事件。

Notifiers are services that inform you of alert events. You can configure notifiers to send alert notifications to staff best suited to take corrective action. Notifications can be sent with Slack, email, PagerDuty, WeChat, and webhooks.

通知程序是通知您警报事件的服务。您可以将notifiers配置为向最适合采取纠正措施的员工发送警报通知。通知可以通过Slack、电子邮件、页面任务(PagerDuty)、微信和网络挂钩(webhooks)发送。

Alerts are rules that trigger those notifications. Before you can receive alerts, you must configure one or more notifier in Rancher. The scope for alerts can be set at either the cluster or project level.

警报(Alerts)是触发这些通知的规则(rules)。在接收警报之前,您必须在Rancher中配置一个或多个通知程序(notifier)。警报的范围可以在群集(cluster)或项目(project)级别设置。

Logging 日志服务

Logging is helpful because it allows you to:

  • Capture and analyze the state of your cluster

捕获和分析集群状态

  • Look for trends in your environment

预估环境的趋势

  • Save your logs to a safe location outside of your cluster

保持日志到集群外安全位置

  • Stay informed of events like a container crashing, a pod eviction, or a node dying

持续关注容器crashing、pod驱逐或节点宕机等事件

  • More easily debugg and troubleshoot problems

让故障排查更容易

Rancher can integrate with Elasticsearch, splunk, kafka, syslog, and fluentd.
Rancher可以与Elasticsearch、splunk、kafka、syslog和fluentd集成。

For details, refer to the logging section.
有关详细信息,请参阅日志记录部分。

Monitoring 监控服务

Available as of v2.2.0
仅在v2.2.0版本可用
_
Using Rancher, you can monitor the state and processes of your cluster nodes, Kubernetes components, and software deployments through integration with Prometheus, a leading open-source monitoring solution. For details, refer to the monitoring section.

使用Rancher,您可以通过与领先的开源监控解决方案Prometheus集成,监控集群节点、Kubernetes组件和软件部署的状态和进程。有关详细信息,请参阅 “监控” 部分。

Istio

Istio is an open-source tool that makes it easier for DevOps teams to observe, control, troubleshoot, and secure the traffic within a complex network of microservices. For details on how to enable Istio in Rancher, refer to the Istio section.

Istio是一种开源工具,可让DevOps团队更轻松地观察、控制、排除故障并保护复杂微服务网络中的流量。有关如何在Rancher中启用Istio的详细信息,请参阅Istio部分。

OPA Gatekeeper

OPA Gatekeeper is an open-source project that provides integration between OPA and Kubernetes to provide policy control via admission controller webhooks. For details on how to enable Gatekeeper in Rancher, refer to the OPA Gatekeeper section.

OPA网关是一个开源项目,提供OPA和Kubernetes之间的集成,以通过允许控制器webhooks提供策略控制。有关如何在Rancher中启用网关的详细信息,请参阅OPA网守部分。