graphite-clickhouse icon indicating copy to clipboard operation
graphite-clickhouse copied to clipboard

Please implement filtering based on http header

Open bzed opened this issue 6 years ago • 0 comments

Hi,

it would be awesome if graphite-clickhouse could filter series based on an http header (or something similar). What I'm thinking about is basically:

  • pass X-GRAPHITE-CUSTOMER: 12345 in the request
  • have a config file which allows prefixes for the customer:
[12345]
blacklisted-prefixes = ["*"]
whitelisted-prefixes = ["foo", "bar", "carbon"]

With such a configuration graphite-clickhouse should just behave like always, but limit all its output to the metrics matching the whitelisted (or not blacklisted) prefixes.

Thanks for considering,

Bernd

bzed avatar Aug 14 '19 14:08 bzed