Name: sample.metrics
Owner: WASdev
Description: A simple sample of how to add metrics to your Liberty apps and visualize them in Grafana.
Created: 2017-06-15 16:30:00.0
Updated: 2017-06-20 20:52:08.0
Pushed: 2017-08-02 09:59:40.0
Homepage: null
Size: 72436
Language: Java
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This project contains a simple Servlet application that has been customised to emit metrics from the WebSphere Liberty server and the app using the Dropwizard Metrics API. The sample also demonstrates (using Docker containers) how to monitor your Liberty metrics using collectd, Graphite, and Grafana.
The instructions below are minimal so that you can just get the sample running. For more detail and for instructions on how to add metrics to a servlet application, check out this article on WASdev.net.
To run the entire demonstration:
clone https://github.com/WASdev/sample.metrics.git
sample.metrics
directory:ample.metrics
clean install
er build -t example:liberty .
er run --name liberty -d -p 9080:9080 -p 9443:9443 example:liberty
collectd
directory:ollectd
d 755 collectd_graphite_setup.sh
llectd_graphite_setup.sh
(This copies some files collectd needs from the running Liberty container, builds a collectd Docker image, runs a Graphite Docker container from DockerHub, and runs the collectd Docker container.er run -i --name grafana -d -p 3000:3000 --link graphite grafana/grafana
sample.metrics/grafana/MetricsSampleDashboard.json
.© Copyright IBM Corporation 2017.
nsed under the Apache License, Version 2.0 (the "License");
may not use this file except in compliance with the License.
may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
ss required by applicable law or agreed to in writing, software
ributed under the License is distributed on an "AS IS" BASIS,
OUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
the License for the specific language governing permissions and
tations under the License.