{
	<% set oops_list = ['mce_panic','mce_hardware','mce_panic_timeout','kill_idle','kill_init','ext4_error','ext4_warning','ext4_delalloc_fail','quota_error','block_io','scsi_error','scsi_fail','nvme_reset','nvme_io','unregister_netdevice','acpi_error','microcode_early_update','double_fault','fault_null','fault','sleep_in_atomic','sched_in_atomic','gpf','corrupted_page_table','bad_page_map','bad_rss_counter','divide_error','workqueue_lockup','rcu_self_lockup','rcu_task_lockup','rcu_lockup','perf_lockup','soft_lockup','hard_lockup','hard_LOCKUP','task_lockup','nmi_backtrace','page_dump','page_alloc_stall','page_alloc_fail','slub_alloc_fail','oom', 'lockdep', 'panic', 'bug', 'warning'] %>

	"title": "Coroner",
	"type": "panel",
	"editors": [],
	"charts": [
			{
					"type": "graphic",
					"width": 4,
					"height": 1,
					"col": 1,
					"row": 1,
					"title": "Oops",
					"signals": [
					<% for oops in oops_list %>
						{
								"title": "<<oops>>",
								"host": "ASEARCH",
								"tag": "itype=coroner",
								"name": "push-coroner-event-<<oops>>_tmmm",
						},
					<% endfor %>
					],
					"consts": [],
			},
			{
					"type": "graphic",
					"width": 2,
					"height": 1,
					"col": 1,
					"row": 2,
					"title": "Queue",
					"signals": [
						{
								"title": "in_queue",
								"host": "ASEARCH",
								"tag": "itype=coroner",
								"name": "push-coroner-in_queue_tmmm",
								"color": "#c95edd"
						},
						{
								"title": "out_queue",
								"host": "ASEARCH",
								"tag": "itype=coroner",
								"name": "push-coroner-out_queue_tmmm",
								"color": "#f6ab31"
						},
					],
					"consts": [],
			},
			{
					"type": "graphic",
					"width": 2,
					"height": 1,
					"col": 2,
					"row": 2,
					"title": "YT",
					"signals": [
						{
								"title": "write_error",
								"host": "ASEARCH",
								"tag": "itype=coroner",
								"name": "push-coroner-yt-write_error_tmmm",
								"color": "#ff0000"
						},
						{
								"title": "write_succ",
								"host": "ASEARCH",
								"tag": "itype=coroner",
								"name": "coroner-yt-write_succ_tmmm",
								"color": "#169833"
						},
					],
					"consts": [],
			},
      {
          "minValue": 0,
					"height": 1,
          "signals": [
              {
                  "color": "#00aaaa",
                  "filled": 0.25,
                  "host": "ASEARCH",
                  "name": "div(hcount(push-system-service-yandex-coroner-ready_thhh, 0.66, inf), div(normal(), 5))",
                  "tag": "itype=runtimecloud;ctype=*;geo=*;prj=*",
                  "title": "Ready"
              },
              {
                  "color": "#ff00aa",
                  "filled": 0.25,
                  "host": "ASEARCH",
                  "name": "div(hcount(push-system-service-yandex-coroner-ready_thhh, 0, 0.33), div(normal(), 5))",
                  "tag": "itype=runtimecloud;ctype=*;geo=*;prj=*",
                  "title": "Not ready"
              },
              {
                  "color": "#ffaa00",
                  "filled": 0.25,
                  "host": "ASEARCH",
                  "name": "div(hcount(push-system-service-yandex-coroner-pending_thhh, 0.66, inf), div(normal(), 5))",
                  "tag": "itype=runtimecloud;ctype=*;geo=*;prj=*",
                  "title": "Pending"
              },
              {
                  "color": "#00aa00",
                  "filled": 0.25,
                  "host": "ASEARCH",
                  "name": "div(hcount(push-system-service-yandex-coroner-running_thhh, 0.66, inf), div(normal(), 5))",
                  "tag": "itype=runtimecloud;ctype=*;geo=*;prj=*",
                  "title": "Running"
              },
              {
                  "color": "#ff0000",
                  "filled": 0.25,
                  "host": "ASEARCH",
                  "name": "div(hcount(push-system-service-yandex-coroner-active_thhh, 0, 0.33), div(normal(), 5))",
                  "tag": "itype=runtimecloud;ctype=*;geo=*;prj=*",
                  "title": "Not active"
              },
              {
                  "color": "#00aa00",
                  "filled": 0.25,
                  "host": "ASEARCH",
                  "name": "div(hcount(push-system-service-yandex-coroner-active_thhh, 0.66, inf), div(normal(), 5))",
                  "tag": "itype=runtimecloud;ctype=*;geo=*;prj=*",
                  "title": "Active"
              }
          ],
          "title": "[ASEARCH] yandex-coroner status",
          "type": "graphic"
      },
      {
          "minValue": 0,
					"height": 1,
          "signals": [
              {
                  "color": "#00ffff",
                  "filled": 0.25,
                  "host": "ASEARCH",
                  "name": "div(hcount(push-system-service-yandex-coroner-changed_thhh, 0.66, inf), div(normal(), 5))",
                  "tag": "itype=runtimecloud;ctype=*;geo=*;prj=*",
                  "title": "Changed"
              },
              {
                  "color": "#ff00ff",
                  "filled": 0.25,
                  "host": "ASEARCH",
                  "name": "div(hcount(push-system-service-yandex-coroner-restart_count_thhh, 0.66, inf), div(normal(), 5))",
                  "tag": "itype=runtimecloud;ctype=*;geo=*;prj=*",
                  "title": "Restarted by hostman"
              }
          ],
          "title": "[ASEARCH] yandex-coroner changes",
          "type": "graphic"
      },
      {
          "minValue": 0,
					"height": 1,
          "signals": [
              {
                  "color": "#00aaaa",
                  "filled": 0.25,
                  "host": "QLOUD",
                  "name": "div(hcount(push-system-service-yandex-coroner-ready_thhh, 0.66, inf), div(normal(), 5))",
                  "tag": "itype=runtimecloud;ctype=*;geo=*;prj=*",
                  "title": "Ready"
              },
              {
                  "color": "#ff00aa",
                  "filled": 0.25,
                  "host": "QLOUD",
                  "name": "div(hcount(push-system-service-yandex-coroner-ready_thhh, 0, 0.33), div(normal(), 5))",
                  "tag": "itype=runtimecloud;ctype=*;geo=*;prj=*",
                  "title": "Not ready"
              },
              {
                  "color": "#ffaa00",
                  "filled": 0.25,
                  "host": "QLOUD",
                  "name": "div(hcount(push-system-service-yandex-coroner-pending_thhh, 0.66, inf), div(normal(), 5))",
                  "tag": "itype=runtimecloud;ctype=*;geo=*;prj=*",
                  "title": "Pending"
              },
              {
                  "color": "#00aa00",
                  "filled": 0.25,
                  "host": "QLOUD",
                  "name": "div(hcount(push-system-service-yandex-coroner-running_thhh, 0.66, inf), div(normal(), 5))",
                  "tag": "itype=runtimecloud;ctype=*;geo=*;prj=*",
                  "title": "Running"
              },
              {
                  "color": "#ff0000",
                  "filled": 0.25,
                  "host": "QLOUD",
                  "name": "div(hcount(push-system-service-yandex-coroner-active_thhh, 0, 0.33), div(normal(), 5))",
                  "tag": "itype=runtimecloud;ctype=*;geo=*;prj=*",
                  "title": "Not active"
              },
              {
                  "color": "#00aa00",
                  "filled": 0.25,
                  "host": "QLOUD",
                  "name": "div(hcount(push-system-service-yandex-coroner-active_thhh, 0.66, inf), div(normal(), 5))",
                  "tag": "itype=runtimecloud;ctype=*;geo=*;prj=*",
                  "title": "Active"
              }
          ],
          "title": "[QLOUD] yandex-coroner status",
          "type": "graphic"
      },
      {
          "minValue": 0,
					"height": 1,
          "signals": [
              {
                  "color": "#00ffff",
                  "filled": 0.25,
                  "host": "QLOUD",
                  "name": "div(hcount(push-system-service-yandex-coroner-changed_thhh, 0.66, inf), div(normal(), 5))",
                  "tag": "itype=runtimecloud;ctype=*;geo=*;prj=*",
                  "title": "Changed"
              },
              {
                  "color": "#ff00ff",
                  "filled": 0.25,
                  "host": "QLOUD",
                  "name": "div(hcount(push-system-service-yandex-coroner-restart_count_thhh, 0.66, inf), div(normal(), 5))",
                  "tag": "itype=runtimecloud;ctype=*;geo=*;prj=*",
                  "title": "Restarted by hostman"
              }
          ],
          "title": "[QLOUD] yandex-coroner changes",
          "type": "graphic"
      }
	]
}
