Re: Limiting metrics logs to custom metric

2020-07-08 Thread Chesnay Schepler
Not really; but essentially you have to override SLF4JReporter#notifyOfAddedMetric and filter the metrics you're interested in. Then build the flink-metrics-slf4j module, and replace the corresponding jar in your distribution. On 08/07/2020 18:20, Manish G wrote: Ok.Any resource on same? On

Re: Limiting metrics logs to custom metric

2020-07-08 Thread Manish G
Ok.Any resource on same? On Wed, Jul 8, 2020, 9:38 PM Chesnay Schepler wrote: > There's no built-in functionality for this. You could customize the > reporter though. > > On 08/07/2020 17:19, Manish G wrote: > > Hi, > > > > I have added a Meter in my code and pushing it to app logs using slf4j

Re: Limiting metrics logs to custom metric

2020-07-08 Thread Chesnay Schepler
There's no built-in functionality for this. You could customize the reporter though. On 08/07/2020 17:19, Manish G wrote: Hi, I have added a Meter in my code and pushing it to app logs using slf4j reporter. I observe that apart from my custometrics, lots of other metrics like gauge, histog

Limiting metrics logs to custom metric

2020-07-08 Thread Manish G
Hi, I have added a Meter in my code and pushing it to app logs using slf4j reporter. I observe that apart from my custometrics, lots of other metrics like gauge, histogram etc is also published. It makes it difficult to filter out data for generating splunk graphs. Is there a way to limit publis