Grafana dashboard: dashboard
Description: test


{
  "__inputs": [
    {
      "name": "DS_POSTGRESQL",
      "label": "PostgreSQL",
      "description": "",
      "type": "datasource",
      "pluginId": "postgres",
      "pluginName": "PostgreSQL"
    }
  ],
  "__requires": [
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "5.3.0-beta1"
    },
    {
      "type": "datasource",
      "id": "postgres",
      "name": "PostgreSQL",
      "version": "5.0.0"
    },
    {
      "type": "panel",
      "id": "table",
      "name": "Table",
      "version": "5.0.0"
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "editable": true,
  "gnetId": 8020,
  "graphTooltip": 0,
  "id": null,
  "links": [],
  "panels": [
    {
      "columns": [],
      "datasource": "${DS_POSTGRESQL}",
      "fontSize": "100%",
      "gridPos": {
        "h": 5,
        "w": 23,
        "x": 0,
        "y": 0
      },
      "id": 2,
      "links": [],
      "pageSize": null,
      "scroll": true,
      "showHeader": true,
      "sort": {
        "col": 0,
        "desc": false
      },
      "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": [
        {
          "format": "table",
          "group": [],
          "hide": false,
          "metricColumn": "none",
          "rawQuery": true,
          "rawSql": "SELECT \"NhanVien\".\"HoTenNV\" as \"Họ Tên Nhân Viên\" ,\"MucTieu\".\"SoMT\" as \"Muc tiêu Tuần\",\r\n\r\n\"HoanThanh\".\"SoHT\" as \"Hoàn Thành Tuần\", \"HoanThanh\".\"SoHT\"/\"MucTieu\".\"SoMT\"*100 as \"% Tuần\"\r\n\r\nFROM public.\"NhanVien\",public.\"MucTieu\",public.\"HoanThanh\"\r\n\r\nwhere public.\"NhanVien\".\"MaNV\"=public.\"MucTieu\".\"MaNV\" and public.\"NhanVien\".\"MaNV\"=public.\"HoanThanh\".\"MaNV\" \r\n      \r\n      and public.\"MucTieu\".\"MaMT\" like '%Tuan%' and public.\"HoanThanh\".\"MaHT\" like '%Tuan%'\r\n\r\n\r\n",
          "refId": "A",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "column"
              }
            ]
          ],
          "timeColumn": "time",
          "where": [
            {
              "name": "$__timeFilter",
              "params": [],
              "type": "macro"
            }
          ]
        },
        {
          "format": "table",
          "group": [],
          "metricColumn": "none",
          "rawQuery": true,
          "rawSql": "SELECT \"NhanVien\".\"HoTenNV\" as \"Họ Tên Nhân Viên\" ,\"MucTieu\".\"SoMT\" as \"Muc tiêu Tháng\",\r\n\r\n\"HoanThanh\".\"SoHT\" as \"Hoàn Thành Tháng\", \"HoanThanh\".\"SoHT\"/\"MucTieu\".\"SoMT\"*100 as \"% Tháng\"\r\n\r\nFROM public.\"NhanVien\",public.\"MucTieu\",public.\"HoanThanh\"\r\n\r\nwhere public.\"NhanVien\".\"MaNV\"=public.\"MucTieu\".\"MaNV\" and public.\"NhanVien\".\"MaNV\"=public.\"HoanThanh\".\"MaNV\" \r\n      \r\n      and public.\"MucTieu\".\"MaMT\" like '%Thang%' and public.\"HoanThanh\".\"MaHT\" like '%Thang%'",
          "refId": "B",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "column"
              }
            ]
          ],
          "timeColumn": "time",
          "where": [
            {
              "name": "$__timeFilter",
              "params": [],
              "type": "macro"
            }
          ]
        },
        {
          "format": "table",
          "group": [],
          "metricColumn": "none",
          "rawQuery": true,
          "rawSql": "SELECT \"NhanVien\".\"HoTenNV\" as \"Họ Tên Nhân Viên\" ,\"MucTieu\".\"SoMT\" as \"Muc tiêu Năm\",\r\n\r\n\"HoanThanh\".\"SoHT\" as \"Hoàn Thành Năm\", \"HoanThanh\".\"SoHT\"/\"MucTieu\".\"SoMT\"*100 as \"% Năm\"\r\n\r\nFROM public.\"NhanVien\",public.\"MucTieu\",public.\"HoanThanh\"\r\n\r\nwhere public.\"NhanVien\".\"MaNV\"=public.\"MucTieu\".\"MaNV\" and public.\"NhanVien\".\"MaNV\"=public.\"HoanThanh\".\"MaNV\" \r\n      \r\n      and public.\"MucTieu\".\"MaMT\" like '%Nam%' and public.\"HoanThanh\".\"MaHT\" like '%Nam%'",
          "refId": "C",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "column"
              }
            ]
          ],
          "timeColumn": "time",
          "where": [
            {
              "name": "$__timeFilter",
              "params": [],
              "type": "macro"
            }
          ]
        }
      ],
      "title": "Chi Tiết Nhân Viên",
      "transform": "table",
      "type": "table"
    },
    {
      "columns": [],
      "datasource": "${DS_POSTGRESQL}",
      "fontSize": "100%",
      "gridPos": {
        "h": 9,
        "w": 7,
        "x": 0,
        "y": 5
      },
      "id": 4,
      "links": [],
      "pageSize": null,
      "scroll": true,
      "showHeader": true,
      "sort": {
        "col": 0,
        "desc": false
      },
      "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": [
        {
          "format": "table",
          "group": [],
          "hide": false,
          "metricColumn": "none",
          "rawQuery": true,
          "rawSql": "SELECT \"NhanVien\".\"HoTenNV\" as \"Họ Tên Nhân Viên\" ,\"MucTieu\".\"SoMT\" as \"Muc tiêu Tuần\",\r\n\r\n\"HoanThanh\".\"SoHT\" as \"Hoàn Thành Tuần\", \"HoanThanh\".\"SoHT\"/\"MucTieu\".\"SoMT\"*100 as \"% Tuần\"\r\n\r\nFROM public.\"NhanVien\",public.\"MucTieu\",public.\"HoanThanh\"\r\n\r\nwhere public.\"NhanVien\".\"MaNV\"=public.\"MucTieu\".\"MaNV\" and public.\"NhanVien\".\"MaNV\"=public.\"HoanThanh\".\"MaNV\" \r\n      \r\n      and public.\"MucTieu\".\"MaMT\" like '%Tuan%' and public.\"HoanThanh\".\"MaHT\" like '%Tuan%'\r\n ",
          "refId": "A",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "column"
              }
            ]
          ],
          "timeColumn": "time",
          "where": [
            {
              "name": "$__timeFilter",
              "params": [],
              "type": "macro"
            }
          ]
        }
      ],
      "title": "Muc tiêu tuần",
      "transform": "table",
      "type": "table"
    },
    {
      "columns": [],
      "datasource": "${DS_POSTGRESQL}",
      "fontSize": "100%",
      "gridPos": {
        "h": 9,
        "w": 8,
        "x": 7,
        "y": 5
      },
      "id": 6,
      "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": [
        {
          "format": "table",
          "group": [],
          "hide": false,
          "metricColumn": "none",
          "rawQuery": true,
          "rawSql": "SELECT \"NhanVien\".\"HoTenNV\" as \"Họ Tên Nhân Viên\" ,\"MucTieu\".\"SoMT\" as \"Muc tiêu Tháng\",\r\n\r\n\"HoanThanh\".\"SoHT\" as \"Hoàn Thành Tháng\", \"HoanThanh\".\"SoHT\"/\"MucTieu\".\"SoMT\"*100 as \"% Tháng\"\r\n\r\nFROM public.\"NhanVien\",public.\"MucTieu\",public.\"HoanThanh\"\r\n\r\nwhere public.\"NhanVien\".\"MaNV\"=public.\"MucTieu\".\"MaNV\" and public.\"NhanVien\".\"MaNV\"=public.\"HoanThanh\".\"MaNV\" \r\n      \r\n      and public.\"MucTieu\".\"MaMT\" like '%Thang%' and public.\"HoanThanh\".\"MaHT\" like '%Thang%'\r\n ",
          "refId": "A",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "column"
              }
            ]
          ],
          "timeColumn": "time",
          "where": [
            {
              "name": "$__timeFilter",
              "params": [],
              "type": "macro"
            }
          ]
        }
      ],
      "title": "Mục Tiêu Tháng",
      "transform": "table",
      "type": "table"
    },
    {
      "columns": [],
      "datasource": "${DS_POSTGRESQL}",
      "fontSize": "100%",
      "gridPos": {
        "h": 9,
        "w": 8,
        "x": 15,
        "y": 5
      },
      "id": 7,
      "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": [
        {
          "format": "table",
          "group": [],
          "hide": false,
          "metricColumn": "none",
          "rawQuery": true,
          "rawSql": "SELECT \"NhanVien\".\"HoTenNV\" as \"Họ Tên Nhân Viên\" ,\"MucTieu\".\"SoMT\" as \"Muc tiêu Năm\",\r\n\r\n\"HoanThanh\".\"SoHT\" as \"Hoàn Thành Năm\", \"HoanThanh\".\"SoHT\"/\"MucTieu\".\"SoMT\"*100 as \"% Năm\"\r\n\r\nFROM public.\"NhanVien\",public.\"MucTieu\",public.\"HoanThanh\"\r\n\r\nwhere public.\"NhanVien\".\"MaNV\"=public.\"MucTieu\".\"MaNV\" and public.\"NhanVien\".\"MaNV\"=public.\"HoanThanh\".\"MaNV\" \r\n      \r\n      and public.\"MucTieu\".\"MaMT\" like '%Nam%' and public.\"HoanThanh\".\"MaHT\" like '%Nam%'\r\n ",
          "refId": "A",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "column"
              }
            ]
          ],
          "timeColumn": "time",
          "where": [
            {
              "name": "$__timeFilter",
              "params": [],
              "type": "macro"
            }
          ]
        }
      ],
      "title": "Mục Tiêu Tháng",
      "transform": "table",
      "type": "table"
    }
  ],
  "refresh": false,
  "schemaVersion": 16,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": []
  },
  "time": {
    "from": "2018-09-18T08:41:52.625Z",
    "to": "2018-09-18T09:21:56.521Z"
  },
  "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": "dashboard",
  "uid": "c4Ck88oik",
  "version": 20,
  "description": "test"
}