pinterest / elixometer

A light Elixir wrapper around exometer.

Home Page:https://hexdocs.pm/elixometer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't limit the datapoints elixometer will subscribe to.

obmarg opened this issue · comments

I've been looking into integrating elixometer with one of our applications that has quite a few histograms in it. Because elixometer subscribes to all the datapoints of a metric, this means I get 11 datapoint outputs for each histogram, when I'm usually only interested in 2 or 3 of them. It's not a massive problem, but it'd be nice if elixometer had some way of customising which datapoints of a metric are subscribed to.

A configurable blacklist of datapoints seems like it'd be the simplest option, if not very flexible.

Happy to put together a PR for this if it sounds like something that would be accepted.

This seems reasonable; wheat are your thoughts?
How are you defining the metrics?

@obmarg this is merged in master, it will go in release 1.3.0, you can track that release here.

Simply add a list of datapoints you don't want to to see as excluded_datapoints in your config