如何在适用于Windows的Minishift v1.5.1中启用指标

时间:2017-07-09 21:50:39

标签: windows docker openshift metrics minishift

我在Windows 10 Pro中启动了Minishift v1.5.1,通知参数" - metrics",并且偶然未启用指标。

有没有额外的选择? 见控制台:

C:\>minishift start --metrics
Starting local OpenShift cluster using 'hyperv' hypervisor...
-- Checking OpenShift client ... OK
-- Checking Docker client ... OK
-- Checking Docker version ... OK
-- Checking for existing OpenShift container ...
   Deleted existing OpenShift container
-- Checking for openshift/origin:v1.5.1 image ... OK
-- Checking Docker daemon configuration ... OK
-- Checking for available ports ... OK
-- Checking type of volume mount ...
   Using Docker shared volumes for OpenShift volumes
-- Creating host directories ... OK
-- Finding server IP ...
   Using 192.168.1.162 as the server IP
-- Starting OpenShift container ...
   Starting OpenShift using container 'origin'
   Waiting for API server to start listening
   OpenShift server started
-- Removing temporary directory ... OK
-- Checking container networking ... OK
-- Server Information ...
   OpenShift server started.
   The server is accessible via web console at:
       https://192.168.1.162:8443

   To login as administrator:
       oc login -u system:admin

1 个答案:

答案 0 :(得分:2)

格雷厄姆的回答How to enable metrics in Minishift v1.5.1 for Windows基本上是正确的,我只想补充一些说明。

没有Minishift版本v1.5.1。 1.5.1是配置的OpenShift版本。您可以通过以下方式确定正在运行的Minishift版本:

$minishift version

查看输出,您似乎重新启动了现有的Minishift实例。即使指标可能甚至不能根据您的网络速度进行配置(如Graham的答案中所述),但仍应在日志中看到某些内容。如果您有现有的Minishift实例,请确保在启用指标之前先删除它:

$ minishift delete
$ minishift start --metrics