cangwolf / javamelody

Automatically exported from code.google.com/p/javamelody
0 stars 0 forks source link

Report Free Diskspace in "Other Charts" #341

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. View JavaMelody monitoring interface
2. Scroll to "System Information"
3. Click on "Details" to Expand.

What is the expected output? What do you see instead?
Free Diskspace is reported (ie, 3,798 Mb).
1. I would like to see free diskspace graphed by JavaMelody in the "Other 
charts" section.  
2. It would also be useful to see the graphs for all the filesystems.  For 
instance, the Free Diskspace reported currently does not report for the 
filesystem where I actually store my JIRA and Confluence data (I use a symbolic 
link so the data is not actually in the JIRA filesystem.

What version of the product are you using? On what application server, JDK, 
operating system?

JavaMelody 1.46.0 
JIRA v6.0.8
Tomcat/7.0.29
Java 1.7.0_25-b15  (JDK)
MySQL, 5.5.19
Linux

Please provide any additional information below.

The utility of this enhancement is to better allow the user to spot trends... 
allowing diskspace to be planned for and upgraded *before* there is problem.

Original issue reported on code.google.com by msymo...@gmail.com on 13 Sep 2013 at 6:05

GoogleCodeExporter commented 9 years ago
I have added a chart of "Free disk space" in "Other charts".
This is in trunk (revision 3530) and ready for the next release (1.48).
I have made a new build including that for JIRA/Confluence/Bamboo and it is 
available at:
https://javamelody.googlecode.com/files/jira-javamelody-20131012.jar

But adding a chart for each file system may be a bit too much.

Original comment by evernat@free.fr on 12 Oct 2013 at 11:09

GoogleCodeExporter commented 9 years ago
Tested on Confluence v5.3.1 with java 1.7.0_40 JDK,  using 
jira-javamelody-20131105.jar. 

As can be seen, the chart is working - and I checked that the stats are 
accurate.

So, thank you very much indeed.

Some additional suggestions/feedback:

1) The filesystem that the graph is reporting on should be named in the graph.

2) The filesystem that JavaMelody has chosen to report upon is an important 
data filesystem for me...  but it's not the filesystem that I worry about the 
most.  So, it would be useful to be able to report on more than one filesystem. 
 Yes, I saw the comment that this "may be a bit too much". =)

3) The mean/maximum figure should be to 1 decimal place (ie, 3.2 G) in order to 
match the Y axis on the graph - and the output from df -h.

4) As this is a graph of available disk space, it would be more useful to 
report mimimum rather than maximum.

5) red vs green shading in graph:  shouldn't things go red when free space is 
LESS rather than MORE? ie, in the attached example, everything should be green 
- and only go red if the free diskspace falls to 0.5 G (or 10% or whatever).

Original comment by msymo...@gmail.com on 12 Nov 2013 at 1:51

Attachments: