Documentation ¶
Index ¶
Constants ¶
View Source
const ( ROLE_ETCD = topology.ROLE_ETCD ROLE_MDS = topology.ROLE_MDS ROLE_CHUNKSERVER = topology.ROLE_CHUNKSERVER ROLE_METASERVER = topology.ROLE_METASERVER ROLE_SNAPSHOTCLONE = topology.ROLE_SNAPSHOTCLONE ITEM_ID = iota ITEM_CONTAINER_ID ITEM_STATUS ITEM_PORTS ITEM_LOG_DIR ITEM_DATA_DIR STATUS_CLEANED = comm.SERVICE_STATUS_CLEANED STATUS_LOSED = comm.SERVICE_STATUS_LOSED STATUS_UNKNWON = comm.SERVICE_STATUS_UNKNOWN // for instance merged status STATUS_RUNNING = "RUNNING" STATUS_STOPPED = "STOPPED" STATUS_ABNORMAL = "ABNORMAL" )
Variables ¶
View Source
var ( ROLE_SCORE = map[string]int{ ROLE_ETCD: 0, ROLE_MDS: 1, ROLE_CHUNKSERVER: 2, ROLE_METASERVER: 2, ROLE_SNAPSHOTCLONE: 3, } MONITOT_ROLE_SCORE = map[string]int{ configure.ROLE_NODE_EXPORTER: 0, configure.ROLE_PROMETHEUS: 1, configure.ROLE_GRAFANA: 2, } )
Functions ¶
func FormatMonitorStatus ¶ added in v0.3.0
func FormatMonitorStatus(statuses []monitor.MonitorStatus, verbose bool) string
func FormatStatus ¶
func FormatStatus(statuses []task.ServiceStatus, verbose, expand bool) string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.