Dstat graph using Vmstax
Generating graphs from dstat log files is now possible using Vmstax. At the origin, Vmstax was created to build graphics from vmstat log files. It is very convenient to monitor the server load during a load test. All you had to do is to capture the log with a command like “vmstat -n 5 > output.log“, then upload the log file into vmstax and finally, export the graphs as images to include them into reports.
Actually, it is not a so good solution to analyze your servers : a lot of things is missing like network traffics, load per cpu, io per disk and others. Mpstat, iostat, ifstat can be used together but this is inconvenient because you have to manage several log ouputs.
Dstat is a versatile replacement for vmstat, iostat, netstat and ifstat. You can configure it with a bunch of options and you can even developp your own plugins for your specific needs. So, you have only one command to monitor what ever you want.
Here is an example of dstat output :
To draw charts from dstat output with Vmstax :
1) First, capture the dstat output : you have to use the output option. It will produce a csv log file that can be uploaded inside Vmstax. Here is an example :
dstat -c -n -N eth0,lo -m -s -d –output dstat.csv
2) Then, start Vmstax, upload the dstat.csv file and export the graphs as png. Pay attention to choose the ‘dstat’ format inside the upload combo box.
Here is some example graphs :
Limitations : Vmstax is not able to graph all the available options of dstat. If you think one is missing, contact the author and talk about it.
Links :
DStat home page
Vmstax
Survey about vmstax
Please take time to answer this little survey about your use of vmstax.
Vmstax – Build charts/graphs from vmstat log
Hi,
Learning Flex 3, i wanted to test the chart functionnalities. As a case study, i took the problematic of drawing charts from a vmstat log. At the end of your load tests, you have to build the charts. It may takeĀ some times to do that with Word or OpenOffice and it is not one of my favorite task. So, i decided to make a littleapplication in Flex : you upload your vmstat log, the chars appears and you can export them as images.
Click here to test: vmstax
Maven Blame Plugin – Add developper info in checkstyle/pmd/findbugs reports
Checkstyle/Pmd/Findbugs are good tools to test quality of your java code but you don’t know in your team who respects code standing rules and who does not. Maven Blame Plugin allows you to have that kind of informations. For each code rule violation, it queries your subversion repository to have the last commiter of the corresponding line code.
Maven Blame Plugin does 2 things :
- It updates the checkstyle/pmd/findbugs xml reports : it adds an attribute @author on each code vilolations. External tools can use this new attribute to improve their reports.
- It generates a blame report with some global statistics about developpers.
To use the maven blame plugin, you have to change the pom.xml of your project.
First, declare the codehaus snapshot repository :
<pluginRepositories>
<pluginRepository>
<id>codehaus-snapshot</id>
<name>Snapshot codehaus repository</name>
<url>http://snapshots.repository.codehaus.org</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
Then, add the different reports(checkstyle,pmd,findbugs) with at the end, the blame one :
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.codehaus.maven-blame-plugin</groupId>
<artifactId>maven-blame-plugin</artifactId>
<version>1.0-SNAPSHOT</version>
<configuration>
<enableCheckstyle>true</enableCheckstyle>
<enablePmd>false</enablePmd>
<enableFindBugs>false</enableFindBugs>
<fullBlame>true</fullBlame>
</configuration>
</plugin>
</plugins>
</reporting>
Endly, launch the site generation :
mvn site
Maven Blame connects to your svn repository and it may need to authenticate. Authentication information can be indicated via maven properties : maven.scm.username and maven.scm.password.
For more informations :
Maven Blame Plugin Web Site
Example of blame report
Example of checkstyle report xml file