Documentation
¶
Index ¶
- Constants
- func GetAuthInfoOfRoot() (string, string, string)
- func GetChunkServerVersion(endpoints *[]string) (map[string]int, error)
- func GetClusterPerformance(start, end, interval uint64) ([]metricomm.Performance, error)
- func GetClusterSpace(start, end, interval uint64) ([]metricomm.SpaceTrend, error)
- func GetCopysetRaftStatus(endpoints *[]string) (map[string][]map[string]string, error)
- func GetPoolPerformance(name string, start, end, interval uint64) ([]metricomm.Performance, error)
- func GetPoolSpace(name string) (*metricomm.Space, error)
- func GetVolumePerformance(volumeName string, start, end, interval uint64) ([]metricomm.UserPerformance, error)
- type PoolItemNum
- type ServiceStatus
Constants ¶
View Source
const ( MDS_STATUS = "mds_status" MDS_LEADER = "leader" MDS_FOLLOWER = "follower" MDS_CONF_LISTEN_ADDR = "mds_config_mds_listen_addr" MDS_CONF_AUTH_USERNAME = "mds_config_mds_auth_root_user_name" MDS_CONF_AUTH_PASSWORD = "mds_config_mds_auth_root_password" )
View Source
const ( CLUSTER_METRIC_PREFIX = "topology_metric_cluster_" CLUSTER_LOGICAL_CAPACITY = "topology_metric_cluster_logical_capacity" CLUSTER_LOGICAL_ALLOC = "topology_metric_cluster_logical_alloc" LOGICAL_POOL_METRIC_PREFIX = "topology_metric_logical_pool_" LOGICAL_POOL_LOGICAL_CAPACITY = "_logical_capacity" LOGICAL_POOL_LOGICAL_ALLOC = "_logical_alloc" LOGICAL_POOL_SERVER_NUM = "_server_num" LOGICAL_POOL_CHUNKSERVER_NUM = "_chunkserver_num" LOGICAL_POOL_COPYSET_NUM = "_copyset_num" FILE_PREFIX = "curve_client_" )
View Source
const ( SNAPSHOT_CLONE_STATUS = "snapshotcloneserver_status" SNAPSHOT_CLONE_CONF_LISTEN_ADDR = "snapshot_clone_server_config_server_address" SNAPSHOT_CLONE_LEADER = "active" )
Variables ¶
This section is empty.
Functions ¶
func GetAuthInfoOfRoot ¶
func GetChunkServerVersion ¶
@return map[version]number
func GetClusterPerformance ¶
func GetClusterPerformance(start, end, interval uint64) ([]metricomm.Performance, error)
func GetClusterSpace ¶
func GetClusterSpace(start, end, interval uint64) ([]metricomm.SpaceTrend, error)
func GetCopysetRaftStatus ¶
@return key: chunkserver's addr, value: copysets' raft status
func GetPoolPerformance ¶
func GetPoolPerformance(name string, start, end, interval uint64) ([]metricomm.Performance, error)
func GetVolumePerformance ¶
func GetVolumePerformance(volumeName string, start, end, interval uint64) ([]metricomm.UserPerformance, error)
Types ¶
type PoolItemNum ¶
func GetPoolItemNum ¶
func GetPoolItemNum(name string) (*PoolItemNum, error)
type ServiceStatus ¶
type ServiceStatus metricomm.ServiceStatus
func GetEtcdStatus ¶
func GetEtcdStatus() ([]ServiceStatus, string)
func GetMdsStatus ¶
func GetMdsStatus() ([]ServiceStatus, string)
func GetSnapShotCloneServerStatus ¶
func GetSnapShotCloneServerStatus() ([]ServiceStatus, string)
Click to show internal directories.
Click to hide internal directories.