bsmetric

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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 GetAuthInfoOfRoot() (string, string, string)

func GetChunkServerVersion

func GetChunkServerVersion(endpoints *[]string) (map[string]int, error)

@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

func GetCopysetRaftStatus(endpoints *[]string) (map[string][]map[string]string, error)

@return key: chunkserver's addr, value: copysets' raft status

func GetPoolPerformance

func GetPoolPerformance(name string, start, end, interval uint64) ([]metricomm.Performance, error)

func GetPoolSpace

func GetPoolSpace(name string) (*metricomm.Space, error)

func GetVolumePerformance

func GetVolumePerformance(volumeName string, start, end, interval uint64) ([]metricomm.UserPerformance, error)

Types

type PoolItemNum

type PoolItemNum struct {
	ServerNum      uint32
	ChunkServerNum uint32
	CopysetNum     uint32
}

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL