metrics MX Message¶
metrics
message is generated by metrics periodic check of discovery when managed object metrics is collected.
Message Headers¶
- Message-Type
- Type of message. Always
metrics
. - Sharding-Key
- Key for consistent sharding.
- Profile-Id
- Managed Object's Profile Id.
Message Format¶
Message contains JSON array, containing objects of following structure
Name | Type | Description |
---|---|---|
ts | DateTime | ISO 8601 timestamp (i.e. YYYY-MM-DDTHH:MM:SS ) of collected metrics |
bi_id | Number | Managed Object's BI ID |
scope | String | Metric Scope name |
<metric> | Any | Measured <metric> value. Depends on metric scope |
Example¶
[
{
"scope": "interface",
"ts": "2021-04-17T11:18:38",
"bi_id": 8904487845945788585,
"labels": ["noc::interface::Gi 1/0/1"],
"status_oper": 1,
"time_delta": 206,
"status_admin": 1,
"discards_out": 0,
"errors_in": 0,
"errors_in_delta": 0,
"packets_in": 3917,
"packets_out": 2120,
"load_out": 10491415,
"load_in": 34310007,
"speed": 1000000000,
"status_duplex": 3,
"errors_out": 0,
"errors_out_delta": 0,
"discards_in": 0
},
{
"scope": "interface",
"ts": "2021-04-17T11:18:38",
"managed_object": 8904487845945788585,
"labels": ["noc::interface::Gi 1/0/10"],
"status_oper": 1,
"time_delta": 206,
"status_admin": 1,
"discards_out": 0,
"errors_in": 0,
"errors_in_delta": 0,
"packets_in": 12631,
"packets_out": 8230,
"load_out": 16998124,
"load_in": 67189306,
"speed": 1000000000,
"status_duplex": 3,
"errors_out": 0,
"errors_out_delta": 0,
"discards_in": 0
}
]