= MicroProfile Metrics

This fraction implements the https://github.com/eclipse/microprofile-metrics/releases/tag/1.0[MicroProfile Metrics 1.0 specification].

To use this in your project you need the following in your pom.xml

[source,xml]
----
   <dependency>
      <groupId>io.thorntail</groupId>
      <artifactId>microprofile-metrics</artifactId>
    </dependency>
----

There is no need to include the MicroProfile Metrics API dependency, as it comes with the fraction.

By default the base metrics and vendor metrics of the server are exposed as required by the spec.

NOTE: Exposing application metrics currently only works if you chose `war` packaging of your application

[source,xml]
----
<project>
  <groupId>org.example</groupId>
  <artifactId>thorntail-demo</artifactId>
  <packaging>war</packaging> <!--1-->
----
<1> war packaging
