https://github.com/indrabasak/patra-web
Patra Webapp for viewing Dropwizard metrics.
https://github.com/indrabasak/patra-web
dropwizard metrics-visualization
Last synced: 5 months ago
JSON representation
Patra Webapp for viewing Dropwizard metrics.
- Host: GitHub
- URL: https://github.com/indrabasak/patra-web
- Owner: indrabasak
- Created: 2017-04-28T05:24:23.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2020-10-20T19:22:44.000Z (over 5 years ago)
- Last Synced: 2025-07-28T21:56:48.093Z (11 months ago)
- Topics: dropwizard, metrics-visualization
- Language: Java
- Homepage: https://indrabasak.github.io/patra-web/
- Size: 59.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://opensource.org/licenses/Apache-2.0) [![Build Status][travis-badge]][travis-badge-url] [![Maven Central][maven-central-badge]][maven-central-url]

Patra Web
==========================
* Creates a [Webjar](http://www.webjars.org/) containing the static content of [patra](https://indrabasak.github.io/patra/).
Webjars is a convention for packaging client-side web libraries as JAR dependencies.
* The content is served from the the following url: `http://:/patra-ui.html`
Patra visualizes [Dropwizard Metrics](http://metrics.dropwizard.io/) in a user friendly way.
# Maven
The current version is `2.0.0,` which is compatible with [Patra 2.0.0](https://indrabasak.github.io/patra/). To use
the Patra Webjar, add the following dependency to your `pom.xml.`
```xml
com.github.indrabasak
patra-web
2.0.0
```
# Build
* Check out the [project](https://github.com/indrabasak/patra-web).
* 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](https://github.com/indrabasak/patra).
# Usage
Spring Boot picks up the content of a webjars if the jar is detected in the classpath. Please see the
[webjar documentation](http://www.webjars.org/documentation#springmvc) 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://:/patra-ui.html`
Please note that url for fetching the metric is `http://:/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](https://opensource.org/licenses/Apache-2.0).
[travis-badge]: https://travis-ci.org/indrabasak/patra-web.svg?branch=master
[travis-badge-url]: https://travis-ci.org/indrabasak/patra-web
[maven-central-badge]: https://maven-badges.herokuapp.com/maven-central/com.github.indrabasak/patra-web/badge.svg
[maven-central-url]: https://maven-badges.herokuapp.com/maven-central/com.github.indrabasak/patra-web/