Example #1
0
 def setUp(self):
     self.compression = 500
     self.trials = 100
     self.datapoints = 100000
     self.quantiles = [
         0.0001, 0.001, 0.01, 0.1, 0.25, 0.5, 0.75, 0.9, 0.99, 0.999, 0.9999
     ]
     self.md = MergeDigest(self.compression)
Example #2
0
 def __init__(self, config, logger, options):
     super(FlowDifference, self).__init__(config, logger, resource={'metric_sink': 'RedisSink',
                                                                    'output_sink': 'GraphiteSink'})
     self.namespace = 'FlowDifference'
     self.service = options['service']
     self.params = options['params']
     self.error_types = ['norm']
     self.tdigest = MergeDigest()
     self.tdigest_key = 'md_flow:%s' % (self.service)
     self.error_evals = {
         'tukey': eval_tukey,
         'quantile': eval_quantile
     }
Example #3
0
 def __init__(self, config, logger, options):
     super(SeasonalDecomposition, self).__init__(config,
                                                 logger,
                                                 resource={
                                                     'metric_sink':
                                                     'RedisSink',
                                                     'output_sink':
                                                     'GraphiteSink'
                                                 })
     self.namespace = 'SeasonalDecomposition'
     self.service = options['service']
     self.params = options['params']
     self.tdigest_key = 'md:%s' % self.service
     self.tdigest = MergeDigest()
     self.error_eval = {'tukey': eval_tukey, 'quantile': eval_quantile}
Example #4
0
 def __init__(self, config, logger, options):
     super(SeasonalDecompositionEnsemble, self).__init__(config,
                                                         logger,
                                                         resource={
                                                             'metric_sink':
                                                             'RedisSink',
                                                             'output_sink':
                                                             'GraphiteSink'
                                                         })
     self.namespace = 'SeasonalDecompositionEnsemble'
     self.service = options['service']
     self.params = options['params']
     self.error_types = ['norm', 'abs']
     self.tdigests = {}
     self.tdigest_keys = {}
     for error_type in self.error_types:
         self.tdigests[error_type] = MergeDigest()
         self.tdigest_keys[error_type] = 'md_ensemble:%s::%s' % (
             self.service, error_type)
     self.error_evals = {'tukey': eval_tukey, 'quantile': eval_quantile}