{
    "definitions": {
        "window": {
            "description": "The values are in microseconds unless otherwise stated.",
            "properties": {
                "properties": {
                    "avg": {
                        "type": "integer"
                    },
                    "cnt": {
                        "type": "integer"
                    },
                    "hdrsize": {
                        "type": "integer"
                    },
                    "max": {
                        "type": "integer"
                    },
                    "min": {
                        "type": "integer"
                    },
                    "outofrange": {
                        "type": "integer"
                    },
                    "p50": {
                        "type": "integer"
                    },
                    "p75": {
                        "type": "integer"
                    },
                    "p90": {
                        "type": "integer"
                    },
                    "p95": {
                        "type": "integer"
                    },
                    "p99": {
                        "type": "integer"
                    },
                    "p99_99": {
                        "type": "integer"
                    },
                    "stddev": {
                        "type": "integer"
                    },
                    "sum": {
                        "type": "integer"
                    }
                }
            },
            "title": "Rolling window statistics",
            "type": "object"
        }
    },
    "properties": {
        "brokers": {
            "additionalProperties": {
                "properties": {
                    "buf_grow": {
                        "type": "integer"
                    },
                    "int_latency": {
                        "$ref": "#/definitions/window"
                    },
                    "name": {
                        "type": "string"
                    },
                    "nodeid": {
                        "type": "integer"
                    },
                    "outbuf_cnt": {
                        "type": "integer"
                    },
                    "outbuf_latency": {
                        "$ref": "#/definitions/window"
                    },
                    "outbuf_msg_cnt": {
                        "type": "integer"
                    },
                    "req_timeouts": {
                        "type": "integer"
                    },
                    "rtt": {
                        "$ref": "#/definitions/window"
                    },
                    "rx": {
                        "type": "integer"
                    },
                    "rxbytes": {
                        "type": "integer"
                    },
                    "rxcorriderrs": {
                        "type": "integer"
                    },
                    "rxerrs": {
                        "type": "integer"
                    },
                    "rxpartial": {
                        "type": "integer"
                    },
                    "state": {
                        "type": "string"
                    },
                    "stateage": {
                        "type": "integer"
                    },
                    "throttle": {
                        "$ref": "#/definitions/window"
                    },
                    "toppars": {
                        "additionalProperties": {
                            "properties": {
                                "partition": {
                                    "type": "integer"
                                },
                                "topic": {
                                    "type": "string"
                                }
                            },
                            "required": [
                                "topic",
                                "partition"
                            ],
                            "type": "object"
                        },
                        "type": "object"
                    },
                    "tx": {
                        "type": "integer"
                    },
                    "txbytes": {
                        "type": "integer"
                    },
                    "txerrs": {
                        "type": "integer"
                    },
                    "txretries": {
                        "type": "integer"
                    },
                    "waitresp_cnt": {
                        "type": "integer"
                    },
                    "waitresp_msg_cnt": {
                        "type": "integer"
                    },
                    "wakeups": {
                        "type": "integer"
                    },
                    "zbuf_grow": {
                        "type": "integer"
                    }
                },
                "required": [
                    "name",
                    "nodeid",
                    "state",
                    "stateage",
                    "outbuf_cnt",
                    "outbuf_msg_cnt",
                    "waitresp_cnt",
                    "waitresp_msg_cnt",
                    "tx",
                    "txbytes",
                    "txerrs",
                    "txretries",
                    "req_timeouts",
                    "rx",
                    "rxbytes",
                    "rxerrs",
                    "rxcorriderrs",
                    "rxpartial",
                    "zbuf_grow",
                    "buf_grow",
                    "wakeups",
                    "int_latency",
                    "rtt",
                    "throttle",
                    "toppars"
                ],
                "title": "Broker object keyed by the broker \"name:port/id\"",
                "type": "object"
            },
            "type": "object"
        },
        "client_id": {
            "type": "string"
        },
        "metadata_cache_cnt": {
            "type": "integer"
        },
        "msg_cnt": {
            "type": "integer"
        },
        "msg_max": {
            "type": "integer"
        },
        "msg_size": {
            "type": "integer"
        },
        "msg_size_max": {
            "type": "integer"
        },
        "name": {
            "type": "string"
        },
        "replyq": {
            "type": "integer"
        },
        "rx": {
            "type": "integer"
        },
        "rx_bytes": {
            "type": "integer"
        },
        "rxmsg_bytes": {
            "type": "integer"
        },
        "rxmsgs": {
            "type": "integer"
        },
        "simple_cnt": {
            "type": "integer"
        },
        "time": {
            "type": "integer"
        },
        "topics": {
            "properties": {
                "additionalProperties": {
                    "properties": {
                        "batchcnt": {
                            "$ref": "#/definitions/window"
                        },
                        "batchsize": {
                            "$ref": "#/definitions/window"
                        },
                        "metadata_age": {
                            "type": "integer"
                        },
                        "partitions": {
                            "properties": {
                                "^-?[0-9]+$": {
                                    "properties": {
                                        "app_offset": {
                                            "type": "integer"
                                        },
                                        "commited_offset": {
                                            "type": "integer"
                                        },
                                        "committed_offset": {
                                            "type": "integer"
                                        },
                                        "consumer_lag": {
                                            "type": "integer"
                                        },
                                        "desired": {
                                            "type": "boolean"
                                        },
                                        "eof_offset": {
                                            "type": "integer"
                                        },
                                        "fetch_state": {
                                            "type": "string"
                                        },
                                        "fetchq_cnt": {
                                            "type": "integer"
                                        },
                                        "fetchq_size": {
                                            "type": "integer"
                                        },
                                        "hi_offset": {
                                            "type": "integer"
                                        },
                                        "leader": {
                                            "type": "integer"
                                        },
                                        "lo_offset": {
                                            "type": "integer"
                                        },
                                        "msgq_bytes": {
                                            "type": "integer"
                                        },
                                        "msgq_cnt": {
                                            "type": "integer"
                                        },
                                        "msgs": {
                                            "type": "integer"
                                        },
                                        "msgs_inflight": {
                                            "type": "integer"
                                        },
                                        "next_offset": {
                                            "type": "integer"
                                        },
                                        "partition": {
                                            "type": "integer"
                                        },
                                        "query_offset": {
                                            "type": "integer"
                                        },
                                        "rx_ver_drops": {
                                            "type": "integer"
                                        },
                                        "rxbytes": {
                                            "type": "integer"
                                        },
                                        "rxmsgs": {
                                            "type": "integer"
                                        },
                                        "stored_offset": {
                                            "type": "integer"
                                        },
                                        "txbytes": {
                                            "type": "integer"
                                        },
                                        "txmsgs": {
                                            "type": "integer"
                                        },
                                        "unknown": {
                                            "type": "boolean"
                                        },
                                        "xmit_msgq_bytes": {
                                            "type": "integer"
                                        },
                                        "xmit_msgq_cnt": {
                                            "type": "integer"
                                        }
                                    },
                                    "required": [
                                        "partition",
                                        "leader",
                                        "desired",
                                        "unknown",
                                        "msgq_cnt",
                                        "msgq_bytes",
                                        "xmit_msgq_cnt",
                                        "xmit_msgq_bytes",
                                        "fetchq_cnt",
                                        "fetchq_size",
                                        "fetch_state",
                                        "query_offset",
                                        "next_offset",
                                        "app_offset",
                                        "stored_offset",
                                        "commited_offset",
                                        "committed_offset",
                                        "eof_offset",
                                        "lo_offset",
                                        "hi_offset",
                                        "consumer_lag",
                                        "txmsgs",
                                        "txbytes",
                                        "rxmsgs",
                                        "rxbytes",
                                        "msgs",
                                        "rx_ver_drops"
                                    ],
                                    "type": "object"
                                }
                            },
                            "type": "object"
                        },
                        "topic": {
                            "type": "string"
                        }
                    },
                    "required": [
                        "topic",
                        "metadata_age",
                        "batchsize",
                        "partitions"
                    ],
                    "type": "object"
                }
            },
            "type": "object"
        },
        "ts": {
            "type": "integer"
        },
        "tx": {
            "type": "integer"
        },
        "tx_bytes": {
            "type": "integer"
        },
        "txmsg_bytes": {
            "type": "integer"
        },
        "txmsgs": {
            "type": "integer"
        },
        "type": {
            "type": "string"
        }
    },
    "required": [
        "name",
        "client_id",
        "type",
        "ts",
        "time",
        "replyq",
        "msg_cnt",
        "msg_size",
        "msg_max",
        "msg_size_max",
        "simple_cnt",
        "metadata_cache_cnt",
        "brokers",
        "topics",
        "tx",
        "tx_bytes",
        "rx",
        "rx_bytes",
        "txmsgs",
        "txmsg_bytes",
        "rxmsgs",
        "rxmsg_bytes"
    ],
    "title": "librdkafka statistics schema - INCOMPLETE - WORK IN PROGRESS",
    "type": "object"
}