Mesos
Dashboard based on Mesos official collector (https://github.com/mesos/mesos_exporter)
Dashboard based on Mesos official collector (https://github.com/mesos/mesos_exporter)
{
  "__inputs": [
    {
      "name": "DS_PROMETHEUS",
      "label": "Prometheus",
      "description": "",
      "type": "datasource",
      "pluginId": "prometheus",
      "pluginName": "Prometheus"
    }
  ],
  "__requires": [
    {
      "type": "panel",
      "id": "gauge",
      "name": "Gauge",
      "version": ""
    },
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "6.1.3"
    },
    {
      "type": "panel",
      "id": "grafana-piechart-panel",
      "name": "Pie Chart",
      "version": "1.3.6"
    },
    {
      "type": "panel",
      "id": "graph",
      "name": "Graph",
      "version": ""
    },
    {
      "type": "datasource",
      "id": "prometheus",
      "name": "Prometheus",
      "version": "1.0.0"
    },
    {
      "type": "panel",
      "id": "singlestat",
      "name": "Singlestat",
      "version": ""
    },
    {
      "type": "panel",
      "id": "table",
      "name": "Table",
      "version": ""
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "editable": false,
  "gnetId": 10042,
  "graphTooltip": 0,
  "id": null,
  "iteration": 1555074173750,
  "links": [],
  "panels": [
    {
      "cacheTimeout": null,
      "columns": [],
      "fontSize": "100%",
      "gridPos": {
        "h": 8,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "id": 23,
      "links": [],
      "pageSize": null,
      "scroll": true,
      "showHeader": true,
      "sort": {
        "col": 0,
        "desc": true
      },
      "styles": [
        {
          "alias": "Time",
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "pattern": "Time",
          "type": "date"
        },
        {
          "alias": "",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "decimals": 2,
          "pattern": "/.*/",
          "thresholds": [],
          "type": "number",
          "unit": "short"
        }
      ],
      "targets": [
        {
          "expr": "mesos_slave_task_states_exit_total{instance='$node',state='errored'}",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "errored",
          "refId": "A"
        },
        {
          "expr": "mesos_slave_task_states_exit_total{instance='$node',state='failed'}",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "failed",
          "refId": "B"
        },
        {
          "expr": "mesos_slave_task_states_exit_total{instance='$node',state='finished'}",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "finished",
          "refId": "C"
        },
        {
          "expr": "mesos_slave_task_states_exit_total{instance='$node',state='gone'}",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "gone",
          "refId": "D"
        },
        {
          "expr": "mesos_slave_task_states_exit_total{instance='$node',state='killed'}",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "killed",
          "refId": "E"
        },
        {
          "expr": "mesos_slave_task_states_exit_total{instance='$node',state='lost'}",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "lost",
          "refId": "F"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "任务状态退出总量",
      "transform": "timeseries_to_columns",
      "type": "table"
    },
    {
      "columns": [],
      "fontSize": "100%",
      "gridPos": {
        "h": 8,
        "w": 24,
        "x": 0,
        "y": 8
      },
      "id": 21,
      "links": [],
      "pageSize": null,
      "scroll": true,
      "showHeader": true,
      "sort": {
        "col": 0,
        "desc": true
      },
      "styles": [
        {
          "alias": "Time",
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "pattern": "Time",
          "type": "date"
        },
        {
          "alias": "",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "decimals": 2,
          "pattern": "/.*/",
          "thresholds": [],
          "type": "number",
          "unit": "short"
        }
      ],
      "targets": [
        {
          "expr": "mesos_slave_messages_outcomes_total{instance='$node',type='framework',outcome='invalid'}",
          "format": "time_series",
          "hide": false,
          "intervalFactor": 1,
          "legendFormat": "framework_invalid",
          "refId": "A"
        },
        {
          "expr": "mesos_slave_messages_outcomes_total{instance='$node',type='framework',outcome='valid'}",
          "format": "time_series",
          "hide": false,
          "intervalFactor": 1,
          "legendFormat": "framework_valid",
          "refId": "B"
        },
        {
          "expr": "mesos_slave_messages_outcomes_total{instance='$node',type='status',outcome='invalid'}",
          "format": "time_series",
          "hide": false,
          "intervalFactor": 1,
          "legendFormat": "status_invalid",
          "refId": "C"
        },
        {
          "expr": "mesos_slave_messages_outcomes_total{instance='$node',type='status',outcome='valid'}",
          "format": "time_series",
          "hide": false,
          "intervalFactor": 1,
          "legendFormat": "status_valid",
          "refId": "D"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "信息总量",
      "transform": "timeseries_to_columns",
      "transparent": true,
      "type": "table"
    },
    {
      "aliasColors": {},
      "breakPoint": "50%",
      "cacheTimeout": null,
      "combine": {
        "label": "Others",
        "threshold": 0
      },
      "fontSize": "80%",
      "format": "short",
      "gridPos": {
        "h": 9,
        "w": 24,
        "x": 0,
        "y": 16
      },
      "id": 6,
      "interval": null,
      "legend": {
        "show": true,
        "values": true
      },
      "legendType": "Right side",
      "links": [],
      "maxDataPoints": 3,
      "nullPointMode": "connected",
      "pieType": "pie",
      "strokeWidth": 1,
      "targets": [
        {
          "expr": "mesos_slave_executor_state{instance='$node',state='registering'}",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "registering",
          "refId": "A"
        },
        {
          "expr": "mesos_slave_executor_state{instance='$node',state='running'}",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "running",
          "refId": "B"
        },
        {
          "expr": "mesos_slave_executor_state{instance='$node',state='terminating'}",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "terminating",
          "refId": "C"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "执行器状态",
      "transparent": true,
      "type": "grafana-piechart-panel",
      "valueName": "current"
    },
    {
      "cacheTimeout": null,
      "gridPos": {
        "h": 8,
        "w": 6,
        "x": 0,
        "y": 25
      },
      "id": 17,
      "links": [],
      "options": {
        "maxValue": "100",
        "minValue": 0,
        "orientation": "auto",
        "showThresholdLabels": true,
        "showThresholdMarkers": true,
        "thresholds": [
          {
            "color": "green",
            "index": 0,
            "value": null
          },
          {
            "color": "semi-dark-blue",
            "index": 1,
            "value": 25
          },
          {
            "color": "#6ED0E0",
            "index": 2,
            "value": 50
          },
          {
            "color": "#EAB839",
            "index": 3,
            "value": 75
          }
        ],
        "valueMappings": [],
        "valueOptions": {
          "decimals": null,
          "prefix": "",
          "stat": "mean",
          "suffix": "",
          "unit": "percent"
        }
      },
      "pluginVersion": "6.1.3",
      "targets": [
        {
          "expr": "mesos_slave_mem_revocable{type=\"percent\",instance='$node'}",
          "format": "time_series",
          "intervalFactor": 1,
          "refId": "A"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "可撤销的内存",
      "transparent": true,
      "type": "gauge"
    },
    {
      "cacheTimeout": null,
      "gridPos": {
        "h": 8,
        "w": 6,
        "x": 6,
        "y": 25
      },
      "id": 16,
      "links": [],
      "options": {
        "maxValue": "100",
        "minValue": 0,
        "orientation": "auto",
        "showThresholdLabels": true,
        "showThresholdMarkers": true,
        "thresholds": [
          {
            "color": "green",
            "index": 0,
            "value": null
          },
          {
            "color": "#6ED0E0",
            "index": 1,
            "value": 25
          },
          {
            "color": "#EAB839",
            "index": 2,
            "value": 50
          },
          {
            "color": "semi-dark-blue",
            "index": 3,
            "value": 75
          }
        ],
        "valueMappings": [
          {
            "from": "",
            "id": 1,
            "operator": "",
            "text": "",
            "to": "",
            "type": 1,
            "value": ""
          }
        ],
        "valueOptions": {
          "decimals": null,
          "prefix": "",
          "stat": "mean",
          "suffix": "",
          "unit": "percent"
        }
      },
      "pluginVersion": "6.1.3",
      "targets": [
        {
          "expr": "mesos_slave_mem{type=\"percent\",instance='$node'}",
          "format": "time_series",
          "intervalFactor": 1,
          "refId": "A"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "内存",
      "transparent": true,
      "type": "gauge"
    },
    {
      "cacheTimeout": null,
      "gridPos": {
        "h": 8,
        "w": 6,
        "x": 12,
        "y": 25
      },
      "id": 24,
      "links": [],
      "options": {
        "maxValue": "100",
        "minValue": 0,
        "orientation": "auto",
        "showThresholdLabels": true,
        "showThresholdMarkers": true,
        "thresholds": [
          {
            "color": "green",
            "index": 0,
            "value": null
          },
          {
            "color": "#6ED0E0",
            "index": 1,
            "value": 25
          },
          {
            "color": "#EAB839",
            "index": 2,
            "value": 50
          },
          {
            "color": "semi-dark-blue",
            "index": 3,
            "value": 75
          }
        ],
        "valueMappings": [
          {
            "from": "",
            "id": 1,
            "operator": "",
            "text": "",
            "to": "",
            "type": 1,
            "value": ""
          }
        ],
        "valueOptions": {
          "decimals": null,
          "prefix": "",
          "stat": "mean",
          "suffix": "",
          "unit": "percent"
        }
      },
      "pluginVersion": "6.1.3",
      "targets": [
        {
          "expr": "mesos_slave_cpus{type=\"percent\",instance='$node'}",
          "format": "time_series",
          "intervalFactor": 1,
          "refId": "A"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "CPU",
      "transparent": true,
      "type": "gauge"
    },
    {
      "cacheTimeout": null,
      "gridPos": {
        "h": 8,
        "w": 6,
        "x": 18,
        "y": 25
      },
      "id": 25,
      "links": [],
      "options": {
        "maxValue": "100",
        "minValue": 0,
        "orientation": "auto",
        "showThresholdLabels": true,
        "showThresholdMarkers": true,
        "thresholds": [
          {
            "color": "green",
            "index": 0,
            "value": null
          },
          {
            "color": "#6ED0E0",
            "index": 1,
            "value": 25
          },
          {
            "color": "#EAB839",
            "index": 2,
            "value": 50
          },
          {
            "color": "semi-dark-blue",
            "index": 3,
            "value": 75
          }
        ],
        "valueMappings": [
          {
            "from": "",
            "id": 1,
            "operator": "",
            "text": "",
            "to": "",
            "type": 1,
            "value": ""
          }
        ],
        "valueOptions": {
          "decimals": null,
          "prefix": "",
          "stat": "mean",
          "suffix": "",
          "unit": "percent"
        }
      },
      "pluginVersion": "6.1.3",
      "targets": [
        {
          "expr": "mesos_slave_cpus_revocable{type=\"percent\",instance='$node'}",
          "format": "time_series",
          "intervalFactor": 1,
          "refId": "A"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "可撤销的CPU",
      "transparent": true,
      "type": "gauge"
    },
    {
      "cacheTimeout": null,
      "colorBackground": false,
      "colorValue": false,
      "colors": [
        "#299c46",
        "rgba(237, 129, 40, 0.89)",
        "#d44a3a"
      ],
      "format": "none",
      "gauge": {
        "maxValue": 100,
        "minValue": 0,
        "show": false,
        "thresholdLabels": false,
        "thresholdMarkers": true
      },
      "gridPos": {
        "h": 7,
        "w": 4,
        "x": 0,
        "y": 33
      },
      "id": 12,
      "interval": null,
      "links": [],
      "mappingType": 1,
      "mappingTypes": [
        {
          "name": "value to text",
          "value": 1
        },
        {
          "name": "range to text",
          "value": 2
        }
      ],
      "maxDataPoints": 100,
      "nullPointMode": "connected",
      "nullText": null,
      "postfix": "",
      "postfixFontSize": "50%",
      "prefix": "",
      "prefixFontSize": "50%",
      "rangeMaps": [
        {
          "from": "null",
          "text": "N/A",
          "to": "null"
        }
      ],
      "sparkline": {
        "fillColor": "rgba(31, 118, 189, 0.18)",
        "full": false,
        "lineColor": "rgb(31, 120, 193)",
        "show": false
      },
      "tableColumn": "",
      "targets": [
        {
          "expr": "mesos_slave_executors_terminated{instance='$node'}",
          "format": "time_series",
          "intervalFactor": 1,
          "refId": "A"
        }
      ],
      "thresholds": "",
      "timeFrom": null,
      "timeShift": null,
      "title": "执行器终止",
      "transparent": true,
      "type": "singlestat",
      "valueFontSize": "80%",
      "valueMaps": [
        {
          "op": "=",
          "text": "N/A",
          "value": "null"
        }
      ],
      "valueName": "avg"
    },
    {
      "cacheTimeout": null,
      "colorBackground": false,
      "colorValue": false,
      "colors": [
        "#299c46",
        "rgba(237, 129, 40, 0.89)",
        "#d44a3a"
      ],
      "format": "none",
      "gauge": {
        "maxValue": 100,
        "minValue": 0,
        "show": false,
        "thresholdLabels": false,
        "thresholdMarkers": true
      },
      "gridPos": {
        "h": 7,
        "w": 4,
        "x": 4,
        "y": 33
      },
      "id": 14,
      "interval": null,
      "links": [],
      "mappingType": 1,
      "mappingTypes": [
        {
          "name": "value to text",
          "value": 1
        },
        {
          "name": "range to text",
          "value": 2
        }
      ],
      "maxDataPoints": 100,
      "nullPointMode": "connected",
      "nullText": null,
      "pluginVersion": "6.1.1",
      "postfix": "",
      "postfixFontSize": "50%",
      "prefix": "",
      "prefixFontSize": "50%",
      "rangeMaps": [
        {
          "from": "null",
          "text": "N/A",
          "to": "null"
        }
      ],
      "sparkline": {
        "fillColor": "rgba(31, 118, 189, 0.18)",
        "full": false,
        "lineColor": "rgb(31, 120, 193)",
        "show": false
      },
      "tableColumn": "",
      "targets": [
        {
          "expr": "mesos_slave_registered{instance='$node'}",
          "format": "time_series",
          "intervalFactor": 1,
          "refId": "A"
        }
      ],
      "thresholds": "",
      "timeFrom": null,
      "timeShift": null,
      "title": "注册",
      "transparent": true,
      "type": "singlestat",
      "valueFontSize": "80%",
      "valueMaps": [
        {
          "op": "=",
          "text": "N/A",
          "value": "null"
        }
      ],
      "valueName": "avg"
    },
    {
      "cacheTimeout": null,
      "colorBackground": false,
      "colorValue": false,
      "colors": [
        "#299c46",
        "rgba(237, 129, 40, 0.89)",
        "#d44a3a"
      ],
      "format": "s",
      "gauge": {
        "maxValue": 100,
        "minValue": 0,
        "show": false,
        "thresholdLabels": false,
        "thresholdMarkers": true
      },
      "gridPos": {
        "h": 7,
        "w": 4,
        "x": 8,
        "y": 33
      },
      "id": 8,
      "interval": null,
      "links": [],
      "mappingType": 1,
      "mappingTypes": [
        {
          "name": "value to text",
          "value": 1
        },
        {
          "name": "range to text",
          "value": 2
        }
      ],
      "maxDataPoints": 100,
      "nullPointMode": "connected",
      "nullText": null,
      "postfix": "",
      "postfixFontSize": "50%",
      "prefix": "",
      "prefixFontSize": "50%",
      "rangeMaps": [
        {
          "from": "null",
          "text": "N/A",
          "to": "null"
        }
      ],
      "sparkline": {
        "fillColor": "rgba(31, 118, 189, 0.18)",
        "full": false,
        "lineColor": "rgb(31, 120, 193)",
        "show": false
      },
      "tableColumn": "",
      "targets": [
        {
          "expr": "mesos_slave_executor_directory_max_allowed_age_secs{instance='$node'}",
          "format": "time_series",
          "intervalFactor": 1,
          "refId": "A"
        }
      ],
      "thresholds": "",
      "timeFrom": null,
      "timeShift": null,
      "title": "最大允许执行时间",
      "transparent": true,
      "type": "singlestat",
      "valueFontSize": "80%",
      "valueMaps": [
        {
          "op": "=",
          "text": "N/A",
          "value": "null"
        }
      ],
      "valueName": "avg"
    },
    {
      "aliasColors": {},
      "bars": false,
      "cacheTimeout": null,
      "dashLength": 10,
      "dashes": false,
      "fill": 1,
      "gridPos": {
        "h": 8,
        "w": 24,
        "x": 0,
        "y": 40
      },
      "id": 10,
      "legend": {
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null",
      "percentage": false,
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "mesos_slave_executors_preempted{instance='$node'}",
          "format": "time_series",
          "intervalFactor": 1,
          "refId": "A"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "执行器抢占",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "transparent": true,
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    }
  ],
  "schemaVersion": 18,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": [
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_PROMETHEUS}",
        "definition": "label_values(mesos_slave_task_labels,instance)",
        "hide": 0,
        "includeAll": false,
        "label": "节点",
        "multi": false,
        "name": "node",
        "options": [],
        "query": "label_values(mesos_slave_task_labels,instance)",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      }
    ]
  },
  "time": {
    "from": "now-6h",
    "to": "now"
  },
  "timepicker": {
    "refresh_intervals": [
      "5s",
      "10s",
      "30s",
      "1m",
      "5m",
      "15m",
      "30m",
      "1h",
      "2h",
      "1d"
    ],
    "time_options": [
      "5m",
      "15m",
      "1h",
      "6h",
      "12h",
      "24h",
      "2d",
      "7d",
      "30d"
    ]
  },
  "timezone": "",
  "title": "Mesos",
  "uid": "7PNt84RZk",
  "version": 1,
  "description": "Dashboard based on Mesos official collector (https://github.com/mesos/mesos_exporter)"
}