Skip to content

Latest commit

 

History

History
54 lines (40 loc) · 2.49 KB

README.md

File metadata and controls

54 lines (40 loc) · 2.49 KB

License: Apache 2.0 Build Status Maven Central

Patra Web

  • Creates a Webjar containing the static content of patra. Webjars is a convention for packaging client-side web libraries as JAR dependencies.
  • The content is served from the the following url: http://<host>:<port>/patra-ui.html

Patra visualizes Dropwizard Metrics in a user friendly way.

Maven

The current version is 2.0.0, which is compatible with Patra 2.0.0. To use the Patra Webjar, add the following dependency to your pom.xml.

<dependency>
    <groupId>com.github.indrabasak</groupId>
    <artifactId>patra-web</artifactId>
    <version>2.0.0</version>
</dependency>

Build

  • Check out the project.
  • Execute the following Maven command from the parent directory:
mvn clean install

Once the build completes successfully, you should have patra-web-1.0.0.jar in the target folder.

The patra version is specified in the pom.xml where patra.version is the git tag on the patra repo.

Usage

Spring Boot picks up the content of a webjars if the jar is detected in the classpath. Please see the webjar documentation to find out more on how to configure a webjar with a Spring application.

The content of the patra-web webjar can be accessed from the following url: http://<app host>:<app port>/patra-ui.html

Please note that url for fetching the metric is http://<app host>:<app port>/metrics/metrics. If the metrics url is different, change it in the pom.xml by modifying the Renaming the metrics url step.

License

The Patra Web code is shared under the terms of Apache License v2.0.