OpenShift v3.11 监控配置OpenShift Prometheus Cluster Monitoring

OpenShift Prometheus Cluster Monitoring
官方文档:https://docs.openshift.com/container-platform/3.11/install_config/prometheus_cluster_monitoring.html#installing-monitoring-stack
安装完v3.11之后,默认应该安装了monitoring_operator,也可以在安装inventory文件中显示指定安装。如下参数:
openshift_cluster_monitoring_operator_install=true

安装后可以通过如下域名访问,在访问之前需要授权:

  1. 给用户developer授予cluster-monitoring-view角色;
    #oc login system:admin https://master.svc.default.com
    #oc adm policy add-cluster-role-to-user cluster-monitoring-view developer
  2. 通过htpasswd /etc/origin/master/htpasswd developer 为developer设置密码。然后登陆。

https://prometheus-k8s-openshift-monitoring.svc.default.com
https://grafana-openshift-monitoring.svc.default.com

你可能感兴趣的:(OpenShift)