Giter Site home page Giter Site logo

garethahealy / jolokia-jvm-hawkular Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 60 KB

[DEAD] PoC to investigate whether its possible to extend the Jolokia JVM Agent to push data into Hawkular Metrics

License: Apache License 2.0

Java 84.83% Shell 15.17%
hawkular jolokia jolokia-agent

jolokia-jvm-hawkular's Introduction

Build Status Release Version License

jolokia-jvm-hawkular

PoC to investigate whether its possible to extend the Jolokia JVM Agent to push data into Hawkular Metrics. The Jolokia Agent is embedded with collectors which collect and then send to Hawkular Metrics.

Build

hawkular-client-java

Since the version of the Hawkular Java Client i am using isn't currently released, you will need to build from source:

git clone -b metrics-19 https://github.com/garethahealy/hawkular-client-java.git
cd hawkular-client-java
mvn clean install -DskipTests

You can then build the rest of the project:

mvn clean install

Running Outside of OpenShift

Running example

The cdi-simple-jetty example is based on:

https://github.com/fabric8io/ipaas-quickstarts/tree/cc3eb91c365936e40b759d321974329167073bc3/archetypes/cdi-camel-http-client-archetype 

Once it is built, you can run the example by:

cd cdi-simple-jetty/target/hawt-app/bin
./run.sh

You can then go to:

http://localhost:8080/camel/hello?name=bob

Running Hawkular Metrics

To run hawkular metrics, you can use the following repo, which contains all the needed Dockerfiles:

git clone https://github.com/garethahealy/hawkular-aio-docker.git
docker-compose up

Running Inside of OpenShift

Running example

I am using the CDK for development. If you haven't used that before, check out the below:

https://blog.openshift.com/how-to-install-red-hat-container-development-kit-cdk-in-minutes/

Once the CDK if up and running, you'll need to deploy a nexus as we need to deploy the hawkular-client and agent as they are currently snapshots.

Deploy Nexus

https://blog.openshift.com/improving-build-time-java-builds-openshift/

Build/Deploy Agent/Simple Jetty

mvn clean install
mvn deploy -DaltDeploymentRepository=local-nexus-snapshots::default::http://nexus.rhel-cdk.10.1.2.2.xip.io/content/repositories/snapshots/

Build/Deploy Hawkular Client

git clone https://github.com/garethahealy/hawkular-client-java.git
cd hawkular-client-java
mvn clean install -DskipTests
mvn deploy -DaltDeploymentRepository=local-nexus-snapshots::default::http://nexus.rhel-cdk.10.1.2.2.xip.io/content/repositories/snapshots/ -DskipTests

Build/Deploy cdi-simple-jetty to OSE

oc project sample-project
oc new-app registry.access.redhat.com/jboss-fuse-6/fis-java-openshift~https://github.com/garethahealy/jolokia-jvm-hawkular.git --context-dir=cdi-simple-jetty

jolokia-jvm-hawkular's People

Contributors

garethahealy avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.