Skip to content

Instantly share code, notes, and snippets.

View theute's full-sized avatar
🏠
Working from home

Thomas Heute theute

🏠
Working from home
  • Red Hat
  • Charmey, Switzerland
View GitHub Profile
I am trying to figure out who owns hawkular-bot account...
If you do, please contact me
@theute
theute / instrument.sh
Created September 16, 2015 14:30
Instrument a WF9 server for Hawkular
#/bin/bash
function usage {
echo "Usage: $0 wildfly_zip_location agent_version standalone_patch username password server_ip server_port wildfly_server_name "
echo " wildfly_zip_location: file location of a WildFLy distribution"
echo " wildfly_server_name: Server name to give to the WildFly instance"
echo " agent_version: Version of the Hawkular agent to install or LATEST for the latest release"
echo " standalone_patch: Patch file to apply on standalone.xml"
echo " username"
echo " password"
@theute
theute / feed story
Created January 16, 2015 15:06
Feed story
I am some piece of code in charge of "monitoring" EAP:
I get born, register myself and receive an ID to remember:
POST /hawkular/inventory/feed
I declare all resources that I monitor and receive IDs for those resources:
POST /hawkular/inventory/resource (Create EAP server resource)
POST /hawkular/inventory/resource (Create WAR app resource)
If I didn't declare resources relationships when I created resource I add them: