Usage API

The Usage API sends system usage data to Fusion. See the section System Usage Monitor for details.

Get Usage Stats or the System ID

The path for this request is one of:

/api/apollo/usage

/api/apollo/usage/<id>

where <id> is the UUID of a specific system.

A GET request with the 'usage' endpoint retrieves the data that is sent to Fusion. A GET request with the 'id' endpoint retrieves the UUID of the system that is sent to Fusion with the usage data.

Examples

Get the latest data that will be sent to Fusion on the next run:

INPUT

curl -u user:pass http://localhost:8764/api/apollo/usage

OUTPUT

[ {
  "type" : "GAUGE",
  "name" : "solr.clusters",
  "value" : 3
}, {
  "type" : "GAUGE",
  "name" : "solr.nodes",
  "value" : 2
}, {
  "type" : "RATE",
  "name" : "recommender.itemsForQuery.timer.rate",
  "value" : 0
}, {
  "type" : "RATE",
  "name" : "recommender.queriesForItem.timer.rate",
  "value" : 0
}, {
  "type" : "GAUGE",
  "name" : "nodes",
  "value" : 2
}, {
  "type" : "RATE",
  "name" : "recommender.queriesForItem.counter.rate",
  "value" : 0
}, {
  "type" : "RATE",
  "name" : "recommender.itemsForItem.timer.rate",
  "value" : 0
}, {
  "type" : "RATE",
  "name" : "recommender.itemsForQuery.counter.rate",
  "value" : 0
}, {
  "type" : "RATE",
  "name" : "recommender.itemsForItem.counter.rate",
  "value" : 0
} ]