Skip to content

vars: monitor the Nth object of an array #29

@arl

Description

@arl

I can't find a way to monitor a variable located in an object inside an array, see the following JSON:

"Blah": {
    "DeviceStatus": [
        {
            "Descr": "Foo",
            "ConnectionStatus": false,
        },
        {
            "Descr": "Bar",
            "ConnectionStatus": false,
        }
    ]
}

I tried with:

expvarmon  -vars="Foo:Blah.DeviceStatus[0].ConnectionStatus"

but the UI gives me:

Blah.DeviceStatus[0].ConnectionStatus: N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions