Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UserMetricsSystem.counter() is not reset after metrics are pushed to InfluxDB #30

Open
ghost opened this issue Nov 19, 2019 · 0 comments

Comments

@ghost
Copy link

ghost commented Nov 19, 2019

I'm using UserMetricsSystem.counter("my-counter") for recording bad payloads. I can see that the metrics are being pushed every 10 seconds to InfluxDB.

I'm incrementing the counter continuously, after 10 sec the values are pushed to Influx without being reset for the next batch. With this behavior, I'm losing control over raw values which can be aggregated as per specified interval.

I'm initializing the metrics as follows -
UserMetricsSystem.initialize(sparkSession.sparkContext(), Metrics.METRICS_NAMESPACE);

Any configs or add so that MetricsReporter resets the counters?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants