Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: update post per CORE-62143

...

You can use GET or POST to upload metrics to the Metric Browser under Application Performance -> <Tier> where the tier is the one defined for the Standalone Machine Agent.

The format for GET is:

Code Block
GET /machineagent/metrics

For example:

Code Block
http://host:port/machineagent/metrics?name=Custom Metrics|Test|My Metric&value=42&type=average

The format for POST is:

Code Block
POST /machineagent/metrics

with header:

Code Block
Content-Type: application/xml

with body content:

Code Block
<?xml version="1.0"?>
<request>
<metric name="[name of metric 1]", type="[aggregation type]", value="[value of metric 1]" />
<metric name="[name of metric 2]", type="[aggregation type]", value="[value of metric 2]" />
...
<metric name="[name of metric n]", type="[aggregation type]", value="[value of metric n]" />
</request>

Example:

Code Block
http://host:port/machineagent/metrics

Example of Body Content:

Code Block
<request>
<metric name="Custom Metrics|Test|My Metric 1", type="AVERAGE", value="22" />
<metric name="Custom Metrics|Test|My Metric 2", type="SUM", value="98737" />
<metric name="Custom Metrics|Test|My Metric 3", type="CURRENT", value="93" />
</request>

 

Valid values for type are:

  • averageAVERAGE: Average of all one-minute data points when adding it to the 10-minute or 60-minute granularity table.
  • sumSUM: Sum of all one-minute data points when adding it to the 10-minute or 60-minute granularity table.
  • currentCURRENT: Last reported one-minute data point in that 10-minute or 60-minute interval.

...