<p>In <a href="https://github.com/opentechinstitute/mlab-observatory/pull/29#discussion-diff-21614793">convert_from_telescope/sample_checking.py</a>:</p>
<pre style='color:#555'>> +  def add_to_counts(self, metadata, results):
> +    """Add result data to overall sample counts.
> +
> +    Args:
> +      metadata: (dict) A dictionary of metadata describing the results data.
> +        Currently the only supported value for the 'metric' key is
> +        'download_throughput'.
> +
> +      results: (list) A list of (datetime, value) pairs representing Telescope
> +        results for the given metadata.
> +
> +    Raises:
> +      ValueError: If the metadata parameter does not specify
> +        'download_throughput' as the value of the 'metric' key.
> +    """
> +    if metadata['metric_name'] != 'download_throughput':
</pre>
<p>Hmm, the problem is that if we take out this check here, we have to maintain counts per metric. Otherwise if the caller doesn't know they have to only pass in download_throughput, the results for all metrics get added together, which we don't want.</p>

<p>Then we have the issue that when the caller calls <code>blacklister.is_blacklisted('lga01-comcast-upload_throughput...')</code> something in the stack has to do something like:</p>

<pre><code># Workaround until Observatory supports omitting datasets on a per-metric basis
if metadata['metric_name' != 'download_throughput':
  metatadata['metric_name'] = `download_throughput`
</code></pre>

<p>Actually, now that I write that out, it doesn't seem so bad. The hacky workaround stuff could be contained at a high level in <code>DataFileBlacklister</code> rather than way down in <code>SampleCounter</code>. I'll do it!</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/opentechinstitute/mlab-observatory/pull/29/files#r21614793">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AC7qBHYz8Sc3faiH7Yacsi_F66hHEPRFks5nWGxWgaJpZM4DGR0-.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
  <div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
    <link itemprop="url" href="https://github.com/opentechinstitute/mlab-observatory/pull/29/files#r21614793"></link>
    <meta itemprop="name" content="View Pull Request"></meta>
  </div>
  <meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>