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

Max value for incoming http connections should be captured via MaterializationMetricsCollector #680

Open
anilgursel opened this issue Jul 31, 2018 · 7 comments

Comments

@anilgursel
Copy link
Collaborator

No description provided.

@anilgursel
Copy link
Collaborator Author

Currently, we see active, created, terminated rates. But, having a max would be useful as well, which we had in the past.

@akara
Copy link
Contributor

akara commented Aug 2, 2018

I'm looking into this issue. We can implement it in the MaterializationMetricsCollector. But IMO this should not be an issue for MaterializationMetricsCollector but rather in the JmxReporter.

@anilgursel
Copy link
Collaborator Author

The active, created and terminated are three separate metrics and independent from JmxReporter's view. Not sure, how can that be achieved that way.

@akara
Copy link
Contributor

akara commented Aug 6, 2018

These three are totally independent counters. created and terminated only get incremented. Max is always the current value. active gets incremented and decremented. This is where the max makes sense. But considering the concurrency on this metrics, what is even a reliable way to obtain a max short of putting another lock around both increment and max?

@anilgursel
Copy link
Collaborator Author

It is best effort. It can be another gauge or counter that shows the max of active ever reached.

@akara
Copy link
Contributor

akara commented Aug 6, 2018

That's exactly what I mean, should derivation of the max be a separate counter, or should it be the monitoring infrastructure?

@anilgursel
Copy link
Collaborator Author

If Jmx Reporter already has the capability, I think we can utilize that, or potentially use a different metric that also keeps track of the max.

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

2 participants