Skip to main content

JSON:Pull

Overview

The JSON: Pull Check retrieves metrics formatted as JSON. Circonus will pull the metrics from a specified HTTP endpoint.

JavaScript Object Notation (JSON) is a lightweight format for storing and transporting data. JSON is often used when data is sent from a server to a web page, and is a convenient way to format metrics for Circonus.

Configuration

Gather metrics formatted in JSON. Here is an example of the JSON format:

{
"number": 1.23,
'bignum_as_string': '281474976710656',
'test': 'a text string',
'container': { 'key1': 1234 },
'array': [ 1234,
'string',
{ 'crazy': 'like a fox' }
]
}

There is no particular data structure required by Circonus; format your data however you wish and Circonus will parse it accordingly. Circonus would parse the above example into the following metrics (services tells how many metrics resulted from parsing):

NameTypeValue
array`0numeric1234
array`1text"string"
array`2`crazytext"like a fox"
bignum_as_stringtext"281474976710656"
container`key1numeric1234
numbernumeric1.23000000
testtext"a text string"
servicesnumeric7