maven plugin which creates a metrics report for mule applications
Usage:
mvn io.github.c-a-services.mule.maven:mule-metrics-report:generate
and then a file target/site/metrics/index.html
will be created.
Commandline attribtes needs to be prefixed to the configuration ones with "mulemetrics.":
-Dmulemetrics.muleAppDirectory=
-Dmulemetrics.mule4AppDirectory=
-Dmulemetrics.outputDirectory=
-Dmulemetrics.ignoreFiles=
For automatic file creation when using mvn package you can add
<plugin>
<groupId>io.github.c-a-services.mule.maven</groupId>
<artifactId>mule-metrics-report</artifactId>
<version>2019.11.1</version>
<executions>
<execution>
<id>generate</id>
<phase>process-resources</phase>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
<configuration>
<!-- optional ignore some generated files -->
<ignoreFiles>
<ignoreFile>api.xml</ignoreFile>
</ignoreFiles>
</configuration>
</plugin>
to your section in the pom.xml.
Example report: (https://c-a-services.github.io/mule-metrics-report/metrics-sample-report/index.html)