gitbucket-monitoring-plugin icon indicating copy to clipboard operation
gitbucket-monitoring-plugin copied to clipboard

Add Response Time Statistics

Open aadrian opened this issue 8 years ago • 5 comments

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.

aadrian avatar Jun 27 '17 11:06 aadrian

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

  • Web browser response time ?
  • DataBase response time ?
  • CPU execution time ?

etc...

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

yoshinorin avatar Jun 27 '17 12:06 yoshinorin

@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)

aadrian avatar Jun 27 '17 15:06 aadrian

@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 ?

yoshinorin avatar Jun 29 '17 04:06 yoshinorin

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.

aadrian avatar Jun 29 '17 08:06 aadrian

@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.

yoshinorin avatar Jun 29 '17 13:06 yoshinorin