Exemple #1
0
 private void InitMonitors()
 {
     cpuMonitor = new Monitor <Dictionary <string, Dictionary <string, object> > >("cpu");
     switch (AgentConfig.GetCloudName())
     {
     case "datacenter":
     case "azure":
         foreach (var kvp in FetchCpus())
         {
             cpuMonitor.metadata[kvp.Key] = kvp.Value;
         }
         break;
     }
     memoryMonitor      = new Monitor <Dictionary <string, string> >("memory");
     diskMonitors       = new Dictionary <string, Monitor <Dictionary <string, Dictionary <string, string> > > >();
     interfaceMonitors  = new Dictionary <string, Monitor <Dictionary <string, Dictionary <string, string> > > >();
     filesystemMonitors = new Dictionary <string, Monitor <Dictionary <string, string> > >();
 }