Circonus HTTP JSON
This input plugin provides the ability to fetch Circonus HTTPTrap stream tag and structured format metrics and forward them to a Circonus Unified Agent check.
Configuration
IRONdb example:
[[inputs.circ_http_json]]
instance_id = "idb_stats"
url = "http://127.0.0.1:8112/stats.json?format=tagged"
[[inputs.circ_http_json]]
instance_id = "idb_mtev"
url = "http://127.0.0.1:8112/mtev/stats.json?format=tagged"
Note the addition of ?format=tagged
use for these endpoints to ensure stream tagged, structured metric format.
{
"foo|ST[env:prod,app:web]": { "_type": "n", "_value": 12 },
"foo|ST[env:qa,app:web]": { "_type": "n", "_value": 0 },
"foo|ST[b\"fihiYXIp\":b\"PHF1dXg+\"]": { "_type": "n", "_value": 3 }
}
The metric type _type
must be a valid HTTPTrap / Reconnoiter type:
i
int
I
uint
l
int64
L
uint64
n
double
h
histogram
H
cumulative histogram
s
text
The optional _ts
timestamp (in milliseconds) value may also be used.