   `value` float default NULL,
   `status` enum('0','1','2','3','4') default NULL,
   PRIMARY KEY  (`id_bin`),
-  KEY `index_metric` (`id_metric`)
+  KEY `index_metric` (`id_metric`),
+  KEY `ctime` (`ctime`)
 ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
+
+-- --------------------------------------------------------
+
+-- 
+-- Structure de la table `data_stats_daily`
+-- 
+
+CREATE TABLE `data_stats_daily` (
+  `data_stats_daily_id` int(11) NOT NULL auto_increment,
+  `metric_id` int(11) default NULL,
+  `min` int(11) default NULL,
+  `max` int(11) default NULL,
+  `average` int(11) default NULL,
+  `count` int(11) default NULL,
+  `day_time` int(11) default NULL,
+  PRIMARY KEY  (`data_stats_daily_id`),
+  KEY `metric_id` (`metric_id`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
+
+-- --------------------------------------------------------
+
+-- 
+-- Structure de la table `data_stats_monthly`
+-- 
+
+CREATE TABLE `data_stats_monthly` (
+  `data_stats_monthly_id` int(11) NOT NULL auto_increment,
+  `metric_id` int(11) default NULL,
+  `min` int(11) default NULL,
+  `max` int(11) default NULL,
+  `average` int(11) default NULL,
+  `count` int(11) default NULL,
+  `month_time` int(11) default NULL,
+  PRIMARY KEY  (`data_stats_monthly_id`),
+  KEY `metric_id` (`metric_id`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
+
+-- --------------------------------------------------------
+
+-- 
+-- Structure de la table `data_stats_yearly`
+-- 
+
+CREATE TABLE `data_stats_yearly` (
+  `data_stats_yearly_id` int(11) NOT NULL auto_increment,
+  `metric_id` int(11) default NULL,
+  `min` int(11) default NULL,
+  `max` int(11) default NULL,
+  `average` int(11) default NULL,
+  `count` int(11) default NULL,
+  `year_time` int(11) default NULL,
+  PRIMARY KEY  (`data_stats_yearly_id`),
+  KEY `metric_id` (`metric_id`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
 
 -- --------------------------------------------------------
 

  `special` enum('0','1') default '0',
  `storage_type` enum('0','1','2') default '2',
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

-- --------------------------------------------------------


  PRIMARY KEY  (`log_id`),
  KEY `host_name` (`host_name`(64)),
  KEY `service_description` (`service_description`(64)),
  KEY `status` (`status`),
  KEY `output` (`output`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ;

-- --------------------------------------------------------
