Add https://github.com/soulgalore/jdbcmetrics to your Java webapp. Turn on metrics by response headers, that will return the number of database reads & database writes a page generates. Install the JDBCMetrics plugin in Jenkins and you can now see the number of database queries generated for every build in your CI.
mvn install
- The Jenkins built in Publish JUnit test result report will use the jdbcmetrics-junit.xml file to publish your test report.
- Publish HTML reports will publish the result as a nice HTML report, using jdbcmetrics.html.
- Plot build plugin will help you build graphs between builds using the jdbcmetrics.xml file.
Copyright 2013 Peter Hedenskog
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.