yoshinorin / gitbucket-monitoring-plugin

Provides monitoring page which contains machine information, resources, processes ...etc
Apache License 2.0
16 stars 2 forks source link

Add Response Time Statistics #16

Open aadrian opened 7 years ago

aadrian commented 7 years ago

Since the main use case for a monitoring plug-in is to know when the system has problems, it would be very useful to have response time statistics too.

Thank you.

yoshinorin commented 7 years ago

Hi @aadrian , what is mean of a response time statistics ?

etc...

Could you tell me some details ? (Sample commands, reference url or something...)

aadrian commented 7 years ago

@YoshinoriN web tier response time, since it factors in the other values too (so not just the Browser but also other Git Clients, or API calls)

yoshinorin commented 7 years ago

@aadrian

OK, I understand. But I can't come up with how to implement it. My understanding that it can't measure accurately by only server side.

And maybe user have to install some package (ex. apache bench) on his server, even if it can measure by only server side. Maybe can not measure using by only default installed packages.

Do you have any ideas ?

aadrian commented 7 years ago

My understanding that it can't measure accurately by only server side.

With a ServletFilter (since the web app runs inside a servlet container) it should be measurable, since the entire traffic goes thru the top Filter.

Here's a very primitive example: http://www.oracle.com/webfolder/technetwork/tutorials/obe/java/servletFilters/servlet-filters.html

The main value would be of course not just in the absolute values, but their distribution over time.

yoshinorin commented 7 years ago

@aadrian

OK. I will try to implement it or create another plugin. I'm not familiar with Java also Scala. And I can not spend much time. So, I think it will take time.