Documentation
¶
Index ¶
Constants ¶
View Source
const ( BlobfuseStats = "blobfuse_stats" FileCacheMon = "file_cache_monitor" CpuProfiler = "cpu_profiler" MemoryProfiler = "memory_profiler" CpuMemoryProfiler = "cpu_mem_profiler" NetworkProfiler = "network_profiler" BfuseMon = "bfusemon" OutputFileName = "monitor" OutputFileExtension = "json" OutputFileCount = 10 OutputFileSizeinMB = 10 )
View Source
const BfuseMonitorVersion = "1.0.0-preview.1"
Variables ¶
View Source
var ( Pid string BfsPollInterval int ProcMonInterval int NoBfsMon bool NoCpuProf bool NoMemProf bool NoNetProf bool NoFileCacheMon bool TempCachePath string MaxCacheSize float64 OutputPath string CheckVersion bool )
View Source
var DefaultLogFile = filepath.Join(DefaultWorkDir, "bfuseMonitor.log")
View Source
var DefaultWorkDir = "$HOME/.blobfuse2"
Functions ¶
func CheckProcessStatus ¶
check whether blobfuse2 process is running for the given pid
Types ¶
type CacheEvent ¶
type CacheEvent struct { CacheEvent string `json:"cacheEvent"` Path string `json:"path"` IsDir bool `json:"isDir"` CacheSize int64 `json:"cacheSize"` CacheConsumed string `json:"cacheConsumed"` CacheFilesCnt int64 `json:"cacheFilesCount"` EvictedFilesCnt int64 `json:"evictedFilesCount"` Value map[string]string `json:"value"` }
type CpuMemStat ¶
Click to show internal directories.
Click to hide internal directories.