anchor.diff:  </outbound-socket-binding>
   ----
   <1> Adjust this value
  -
  -NOTE: In early versions of Hawkular (1.0.0.Alpha2 and before), both the server and monitored will spit out some errors which are ok to ignore.
  
positive.code: 
  [source,xml]
  ----
  <subsystem apiJndiName="java:global/hawkular/agent/monitor/api" numMetricSchedulerThreads="3"
             numAvailSchedulerThreads="3" enabled="true" xmlns="urn:org.hawkular.agent.monitor:monitor:1.0">
    <diagnostics enabled="true" reportTo="LOG" interval="5" timeUnits="minutes"/>
    <storage-adapter type="HAWKULAR"
        username="SET_ME" password="SET_ME"  <!--1-->
        serverOutboundSocketBindingRef="hawkular" />
    <metric-set-dmr name="WildFly Memory Metrics" enabled="true">
      <metric-dmr name="Heap Used" interval="30" timeUnits="seconds" metricUnits="bytes"
                  path="/core-service=platform-mbean/type=memory" attribute="heap-memory-usage#used"/>
      <metric-dmr name="Heap Committed" interval="1" timeUnits="minutes"
                  path="/core-service=platform-mbean/type=memory" attribute="heap-memory-usage#committed"/>
      <metric-dmr name="Heap Max" interval="10" timeUnits="seconds"
                  path="/core-service=platform-mbean/type=memory" attribute="heap-memory-usage#max"/>
      <metric-dmr name="NonHeap Used" interval="30" timeUnits="seconds"
                  path="/core-service=platform-mbean/type=memory" attribute="non-heap-memory-usage#used"/>
      <metric-dmr name="NonHeap Committed" interval="1" timeUnits="minutes"
                  path="/core-service=platform-mbean/type=memory" attribute="non-heap-memory-usage#committed"/>
    </metric-set-dmr>
    <metric-set-dmr name="WildFly Threading Metrics" enabled="true">
      <metric-dmr name="Thread Count" interval="2" timeUnits="minutes" metricUnits="none"
                  path="/core-service=platform-mbean/type=threading" attribute="thread-count"/>
    </metric-set-dmr>
    <metric-set-dmr name="Datasource Pool Metrics">
      <metric-dmr name="Active Count" path="/statistics=pool" attribute="ActiveCount" interval="10" timeUnits="seconds"/>
      <metric-dmr name="Available Count" path="/statistics=pool" attribute="AvailableCount" interval="10" timeUnits="seconds"/>
      <metric-dmr name="Average Blocking Time" path="/statistics=pool" attribute="AverageBlockingTime" interval="10" timeUnits="seconds"/>
      <metric-dmr name="Average Creation Time" path="/statistics=pool" attribute="AverageCreationTime" interval="10" timeUnits="seconds"/>
      <metric-dmr name="Average Get Time" path="/statistics=pool" attribute="AverageGetTime" interval="10" timeUnits="seconds"/>
      <metric-dmr name="Blocking Failure Count" path="/statistics=pool" attribute="BlockingFailureCount" interval="10" timeUnits="seconds"/>
      <metric-dmr name="Created Count" path="/statistics=pool" attribute="CreatedCount" interval="10" timeUnits="seconds"/>
      <metric-dmr name="Destroyed Count" path="/statistics=pool" attribute="DestroyedCount" interval="10" timeUnits="seconds"/>
      <metric-dmr name="Idle Count" path="/statistics=pool" attribute="IdleCount" interval="10" timeUnits="seconds"/>
      <metric-dmr name="In Use Count" path="/statistics=pool" attribute="InUseCount" interval="10" timeUnits="seconds"/>
      <metric-dmr name="Max Creation Time" path="/statistics=pool" attribute="MaxCreationTime" interval="10" timeUnits="seconds"/>
      <metric-dmr name="Max Get Time" path="/statistics=pool" attribute="MaxGetTime" interval="10" timeUnits="seconds"/>
      <metric-dmr name="Max Used Count" path="/statistics=pool" attribute="MaxUsedCount" interval="10" timeUnits="seconds"/>
      <metric-dmr name="Max Wait Count" path="/statistics=pool" attribute="MaxWaitCount" interval="10" timeUnits="seconds"/>
      <metric-dmr name="Max Wait Time" path="/statistics=pool" attribute="MaxWaitTime" interval="10" timeUnits="seconds"/>
      <metric-dmr name="Timed Out" path="/statistics=pool" attribute="TimedOut" interval="10" timeUnits="seconds"/>
      <metric-dmr name="Total Blocking Time" path="/statistics=pool" attribute="TotalBlockingTime" interval="10" timeUnits="seconds"/>
      <metric-dmr name="Total Creation Time" path="/statistics=pool" attribute="TotalCreationTime" interval="10" timeUnits="seconds"/>
      <metric-dmr name="Total Get Time" path="/statistics=pool" attribute="TotalGetTime" interval="10" timeUnits="seconds"/>
      <metric-dmr name="Wait Count" path="/statistics=pool" attribute="WaitCount" interval="10" timeUnits="seconds"/>
    </metric-set-dmr>
    <avail-set-dmr name="Deployment Status">
      <avail-dmr name="Deployment Status" path="/" attribute="status" upRegex="OK" interval="10" timeUnits="seconds"/>
    </avail-set-dmr>
    <avail-set-dmr name="Server Availability" enabled="true">
      <avail-dmr name="App Server" interval="30" timeUnits="seconds"
                 path="/" attribute="server-state" upRegex="run.*"/>
    </avail-set-dmr>
    <resource-type-set-dmr name="Main" enabled="true">
      <resource-type-dmr name="WildFly Server" resourceNameTemplate="WildFly Server"
                         path="/" metricSets="WildFly Memory Metrics,WildFly Threading Metrics"
                         availSets="Server Availability"/>
    </resource-type-set-dmr>
    <resource-type-set-dmr name="Deployment">
      <resource-type-dmr name="Deployment" resourceNameTemplate="Deployment [%2]" path="/deployment=*" parents="WildFly Server" metricSets="Undertow Metrics" availSets="Deployment Status"/>
      <resource-type-dmr name="SubDeployment" resourceNameTemplate="SubDeployment [%-]" path="/subdeployment=*" parents="Deployment" metricSets="Undertow Metrics"/>
    </resource-type-set-dmr>
    <resource-type-set-dmr name="Datasource">
      <resource-type-dmr name="Datasource" resourceNameTemplate="Datasource [%-]" path="/subsystem=datasources/data-source=*" parents="WildFly Server" metricSets="Datasource Pool Metrics,Datasource JDBC Metrics"/>
    </resource-type-set-dmr>
    <managed-servers>
      <local-dmr name="Local Server" <!--2-->
                 enabled="true" resourceTypeSets="Main,Deployment,Datasource"/>
    </managed-servers>
  </subsystem>
  ----
  <1> You need to provide username/password for one Hawkular user. The app server will only show for this user.
  <2> Change 'Local Server' to some *unique* value among your managed machines.
  
  
  * In the `standalone/configuration/standalone.xml` file of your Hawkular instance, add an outbound socket binding
  
negative.code: 
  If you wish to monitor a WildFly instance,  you can do so with the following steps:
  
  * Download the WildFly module from http://download.jboss.org/hawkular/wildfly-monitor/0.4.1/hawkular-monitor-0.4.1-module.zip[here].
  * Unzip the file inside the `modules/system/layers/base` directory of your Hawkular instance
  * In the `standalone/configuration/standalone.xml` file of your Hawkular instance, add the Hawkular Monitor Agent
  extension in the `<extensions>` section:
  