[
https://issues.apache.org/jira/browse/EAGLE-75?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15045077#comment-15045077
]
Su Ralph commented on EAGLE-75:
-------------------------------
Most metrics are window sliding, not exactly what we want. This is the same
different behavior of timeWindow and timeBatch in our CEP.
Two options:
a. customize the metric by extending from the dropwizard metrics framework.
Use a producer/consumer model to do snapshot, the trigger point is at the
metric update time. (We assuming the data is a continous stream whose average
data point interval is small enough compare to the snapshot interval. For those
doesn't match this character, use another reap thread would be enough).
Make the post action extensbile, then we might have this feature posted
back to metrics-core and could be framework feature.
b. your init option of dynamic metric register/unregister would still be OK
for our case, performance impact could be controlled with proper interval
setting. Workable but not perfect.
I would suggest option a.
> Leverage dropwizard metrics for generating Eagle Topology and DataSource
> Metrics
> --------------------------------------------------------------------------------
>
> Key: EAGLE-75
> URL: https://issues.apache.org/jira/browse/EAGLE-75
> Project: Eagle
> Issue Type: Sub-task
> Affects Versions: 0.3.0
> Reporter: Libin, Sun
> Assignee: Libin, Sun
> Fix For: 0.3.0
>
>
> As a monitoring system, eagle need to report & record both the datasource
> data distribution metric & topology running status metrics to let user have
> better understanding of the system running status.
> Previously we added a simple metric framework to support user cases like
> [EAGLE-2](https://issues.apache.org/jira/browse/EAGLE-2) ,
> [EAGLE-24](https://issues.apache.org/jira/browse/EAGLE-24)
> Considering we will have a lot metric user cases to onboard later, we need a
> better metric framework to make it easier to support these cases, and after
> some investigation, we found [Dropwizard
> metrics](https://github.com/dropwizard/metrics) is a good one that can match
> our needs, So we want to integrate Dropwizard metrics with eagle
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)