Versions in this module Expand all Collapse all v1 v1.3.0 Mar 6, 2019 Changes in this version + const DefaultAggregationTime + const DefaultSamplingRate + const Version + func GetMetricID(metric *appinsights.MetricTelemetry) string + type Config struct + Aggregation time.Duration + Disable DisableConfig + InstrumentationKey string + NodeID string + PoolID string + Processes []string + SamplingRate time.Duration + func ValidateAndBuildConfig(userConfig UserConfig) (Config, error) + func (config Config) Print() + type DisableConfig struct + CPU bool + DiskIO bool + DiskUsage bool + GPU bool + Memory bool + NetworkIO bool + func (d DisableConfig) String() string type NodeStats + CPUPercents []float64 + DiskIO *utils.IOStats + DiskUsage []*disk.UsageStat + Gpus []GPUUsage + Memory *mem.VirtualMemoryStat + NetIO *utils.IOStats + Processes []*ProcessPerfInfo + type UserConfig struct + Aggregation *int + Disable []string + InstrumentationKey *string + NodeID *string + PoolID *string + Processes []string + func (config UserConfig) Merge(other UserConfig) UserConfig + func (config UserConfig) Print() v1.2.0 Feb 4, 2019 Changes in this version + type ProcessPerfInfo struct + func ListProcesses(processNames []string) ([]*ProcessPerfInfo, error) v1.1.1 Jan 17, 2019 v1.1.0 Dec 12, 2018 Changes in this version + type GPUStatsCollector struct + func NewGPUStatsCollector() GPUStatsCollector + func (gpu GPUStatsCollector) GetStats() []GPUUsage + func (gpu GPUStatsCollector) Shutdown() + type GPUUsage struct + GPU float64 + Memory float64 v1.0.1 Dec 10, 2018 v1.0.0 Dec 6, 2018 Changes in this version + const STATS_POLL_RATE + var IS_PLATFORM_WINDOWS = runtime.GOOS == "windows" + func ListenForStats(poolId string, nodeId string, appInsightsKey string) + func PrintSystemInfo() + type AppInsightsService struct + func NewAppInsightsService(instrumentationKey string, poolId string, nodeId string) AppInsightsService + func (service AppInsightsService) UploadStats(stats NodeStats) + type IOAggregator struct + func (aggregator *IOAggregator) UpdateAggregates(currentRead uint64, currentWrite uint64) IOStats + type IOStats struct + type NodeStats struct