Skip to content

Commit

Permalink
Fix typo where example not displayed on ReadMe
Browse files Browse the repository at this point in the history
Added correct tages to indicate xml on the ReadME page.
  • Loading branch information
kailashhd authored and Cyrille Le Clerc committed Feb 6, 2018
1 parent b2b350e commit 0d559cc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ Example - collect the `ThreadCount` attribute from the Threading MBean:

Example - collect the `SystemLoadAverage` gauge attribute from the OperatingSystem MBean:

<query objectName="java.lang:type=OperatingSystem" attributes="SystemLoadAverage" type="gauge" resultAlias="#attribute#"/>
```xml
<query objectName="java.lang:type=OperatingSystem" attributes="SystemLoadAverage"
type="gauge" resultAlias="#attribute#"/>
```

(i) Note that the `type` attribute is customizable. Output writers such as the [LibratoWriter](https://github.com/jmxtrans/jmxtrans-agent/blob/jmxtrans-agent-1.2.4/src/main/java/org/jmxtrans/agent/LibratoWriter.java), [StatsDOutputWriter](https://github.com/jmxtrans/jmxtrans-agent/blob/jmxtrans-agent-1.2.4/src/main/java/org/jmxtrans/agent/StatsDOutputWriter.java) and [PerMinuteSummarizerOutputWriter](https://github.com/jmxtrans/jmxtrans-agent/blob/jmxtrans-agent-1.2.4/src/main/java/org/jmxtrans/agent/PerMinuteSummarizerOutputWriter.java) are aware of the `type`s `counter` and `gauge` and assume that non defined `type`means `counter`.

Expand Down

0 comments on commit 0d559cc

Please sign in to comment.