Skip to content

Query container collectors

GET /container/<containerId>/collectors?fields=...

Description

Query all collectors for a given container. (only enabled collectors are included).

Path parameters

Param Description
containerId Container Id.

Query parameters

Param Default Description
fields key Fields to return (see Fields below for all available fields).
options none Option fields. If at least one field is given, the result will include "options" with an array of option objects (see Options api for all available option fields).

Fields

Field Return type Description
key string Collector Id.
name string Collector name.
kind string One of Agent, Probe or Service.
info string Collector info.
minVersion string Minimal required version for the collector.
checks array(string) Array with check keys.

Return codes

Error code Reason
200 Success.
400 Unknown field.
401 Invalid or missing token.
403 Insufficient permissions (required: API+READ).
404 Container not found.

Example

Curl request:

curl \
    -X GET 'https://api.infrasonar.com/container/123/collectors?fields=key,kind&options=key,type,default' \
    -H 'Authorization: Bearer XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'

Response:

[
    {
        "key": "wmi",
        "kind": "probe",
        "options": [
            {
                "key": "address",
                "type": "String",
                "default": ""
            }
        ]
    }
]