307 lines
8.3 KiB
JSON
307 lines
8.3 KiB
JSON
{
|
|
"id": "d5009221-bd75-4118-a259-c620cc42ba72",
|
|
"meta": {
|
|
"name": "Mesos",
|
|
"measurements": ["mesos"],
|
|
"version": "1.0",
|
|
"dashboardVersion": "1.x",
|
|
"description": "Dashboard for the telegraf input plug-in: Mesos",
|
|
"author": "influxdata",
|
|
"license": "MIT",
|
|
"icon": "",
|
|
"url": "https://github.com/influxdata/telegraf/tree/master/plugins/inputs/mesos"
|
|
},
|
|
"data": {
|
|
"cells": [
|
|
{
|
|
"w": 4,
|
|
"h": 4,
|
|
"name": "Mesos Active Slaves",
|
|
"queries": [
|
|
{
|
|
"query": "SELECT max(\"master/slaves_active\") AS \"Active Slaves\" FROM \":db:\".\":rp:\".\"mesos\" WHERE time > :dashboardTime: AND \"host\" = :host: GROUP BY time(:interval:)",
|
|
"label": "count"
|
|
}
|
|
],
|
|
"type": "line",
|
|
"axes": {
|
|
"x": {
|
|
"prefix": "",
|
|
"suffix": "",
|
|
"base": "10",
|
|
"scale": "linear",
|
|
"label": "",
|
|
"bounds": ["", ""]
|
|
},
|
|
"y": {
|
|
"prefix": "",
|
|
"suffix": "count",
|
|
"base": "10",
|
|
"scale": "linear",
|
|
"label": "",
|
|
"bounds": ["", ""]
|
|
},
|
|
"y2": {
|
|
"prefix": "",
|
|
"suffix": "",
|
|
"base": "10",
|
|
"scale": "linear",
|
|
"label": "",
|
|
"bounds": ["", ""]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"w": 4,
|
|
"h": 4,
|
|
"name": "Mesos Tasks Active",
|
|
"queries": [
|
|
{
|
|
"query": "SELECT max(\"master/tasks_running\") AS \"num tasks\" FROM \":db:\".\":rp:\".\"mesos\" WHERE time > :dashboardTime: AND \"host\" = :host: GROUP BY time(:interval:)",
|
|
"label": "count"
|
|
}
|
|
],
|
|
"type": "line",
|
|
"axes": {
|
|
"x": {
|
|
"prefix": "",
|
|
"suffix": "",
|
|
"base": "10",
|
|
"scale": "linear",
|
|
"label": "",
|
|
"bounds": ["", ""]
|
|
},
|
|
"y": {
|
|
"prefix": "",
|
|
"suffix": "count",
|
|
"base": "10",
|
|
"scale": "linear",
|
|
"label": "",
|
|
"bounds": ["", ""]
|
|
},
|
|
"y2": {
|
|
"prefix": "",
|
|
"suffix": "",
|
|
"base": "10",
|
|
"scale": "linear",
|
|
"label": "",
|
|
"bounds": ["", ""]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"w": 4,
|
|
"h": 4,
|
|
"name": "Mesos Tasks",
|
|
"queries": [
|
|
{
|
|
"query": "SELECT non_negative_derivative(max(\"master/tasks_finished\"), 60s) AS \"tasks finished\" FROM \":db:\".\":rp:\".\"mesos\" WHERE time > :dashboardTime: AND \"host\" = :host: GROUP BY time(:interval:)",
|
|
"label": "count"
|
|
},
|
|
{
|
|
"query": "SELECT non_negative_derivative(max(\"master/tasks_failed\"), 60s) AS \"tasks failed\" FROM \":db:\".\":rp:\".\"mesos\" WHERE time > :dashboardTime: AND \"host\" = :host: GROUP BY time(:interval:)"
|
|
},
|
|
{
|
|
"query": "SELECT non_negative_derivative(max(\"master/tasks_killed\"), 60s) AS \"tasks killed\" FROM \":db:\".\":rp:\".\"mesos\" WHERE time > :dashboardTime: AND \"host\" = :host: GROUP BY time(:interval:)"
|
|
}
|
|
],
|
|
"type": "line",
|
|
"axes": {
|
|
"x": {
|
|
"prefix": "",
|
|
"suffix": "",
|
|
"base": "10",
|
|
"scale": "linear",
|
|
"label": "",
|
|
"bounds": ["", ""]
|
|
},
|
|
"y": {
|
|
"prefix": "",
|
|
"suffix": "count",
|
|
"base": "10",
|
|
"scale": "linear",
|
|
"label": "",
|
|
"bounds": ["", ""]
|
|
},
|
|
"y2": {
|
|
"prefix": "",
|
|
"suffix": "",
|
|
"base": "10",
|
|
"scale": "linear",
|
|
"label": "",
|
|
"bounds": ["", ""]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"w": 4,
|
|
"h": 4,
|
|
"name": "Mesos Outstanding offers",
|
|
"queries": [
|
|
{
|
|
"query": "SELECT max(\"master/outstanding_offers\") AS \"Outstanding Offers\" FROM \":db:\".\":rp:\".\"mesos\" WHERE time > :dashboardTime: AND \"host\" = :host: GROUP BY time(:interval:)",
|
|
"label": "count"
|
|
}
|
|
],
|
|
"type": "line",
|
|
"axes": {
|
|
"x": {
|
|
"prefix": "",
|
|
"suffix": "",
|
|
"base": "10",
|
|
"scale": "linear",
|
|
"label": "",
|
|
"bounds": ["", ""]
|
|
},
|
|
"y": {
|
|
"prefix": "",
|
|
"suffix": "count",
|
|
"base": "10",
|
|
"scale": "linear",
|
|
"label": "",
|
|
"bounds": ["", ""]
|
|
},
|
|
"y2": {
|
|
"prefix": "",
|
|
"suffix": "",
|
|
"base": "10",
|
|
"scale": "linear",
|
|
"label": "",
|
|
"bounds": ["", ""]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"w": 4,
|
|
"h": 4,
|
|
"name": "Mesos Available/Used CPUs",
|
|
"queries": [
|
|
{
|
|
"query": "SELECT max(\"master/cpus_total\") AS \"cpu total\", max(\"master/cpus_used\") AS \"cpu used\" FROM \":db:\".\":rp:\".\"mesos\" WHERE time > :dashboardTime: AND \"host\" = :host: GROUP BY time(:interval:)",
|
|
"label": "count"
|
|
}
|
|
],
|
|
"type": "line",
|
|
"axes": {
|
|
"x": {
|
|
"prefix": "",
|
|
"suffix": "",
|
|
"base": "10",
|
|
"scale": "linear",
|
|
"label": "",
|
|
"bounds": ["", ""]
|
|
},
|
|
"y": {
|
|
"prefix": "",
|
|
"suffix": "count",
|
|
"base": "10",
|
|
"scale": "linear",
|
|
"label": "",
|
|
"bounds": ["", ""]
|
|
},
|
|
"y2": {
|
|
"prefix": "",
|
|
"suffix": "",
|
|
"base": "10",
|
|
"scale": "linear",
|
|
"label": "",
|
|
"bounds": ["", ""]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"w": 4,
|
|
"h": 4,
|
|
"name": "Mesos Available/Used Memory",
|
|
"queries": [
|
|
{
|
|
"query": "SELECT max(\"master/mem_total\") AS \"memory total\", max(\"master/mem_used\") AS \"memory used\" FROM \":db:\".\":rp:\".\"mesos\" WHERE time > :dashboardTime: AND \"host\" = :host: GROUP BY time(:interval:)",
|
|
"label": "MB"
|
|
}
|
|
],
|
|
"type": "line",
|
|
"axes": {
|
|
"x": {
|
|
"prefix": "",
|
|
"suffix": "",
|
|
"base": "10",
|
|
"scale": "linear",
|
|
"label": "",
|
|
"bounds": ["", ""]
|
|
},
|
|
"y": {
|
|
"prefix": "",
|
|
"suffix": "MB",
|
|
"base": "10",
|
|
"scale": "linear",
|
|
"label": "",
|
|
"bounds": ["", ""]
|
|
},
|
|
"y2": {
|
|
"prefix": "",
|
|
"suffix": "",
|
|
"base": "10",
|
|
"scale": "linear",
|
|
"label": "",
|
|
"bounds": ["", ""]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"w": 4,
|
|
"h": 4,
|
|
"name": "Mesos Master Uptime",
|
|
"queries": [
|
|
{
|
|
"query": "SELECT max(\"master/uptime_secs\") AS \"uptime\" FROM \":db:\".\":rp:\".\"mesos\" WHERE time > :dashboardTime: AND \"host\" = :host: GROUP BY time(:interval:)",
|
|
"label": "Seconds"
|
|
}
|
|
],
|
|
"type": "single-stat",
|
|
"axes": {
|
|
"x": {
|
|
"prefix": "",
|
|
"suffix": "",
|
|
"base": "10",
|
|
"scale": "linear",
|
|
"label": "",
|
|
"bounds": ["", ""]
|
|
},
|
|
"y": {
|
|
"prefix": "",
|
|
"suffix": "Seconds",
|
|
"base": "10",
|
|
"scale": "linear",
|
|
"label": "",
|
|
"bounds": ["", ""]
|
|
},
|
|
"y2": {
|
|
"prefix": "",
|
|
"suffix": "",
|
|
"base": "10",
|
|
"scale": "linear",
|
|
"label": "",
|
|
"bounds": ["", ""]
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"templates": [
|
|
{
|
|
"tempVar": ":host:",
|
|
"id": "",
|
|
"type": "tagValues",
|
|
"label": "",
|
|
"values": [],
|
|
"query": {
|
|
"influxql": "SHOW TAG VALUES ON :database: FROM :measurement: WITH KEY=:tagKey:",
|
|
"db": "telegraf",
|
|
"measurement": "mesos",
|
|
"tagKey": "host",
|
|
"fieldKey": ""
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|