rackerlabs/blueflood — pull request #277 by chinmay-gupte (2014-03-19 23:54:55+00:00)
Title: Add support to drop metrics for certain tenants.

Sometimes, we want to blacklist a certain group of tenants and stop ingesting and rolling up their metrics. This can be for a variety of reasons including capacity and access control issues. This PR adds functionality to be able to do this. Here's is a quick review of the flow:

1. Any Ingestion Service will have a `Pattern` variable set if regex string for matching tenantIDs to drop metrics is specified as a configuration property of `TENANT_REGEX_FOR_DROPPING_METRICS`, or it will null by default.
2. If the pattern has been specified, its upto the Ingestion service implementation to handle it. For example, the `HttpIngestionService` implementation, will drop the metrics coming in for the tenantID which matches the supplied pattern in `HttpMetricsIngestionHandler`.
3. Also, the RollupService will stop rolling up metrics belonging to pattern-matching tenant. This has been implemented in `LocatorFetchRunnable`

__TODO__

Implement this functionality for PreAggreggatedMetrics HttpHandler