Esempio n. 1
0
        public void Can_load_CLR_metrics()
        {
            Metrics.Clear();
            MachineMetrics.InstallCLRLocksAndThreads();
            IDictionary <MetricName, IMetric> allMetrics = Metrics.All;

            Assert.IsTrue(allMetrics.Count > 0);
        }
Esempio n. 2
0
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();

            RegisterGlobalFilters(GlobalFilters.Filters);
            RegisterRoutes(RouteTable.Routes);

            MachineMetrics.InstallPhysicalDisk();
            MachineMetrics.InstallLogicalDisk();
            MachineMetrics.InstallCLRLocksAndThreads();

            Metrics.Gauge(typeof(MvcApplication), "hey_you_guys", () =>
            {
                return(12);
            });
        }