Skip to content

Instantly share code, notes, and snippets.

@wheel5up
Created April 8, 2025 22:17
Show Gist options
  • Select an option

  • Save wheel5up/46ac0af7728454f820f49ddfbef787d9 to your computer and use it in GitHub Desktop.

Select an option

Save wheel5up/46ac0af7728454f820f49ddfbef787d9 to your computer and use it in GitHub Desktop.
container instance zabbix template
{
"zabbix_export": {
"version": "7.0",
"template_groups": [
{
"uuid": "a571c0d144b14fd4a87a9d9b2aa9fcd6",
"name": "Templates/Applications"
}
],
"templates": [
{
"uuid": "98046ab232ce4a50865afb9326fa67ac",
"template": "Container Instance",
"name": "Container Instance",
"groups": [
{
"name": "Templates/Applications"
}
],
"items": [
{
"uuid": "a70a2b78236c40bfb62d28b1ea8e19dc",
"name": "Container block I/O read",
"type": "DEPENDENT",
"key": "container.block_io.read",
"history": "90d",
"units": "b",
"preprocessing": [
{
"type": "JSONPATH",
"parameters": [
"$.blkio_stats.io_service_bytes_recursive[?(@.op == \"Read\")].value.sum()"
]
}
],
"master_item": {
"key": "container.stats[{$CONTAINERID}]"
},
"tags": [
{
"tag": "component",
"value": "blockio"
},
{
"tag": "container",
"value": "docker"
}
]
},
{
"uuid": "d9308fe99296466d86e8f8b93eb9b494",
"name": "Container block I/O read delta",
"type": "DEPENDENT",
"key": "container.block_io.read_delta",
"history": "90d",
"units": "b",
"preprocessing": [
{
"type": "JSONPATH",
"parameters": [
"$.blkio_stats.io_service_bytes_recursive[?(@.op == \"Read\")].value.sum()"
]
},
{
"type": "SIMPLE_CHANGE"
}
],
"master_item": {
"key": "container.stats[{$CONTAINERID}]"
},
"tags": [
{
"tag": "component",
"value": "blockio"
},
{
"tag": "container",
"value": "docker"
}
]
},
{
"uuid": "5a14d880e9884145b1d0a0e51bdb0705",
"name": "Container block I/O write",
"type": "DEPENDENT",
"key": "container.block_io.write",
"history": "90d",
"units": "b",
"preprocessing": [
{
"type": "JSONPATH",
"parameters": [
"$.blkio_stats.io_service_bytes_recursive[?(@.op == \"Write\")].value.sum()"
]
}
],
"master_item": {
"key": "container.stats[{$CONTAINERID}]"
},
"tags": [
{
"tag": "component",
"value": "blockio"
},
{
"tag": "container",
"value": "docker"
}
]
},
{
"uuid": "e30f6dd6526d488faf2f59ebe5297ddd",
"name": "Container block I/O write delta",
"type": "DEPENDENT",
"key": "container.block_io.write_delta",
"history": "90d",
"units": "b",
"preprocessing": [
{
"type": "JSONPATH",
"parameters": [
"$.blkio_stats.io_service_bytes_recursive[?(@.op == \"Write\")].value.sum()"
]
},
{
"type": "SIMPLE_CHANGE"
}
],
"master_item": {
"key": "container.stats[{$CONTAINERID}]"
},
"tags": [
{
"tag": "component",
"value": "blockio"
},
{
"tag": "container",
"value": "docker"
}
]
},
{
"uuid": "82b094f5766944eebfe6e9a6a8823882",
"name": "Total usage cpu_delta",
"type": "CALCULATED",
"key": "container.cpu_delta",
"delay": "{$CONTAINER_SAMPLE}",
"history": "90d",
"value_type": "FLOAT",
"params": "last(//container.cpu_stats.total_usage)-last(//container.precpu_stats.total_usage)",
"tags": [
{
"tag": "component",
"value": "cpu"
},
{
"tag": "container",
"value": "docker"
}
]
},
{
"uuid": "40d72e3bfda84ecaac58ddb401eac57d",
"name": "online cpus",
"type": "DEPENDENT",
"key": "container.cpu_stats.online_cpus",
"history": "90d",
"preprocessing": [
{
"type": "JSONPATH",
"parameters": [
"$.cpu_stats.online_cpus"
]
}
],
"master_item": {
"key": "container.stats[{$CONTAINERID}]"
},
"tags": [
{
"tag": "component",
"value": "cpu"
},
{
"tag": "container",
"value": "docker"
}
]
},
{
"uuid": "12ad6d2409df47ae895bd828b202a345",
"name": "Container system cpu usage",
"type": "DEPENDENT",
"key": "container.cpu_stats.system_cpu_usage",
"history": "90d",
"preprocessing": [
{
"type": "JSONPATH",
"parameters": [
"$.cpu_stats.system_cpu_usage"
]
}
],
"master_item": {
"key": "container.stats[{$CONTAINERID}]"
},
"tags": [
{
"tag": "component",
"value": "cpu"
},
{
"tag": "container",
"value": "docker"
}
]
},
{
"uuid": "496f3ad5060641928d87286806553870",
"name": "Container cpu_stats total usage",
"type": "DEPENDENT",
"key": "container.cpu_stats.total_usage",
"history": "90d",
"preprocessing": [
{
"type": "JSONPATH",
"parameters": [
"$.cpu_stats.cpu_usage.total_usage"
]
}
],
"master_item": {
"key": "container.stats[{$CONTAINERID}]"
},
"tags": [
{
"tag": "component",
"value": "cpu"
},
{
"tag": "container",
"value": "docker"
}
]
},
{
"uuid": "82064a7aec0e4e8b8e39e9f1c4c1f9d9",
"name": "Container cpu_stats usage in kernelmod",
"type": "DEPENDENT",
"key": "container.cpu_stats.usage_in_kernelmode",
"history": "90d",
"preprocessing": [
{
"type": "JSONPATH",
"parameters": [
"$.cpu_stats.cpu_usage.usage_in_kernelmode"
]
}
],
"master_item": {
"key": "container.stats[{$CONTAINERID}]"
},
"tags": [
{
"tag": "component",
"value": "cpu"
},
{
"tag": "container",
"value": "docker"
}
]
},
{
"uuid": "ce28fced3528437c91eb17bc54f66b49",
"name": "Container cpu_stats usage in usermode",
"type": "DEPENDENT",
"key": "container.cpu_stats.usage_in_usermode",
"history": "90d",
"preprocessing": [
{
"type": "JSONPATH",
"parameters": [
"$.cpu_stats.cpu_usage.usage_in_usermode"
]
}
],
"master_item": {
"key": "container.stats[{$CONTAINERID}]"
},
"tags": [
{
"tag": "component",
"value": "cpu"
},
{
"tag": "container",
"value": "docker"
}
]
},
{
"uuid": "2b8f64e9a03543c0831d0a553303db0f",
"name": "CPU Usage",
"type": "CALCULATED",
"key": "container.cpu_usage",
"delay": "{$CONTAINER_SAMPLE}",
"history": "90d",
"params": "(last(//container.cpu_delta)/last(//container.system_cpu_delta))*last(//container.cpu_stats.online_cpus)*100",
"tags": [
{
"tag": "component",
"value": "cpu"
},
{
"tag": "container",
"value": "docker"
}
]
},
{
"uuid": "6fdd424584ef43a780f39c8bf46fcec0",
"name": "Memory percent",
"type": "CALCULATED",
"key": "container.memory_percent",
"delay": "{$CONTAINER_SAMPLE}",
"history": "90d",
"params": "(last(//container.memory_used)/last(//container.memory_stats.limit))*100",
"tags": [
{
"tag": "component",
"value": "memory"
},
{
"tag": "container",
"value": "docker"
}
]
},
{
"uuid": "27de42b899504cc8931c09eb8ffdadce",
"name": "Container memory stats active anon",
"type": "DEPENDENT",
"key": "container.memory_stats.active_anon",
"history": "90d",
"units": "B",
"preprocessing": [
{
"type": "JSONPATH",
"parameters": [
"$.memory_stats.stats.active_anon"
]
}
],
"master_item": {
"key": "container.stats[{$CONTAINERID}]"
},
"tags": [
{
"tag": "component",
"value": "memory"
},
{
"tag": "container",
"value": "docker"
}
]
},
{
"uuid": "cad971d3aae44939a0f2282cc2e10d08",
"name": "Container memory stats active file",
"type": "DEPENDENT",
"key": "container.memory_stats.active_file",
"history": "90d",
"preprocessing": [
{
"type": "JSONPATH",
"parameters": [
"$.memory_stats.stats.active_file"
]
}
],
"master_item": {
"key": "container.stats[{$CONTAINERID}]"
},
"tags": [
{
"tag": "component",
"value": "memory"
},
{
"tag": "container",
"value": "docker"
}
]
},
{
"uuid": "7a0e4b0eb5e54f15afd598662910517a",
"name": "Container memory stats cache",
"type": "DEPENDENT",
"key": "container.memory_stats.cache",
"history": "90d",
"units": "B",
"preprocessing": [
{
"type": "JSONPATH",
"parameters": [
"$.memory_stats.stats.cache"
]
}
],
"master_item": {
"key": "container.stats[{$CONTAINERID}]"
},
"tags": [
{
"tag": "component",
"value": "memory"
},
{
"tag": "container",
"value": "docker"
}
]
},
{
"uuid": "2a8c645baf5d4eeb9ee95d866804c127",
"name": "Container memory stats dirty",
"type": "DEPENDENT",
"key": "container.memory_stats.dirty",
"history": "90d",
"units": "B",
"preprocessing": [
{
"type": "JSONPATH",
"parameters": [
"$.memory_stats.stats.dirty"
]
}
],
"master_item": {
"key": "container.stats[{$CONTAINERID}]"
},
"tags": [
{
"tag": "component",
"value": "memory"
},
{
"tag": "container",
"value": "docker"
}
]
},
{
"uuid": "2fbfa871b12a46f5824a74c2dd691b6c",
"name": "Container memory stats inactive anon",
"type": "DEPENDENT",
"key": "container.memory_stats.inactive_anon",
"history": "90d",
"units": "B",
"preprocessing": [
{
"type": "JSONPATH",
"parameters": [
"$.memory_stats.stats.inactive_anon"
]
}
],
"master_item": {
"key": "container.stats[{$CONTAINERID}]"
},
"tags": [
{
"tag": "component",
"value": "memory"
},
{
"tag": "container",
"value": "docker"
}
]
},
{
"uuid": "beb4c07019134d23a941350f61953081",
"name": "Container memory stats inactive file",
"type": "DEPENDENT",
"key": "container.memory_stats.inactive_file",
"history": "90d",
"units": "B",
"preprocessing": [
{
"type": "JSONPATH",
"parameters": [
"$.memory_stats.stats.inactive_file"
]
}
],
"master_item": {
"key": "container.stats[{$CONTAINERID}]"
},
"tags": [
{
"tag": "component",
"value": "memory"
},
{
"tag": "container",
"value": "docker"
}
]
},
{
"uuid": "00a81b40a64f4417abf68cfeb223b2e9",
"name": "Container memory stats limit",
"type": "DEPENDENT",
"key": "container.memory_stats.limit",
"history": "90d",
"units": "B",
"preprocessing": [
{
"type": "JSONPATH",
"parameters": [
"$.memory_stats.limit"
]
}
],
"master_item": {
"key": "container.stats[{$CONTAINERID}]"
},
"tags": [
{
"tag": "component",
"value": "memory"
},
{
"tag": "container",
"value": "docker"
}
]
},
{
"uuid": "73b30ced1de8440dbac1e2fb23161ce2",
"name": "Container memory stats mapped file",
"type": "DEPENDENT",
"key": "container.memory_stats.mapped_file",
"history": "90d",
"units": "B",
"preprocessing": [
{
"type": "JSONPATH",
"parameters": [
"$.memory_stats.stats.mapped_file"
]
}
],
"master_item": {
"key": "container.stats[{$CONTAINERID}]"
},
"tags": [
{
"tag": "component",
"value": "memory"
},
{
"tag": "container",
"value": "docker"
}
]
},
{
"uuid": "29d9251dd4f8404e9ee0dd59b8e0c648",
"name": "Container memory stats max usage",
"type": "DEPENDENT",
"key": "container.memory_stats.max_usage",
"history": "90d",
"preprocessing": [
{
"type": "JSONPATH",
"parameters": [
"$.memory_stats.max_usage"
]
}
],
"master_item": {
"key": "container.stats[{$CONTAINERID}]"
},
"tags": [
{
"tag": "component",
"value": "memory"
},
{
"tag": "container",
"value": "docker"
}
]
},
{
"uuid": "154d82256f744da48782cef643edff16",
"name": "Container memory stats pgfault",
"type": "DEPENDENT",
"key": "container.memory_stats.pgfault",
"history": "90d",
"units": "B",
"preprocessing": [
{
"type": "JSONPATH",
"parameters": [
"$.memory_stats.stats.pgfault"
]
}
],
"master_item": {
"key": "container.stats[{$CONTAINERID}]"
},
"tags": [
{
"tag": "component",
"value": "memory"
},
{
"tag": "container",
"value": "docker"
}
]
},
{
"uuid": "edceb4f0eea441cda059a7dcdad1ceed",
"name": "Container memory stats pgmajfault",
"type": "DEPENDENT",
"key": "container.memory_stats.pgmajfault",
"history": "90d",
"units": "B",
"preprocessing": [
{
"type": "JSONPATH",
"parameters": [
"$.memory_stats.stats.pgmajfault"
]
}
],
"master_item": {
"key": "container.stats[{$CONTAINERID}]"
},
"tags": [
{
"tag": "component",
"value": "memory"
},
{
"tag": "container",
"value": "docker"
}
]
},
{
"uuid": "e32d61dd22e543c28037bf5710d437fb",
"name": "Container memory stats pgpgin",
"type": "DEPENDENT",
"key": "container.memory_stats.pgpgin",
"history": "90d",
"units": "B",
"preprocessing": [
{
"type": "JSONPATH",
"parameters": [
"$.memory_stats.stats.pgpgin"
]
}
],
"master_item": {
"key": "container.stats[{$CONTAINERID}]"
},
"tags": [
{
"tag": "component",
"value": "memory"
},
{
"tag": "container",
"value": "docker"
}
]
},
{
"uuid": "812645ff7a434320ac994ce0c6173834",
"name": "Container memory stats pgpgout",
"type": "DEPENDENT",
"key": "container.memory_stats.pgpgout",
"history": "90d",
"units": "B",
"preprocessing": [
{
"type": "JSONPATH",
"parameters": [
"$.memory_stats.stats.pgpgout"
]
}
],
"master_item": {
"key": "container.stats[{$CONTAINERID}]"
},
"tags": [
{
"tag": "component",
"value": "memory"
},
{
"tag": "container",
"value": "docker"
}
]
},
{
"uuid": "08109a99827a44b3855fe87ede071e18",
"name": "Container memory stats rss",
"type": "DEPENDENT",
"key": "container.memory_stats.rss",
"history": "90d",
"units": "B",
"preprocessing": [
{
"type": "JSONPATH",
"parameters": [
"$.memory_stats.stats.rss"
]
}
],
"master_item": {
"key": "container.stats[{$CONTAINERID}]"
},
"tags": [
{
"tag": "component",
"value": "memory"
},
{
"tag": "container",
"value": "docker"
}
]
},
{
"uuid": "89e4e03b21c045f6bc8a09b37000a3fc",
"name": "Container memory stats rss huge",
"type": "DEPENDENT",
"key": "container.memory_stats.rss_huge",
"history": "90d",
"units": "B",
"preprocessing": [
{
"type": "JSONPATH",
"parameters": [
"$.memory_stats.stats.rss_huge"
]
}
],
"master_item": {
"key": "container.stats[{$CONTAINERID}]"
},
"tags": [
{
"tag": "component",
"value": "memory"
},
{
"tag": "container",
"value": "docker"
}
]
},
{
"uuid": "798387c7f7a44f6dbcd4a27940247055",
"name": "Container memory stats usage",
"type": "DEPENDENT",
"key": "container.memory_stats.usage",
"history": "90d",
"units": "B",
"preprocessing": [
{
"type": "JSONPATH",
"parameters": [
"$.memory_stats.usage"
]
}
],
"master_item": {
"key": "container.stats[{$CONTAINERID}]"
},
"tags": [
{
"tag": "component",
"value": "memory"
},
{
"tag": "container",
"value": "docker"
}
]
},
{
"uuid": "baf163834328434a9a782736ddb6e711",
"name": "Memory usage",
"type": "CALCULATED",
"key": "container.memory_used",
"delay": "{$CONTAINER_SAMPLE}",
"history": "90d",
"units": "B",
"params": "last(//container.memory_stats.usage) -last(//container.memory_stats.inactive_file)",
"tags": [
{
"tag": "component",
"value": "memory"
},
{
"tag": "container",
"value": "docker"
}
]
},
{
"uuid": "cc284f81f75f4c739129c89999cfdce8",
"name": "Container network eth0 rx_bytes",
"type": "DEPENDENT",
"key": "container.network.eth0.rx_bytes",
"history": "90d",
"units": "b",
"preprocessing": [
{
"type": "JSONPATH",
"parameters": [
"$.networks.eth0.rx_bytes"
]
}
],
"master_item": {
"key": "container.stats[{$CONTAINERID}]"
},
"tags": [
{
"tag": "component",
"value": "network"
},
{
"tag": "container",
"value": "docker"
}
]
},
{
"uuid": "b77133ab75bf4646a090658469a17f3a",
"name": "Container network eth0 rx_bytes delta",
"type": "DEPENDENT",
"key": "container.network.eth0.rx_bytes_delta",
"history": "90d",
"units": "b",
"preprocessing": [
{
"type": "JSONPATH",
"parameters": [
"$.networks.eth0.rx_bytes"
]
},
{
"type": "SIMPLE_CHANGE"
}
],
"master_item": {
"key": "container.stats[{$CONTAINERID}]"
},
"tags": [
{
"tag": "component",
"value": "network"
},
{
"tag": "container",
"value": "docker"
}
]
},
{
"uuid": "77874769b7ec4c3aad3316f6d9741844",
"name": "Container network eth0 rx_dropped",
"type": "DEPENDENT",
"key": "container.network.eth0.rx_dropped",
"history": "90d",
"preprocessing": [
{
"type": "JSONPATH",
"parameters": [
"$.networks.eth0.rx_dropped"
]
}
],
"master_item": {
"key": "container.stats[{$CONTAINERID}]"
},
"tags": [
{
"tag": "component",
"value": "network"
},
{
"tag": "container",
"value": "docker"
}
]
},
{
"uuid": "341e0e2914fc4fc39e3a99207f81ddc6",
"name": "Container network eth0 rx_errors",
"type": "DEPENDENT",
"key": "container.network.eth0.rx_errors",
"history": "90d",
"preprocessing": [
{
"type": "JSONPATH",
"parameters": [
"$.networks.eth0.rx_errors"
]
}
],
"master_item": {
"key": "container.stats[{$CONTAINERID}]"
},
"tags": [
{
"tag": "component",
"value": "network"
},
{
"tag": "container",
"value": "docker"
}
]
},
{
"uuid": "2cd2ae00c8d24fe980815d16dd304a4b",
"name": "Container network eth0 rx_packets",
"type": "DEPENDENT",
"key": "container.network.eth0.rx_packets",
"history": "90d",
"preprocessing": [
{
"type": "JSONPATH",
"parameters": [
"$.networks.eth0.rx_packets"
]
}
],
"master_item": {
"key": "container.stats[{$CONTAINERID}]"
},
"tags": [
{
"tag": "component",
"value": "network"
},
{
"tag": "container",
"value": "docker"
}
]
},
{
"uuid": "01ff371c0dec4704845860d84120e058",
"name": "Container network eth0 tx_bytes",
"type": "DEPENDENT",
"key": "container.network.eth0.tx_bytes",
"history": "90d",
"units": "b",
"preprocessing": [
{
"type": "JSONPATH",
"parameters": [
"$.networks.eth0.tx_bytes"
]
}
],
"master_item": {
"key": "container.stats[{$CONTAINERID}]"
},
"tags": [
{
"tag": "component",
"value": "network"
},
{
"tag": "container",
"value": "docker"
}
]
},
{
"uuid": "5c57e82e386144ea8d2face0ab202f91",
"name": "Container network eth0 tx_bytes delta",
"type": "DEPENDENT",
"key": "container.network.eth0.tx_bytes_delta",
"history": "90d",
"units": "b",
"preprocessing": [
{
"type": "JSONPATH",
"parameters": [
"$.networks.eth0.tx_bytes"
]
},
{
"type": "SIMPLE_CHANGE"
}
],
"master_item": {
"key": "container.stats[{$CONTAINERID}]"
},
"tags": [
{
"tag": "component",
"value": "network"
},
{
"tag": "container",
"value": "docker"
}
]
},
{
"uuid": "e942d02192a84fafa93383101eb2bda9",
"name": "Container network eth0 tx_dropped",
"type": "DEPENDENT",
"key": "container.network.eth0.tx_dropped",
"history": "90d",
"preprocessing": [
{
"type": "JSONPATH",
"parameters": [
"$.networks.eth0.tx_dropped"
]
}
],
"master_item": {
"key": "container.stats[{$CONTAINERID}]"
},
"tags": [
{
"tag": "component",
"value": "network"
},
{
"tag": "container",
"value": "docker"
}
]
},
{
"uuid": "d8953ded355e4288b6afc0ee2a6c7f7e",
"name": "Container network eth0 tx_errors",
"type": "DEPENDENT",
"key": "container.network.eth0.tx_errors",
"history": "90d",
"preprocessing": [
{
"type": "JSONPATH",
"parameters": [
"$.networks.eth0.tx_errors"
]
}
],
"master_item": {
"key": "container.stats[{$CONTAINERID}]"
},
"tags": [
{
"tag": "component",
"value": "network"
},
{
"tag": "container",
"value": "docker"
}
]
},
{
"uuid": "9149721295b149418cf7de02b4204b32",
"name": "Container network eth0 tx_packets",
"type": "DEPENDENT",
"key": "container.network.eth0.tx_packets",
"history": "90d",
"preprocessing": [
{
"type": "JSONPATH",
"parameters": [
"$.networks.eth0.tx_packets"
]
}
],
"master_item": {
"key": "container.stats[{$CONTAINERID}]"
},
"tags": [
{
"tag": "component",
"value": "network"
},
{
"tag": "container",
"value": "docker"
}
]
},
{
"uuid": "d480376fb5d74f5997a4976770ea1545",
"name": "Number of PIDS",
"type": "DEPENDENT",
"key": "container.pids_stats.current",
"history": "90d",
"preprocessing": [
{
"type": "JSONPATH",
"parameters": [
"$.pids_stats.current"
]
}
],
"master_item": {
"key": "container.stats[{$CONTAINERID}]"
},
"tags": [
{
"tag": "component",
"value": "cpu"
},
{
"tag": "container",
"value": "docker"
}
]
},
{
"uuid": "86f545c1a2e644cc9017195484c3664d",
"name": "Container pre system cpu usage",
"type": "DEPENDENT",
"key": "container.precpu_stats.system_cpu_usage",
"history": "90d",
"preprocessing": [
{
"type": "JSONPATH",
"parameters": [
"$.precpu_stats.system_cpu_usage"
]
}
],
"master_item": {
"key": "container.stats[{$CONTAINERID}]"
},
"tags": [
{
"tag": "component",
"value": "cpu"
},
{
"tag": "container",
"value": "docker"
}
]
},
{
"uuid": "ecdde15377304287bf12fa107bcbed33",
"name": "Container precpu_stats total usage",
"type": "DEPENDENT",
"key": "container.precpu_stats.total_usage",
"history": "90d",
"description": "precpu_stats is the CPU statistic of the previous read, and is used to calculate the CPU usage percentage",
"preprocessing": [
{
"type": "JSONPATH",
"parameters": [
"$.precpu_stats.cpu_usage.total_usage"
]
}
],
"master_item": {
"key": "container.stats[{$CONTAINERID}]"
},
"tags": [
{
"tag": "component",
"value": "cpu"
},
{
"tag": "container",
"value": "docker"
}
]
},
{
"uuid": "f62d7e927de54af7972b33832e49fb2f",
"name": "Instance Stats",
"key": "container.stats[{$CONTAINERID}]",
"delay": "{$CONTAINER_SAMPLE}",
"history": "90d",
"value_type": "TEXT",
"tags": [
{
"tag": "container",
"value": "docker"
}
]
},
{
"uuid": "f255e1fded244ac2817b2cbc57a9c23f",
"name": "System cpu_delta",
"type": "CALCULATED",
"key": "container.system_cpu_delta",
"delay": "{$CONTAINER_SAMPLE}",
"history": "90d",
"value_type": "FLOAT",
"params": "last(//container.cpu_stats.system_cpu_usage)-last(//container.precpu_stats.system_cpu_usage)",
"tags": [
{
"tag": "component",
"value": "cpu"
},
{
"tag": "container",
"value": "docker"
}
]
}
],
"tags": [
{
"tag": "component",
"value": "Docker"
}
],
"macros": [
{
"macro": "{$CONTAINER_SAMPLE}",
"value": "60s"
}
],
"dashboards": [
{
"uuid": "5dddb2570dbf4e378a101f4827143967",
"name": "Container Stats",
"pages": [
{
"widgets": [
{
"type": "item",
"name": "CPU %",
"width": "9",
"fields": [
{
"type": "ITEM",
"name": "itemid.0",
"value": {
"host": "Container Instance",
"key": "container.cpu_usage"
}
},
{
"type": "INTEGER",
"name": "show.0",
"value": "1"
},
{
"type": "INTEGER",
"name": "show.1",
"value": "2"
},
{
"type": "INTEGER",
"name": "show.2",
"value": "4"
},
{
"type": "STRING",
"name": "units",
"value": "%"
}
]
},
{
"type": "graph",
"name": "CPU Usage",
"y": "2",
"width": "36",
"height": "5",
"fields": [
{
"type": "ITEM",
"name": "itemid.0",
"value": {
"host": "Container Instance",
"key": "container.cpu_usage"
}
},
{
"type": "STRING",
"name": "reference",
"value": "AABJL"
},
{
"type": "INTEGER",
"name": "source_type",
"value": "1"
}
]
},
{
"type": "graph",
"y": "7",
"width": "36",
"height": "5",
"fields": [
{
"type": "GRAPH",
"name": "graphid.0",
"value": {
"host": "Container Instance",
"name": "Block I/O"
}
},
{
"type": "STRING",
"name": "reference",
"value": "AABJJ"
}
]
},
{
"type": "item",
"name": "RAM Used",
"x": "9",
"width": "9",
"fields": [
{
"type": "ITEM",
"name": "itemid.0",
"value": {
"host": "Container Instance",
"key": "container.memory_used"
}
},
{
"type": "INTEGER",
"name": "show.0",
"value": "1"
},
{
"type": "INTEGER",
"name": "show.1",
"value": "2"
},
{
"type": "INTEGER",
"name": "show.2",
"value": "4"
}
]
},
{
"type": "item",
"name": "Network I/O reads",
"x": "18",
"width": "9",
"fields": [
{
"type": "ITEM",
"name": "itemid.0",
"value": {
"host": "Container Instance",
"key": "container.network.eth0.rx_bytes"
}
},
{
"type": "INTEGER",
"name": "show.0",
"value": "1"
},
{
"type": "INTEGER",
"name": "show.1",
"value": "2"
},
{
"type": "INTEGER",
"name": "show.2",
"value": "4"
},
{
"type": "INTEGER",
"name": "units_bold",
"value": "0"
}
]
},
{
"type": "item",
"name": "Network I/O writes",
"x": "27",
"width": "9",
"fields": [
{
"type": "ITEM",
"name": "itemid.0",
"value": {
"host": "Container Instance",
"key": "container.network.eth0.tx_bytes"
}
},
{
"type": "INTEGER",
"name": "show.0",
"value": "1"
},
{
"type": "INTEGER",
"name": "show.1",
"value": "2"
},
{
"type": "INTEGER",
"name": "show.2",
"value": "4"
},
{
"type": "INTEGER",
"name": "units_bold",
"value": "0"
}
]
},
{
"type": "item",
"name": "Bock I/O reads",
"x": "36",
"width": "9",
"fields": [
{
"type": "ITEM",
"name": "itemid.0",
"value": {
"host": "Container Instance",
"key": "container.block_io.read"
}
},
{
"type": "INTEGER",
"name": "show.0",
"value": "1"
},
{
"type": "INTEGER",
"name": "show.1",
"value": "2"
},
{
"type": "INTEGER",
"name": "show.2",
"value": "4"
},
{
"type": "INTEGER",
"name": "units_bold",
"value": "0"
}
]
},
{
"type": "graph",
"x": "36",
"y": "2",
"width": "36",
"height": "5",
"fields": [
{
"type": "ITEM",
"name": "itemid.0",
"value": {
"host": "Container Instance",
"key": "container.memory_used"
}
},
{
"type": "STRING",
"name": "reference",
"value": "AABJK"
},
{
"type": "INTEGER",
"name": "source_type",
"value": "1"
}
]
},
{
"type": "graph",
"x": "36",
"y": "7",
"width": "36",
"height": "5",
"fields": [
{
"type": "GRAPH",
"name": "graphid.0",
"value": {
"host": "Container Instance",
"name": "Netowork I/O"
}
},
{
"type": "STRING",
"name": "reference",
"value": "AABJM"
}
]
},
{
"type": "item",
"name": "Bock I/O writes",
"x": "45",
"width": "9",
"fields": [
{
"type": "ITEM",
"name": "itemid.0",
"value": {
"host": "Container Instance",
"key": "container.block_io.write"
}
},
{
"type": "INTEGER",
"name": "show.0",
"value": "1"
},
{
"type": "INTEGER",
"name": "show.1",
"value": "2"
},
{
"type": "INTEGER",
"name": "show.2",
"value": "4"
},
{
"type": "INTEGER",
"name": "units_bold",
"value": "0"
}
]
},
{
"type": "item",
"name": "Number of PIDS",
"x": "54",
"width": "9",
"fields": [
{
"type": "INTEGER",
"name": "decimal_places",
"value": "0"
},
{
"type": "ITEM",
"name": "itemid.0",
"value": {
"host": "Container Instance",
"key": "container.pids_stats.current"
}
},
{
"type": "INTEGER",
"name": "show.0",
"value": "1"
},
{
"type": "INTEGER",
"name": "show.1",
"value": "2"
},
{
"type": "INTEGER",
"name": "show.2",
"value": "4"
},
{
"type": "INTEGER",
"name": "units_bold",
"value": "0"
}
]
},
{
"type": "item",
"name": "Container",
"x": "63",
"width": "9",
"fields": [
{
"type": "STRING",
"name": "description",
"value": "{HOST.HOST}"
},
{
"type": "INTEGER",
"name": "desc_size",
"value": "30"
},
{
"type": "INTEGER",
"name": "desc_v_pos",
"value": "1"
},
{
"type": "ITEM",
"name": "itemid.0",
"value": {
"host": "Container Instance",
"key": "container.cpu_stats.online_cpus"
}
},
{
"type": "INTEGER",
"name": "show.0",
"value": "1"
},
{
"type": "INTEGER",
"name": "show.1",
"value": "4"
}
]
}
]
}
]
}
]
}
],
"graphs": [
{
"uuid": "be3dfbbe269a4299bf9e47f2ca35587a",
"name": "Block I/O",
"graph_items": [
{
"color": "1A7C11",
"calc_fnc": "ALL",
"item": {
"host": "Container Instance",
"key": "container.block_io.read_delta"
}
},
{
"sortorder": "1",
"color": "274482",
"calc_fnc": "ALL",
"item": {
"host": "Container Instance",
"key": "container.block_io.write_delta"
}
}
]
},
{
"uuid": "a477a4a6abb34300b750478213cacc1f",
"name": "CPU usage",
"graph_items": [
{
"color": "1A7C11",
"calc_fnc": "ALL",
"item": {
"host": "Container Instance",
"key": "container.cpu_usage"
}
}
]
},
{
"uuid": "54035d052de247f8ab3c2427c6cdf390",
"name": "Netowork I/O",
"graph_items": [
{
"color": "1A7C11",
"calc_fnc": "ALL",
"item": {
"host": "Container Instance",
"key": "container.network.eth0.rx_bytes_delta"
}
},
{
"sortorder": "1",
"color": "274482",
"calc_fnc": "ALL",
"item": {
"host": "Container Instance",
"key": "container.network.eth0.tx_bytes_delta"
}
}
]
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment