HEPIC Completed Call Stats
Provides Pie Factory for Calls and Peer by number, minutes, average
Provides Pie Factory for HEPIC Calls and Peer IN/OUT by number, minutes, average duration.
{
  "__inputs": [
    {
      "name": "DS_CLICKHOUSE",
      "label": "ClickHouse",
      "description": "Altinity Plugin for ClickHouse",
      "type": "datasource",
      "pluginId": "vertamedia-clickhouse-datasource",
      "pluginName": "ClickHouse"
    }
  ],
  "__requires": [
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "6.2.5"
    },
    {
      "type": "panel",
      "id": "grafana-piechart-panel",
      "name": "Pie Chart",
      "version": "1.4.0"
    },
    {
      "type": "datasource",
      "id": "vertamedia-clickhouse-datasource",
      "name": "ClickHouse",
      "version": "1.9.5"
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "editable": true,
  "gnetId": 12719,
  "graphTooltip": 0,
  "id": null,
  "links": [],
  "panels": [
    {
      "collapsed": false,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "id": 17,
      "panels": [],
      "title": "Completed Calls",
      "type": "row"
    },
    {
      "aliasColors": {},
      "breakPoint": "50%",
      "cacheTimeout": null,
      "combine": {
        "label": "Others",
        "threshold": 0
      },
      "datasource": "${DS_CLICKHOUSE}",
      "fontSize": "80%",
      "format": "short",
      "gridPos": {
        "h": 7,
        "w": 7,
        "x": 0,
        "y": 1
      },
      "id": 4,
      "interval": null,
      "legend": {
        "percentage": true,
        "show": true,
        "values": true
      },
      "legendType": "Right side",
      "links": [],
      "maxDataPoints": 3,
      "nullPointMode": "connected",
      "options": {},
      "pieType": "pie",
      "strokeWidth": 1,
      "targets": [
        {
          "database": "hepic_data",
          "dateColDataType": "",
          "dateLoading": false,
          "dateTimeColDataType": "record_datetime",
          "dateTimeType": "DATETIME",
          "datetimeLoading": false,
          "format": "time_series",
          "formattedQuery": "SELECT $timeSeries as t, count() FROM $table WHERE $timeFilter GROUP BY t ORDER BY t",
          "intervalFactor": 1,
          "query": "SELECT\n    1 AS t, \n    from_user,\n    count(*) AS Reqs\nFROM $table  WHERE status == 10 AND $timeFilter\nGROUP BY t, from_user\nORDER BY Reqs DESC\nLIMIT 5",
          "rawQuery": "SELECT     1 AS t,      from_user,     count(*) AS Reqs FROM hepic_data.sip_transaction_call  WHERE status == 10 AND record_datetime BETWEEN toDateTime(1595887199) AND toDateTime(1595973600) GROUP BY t, from_user ORDER BY Reqs DESC LIMIT 5",
          "refId": "A",
          "round": "0s",
          "table": "sip_transaction_call",
          "tableLoading": false
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Top Callers",
      "type": "grafana-piechart-panel",
      "valueName": "current"
    },
    {
      "aliasColors": {},
      "breakPoint": "50%",
      "cacheTimeout": null,
      "combine": {
        "label": "Others",
        "threshold": 0
      },
      "datasource": "${DS_CLICKHOUSE}",
      "fontSize": "80%",
      "format": "short",
      "gridPos": {
        "h": 7,
        "w": 7,
        "x": 7,
        "y": 1
      },
      "id": 5,
      "interval": null,
      "legend": {
        "percentage": true,
        "show": true,
        "values": true
      },
      "legendType": "Right side",
      "links": [],
      "maxDataPoints": 3,
      "nullPointMode": "connected",
      "options": {},
      "pieType": "pie",
      "strokeWidth": 1,
      "targets": [
        {
          "database": "hepic_data",
          "dateColDataType": "",
          "dateLoading": false,
          "dateTimeColDataType": "record_datetime",
          "dateTimeType": "DATETIME",
          "datetimeLoading": false,
          "format": "time_series",
          "formattedQuery": "SELECT $timeSeries as t, count() FROM $table WHERE $timeFilter GROUP BY t ORDER BY t",
          "intervalFactor": 1,
          "query": "SELECT\n    1 AS t, \n    ruri_user,\n    count(*) AS Reqs\nFROM $table  WHERE status == 10 AND $timeFilter\nGROUP BY t, ruri_user\nORDER BY Reqs DESC\nLIMIT 5",
          "rawQuery": "SELECT     1 AS t,      ruri_user,     count(*) AS Reqs FROM hepic_data.sip_transaction_call  WHERE status == 10 AND record_datetime BETWEEN toDateTime(1595887199) AND toDateTime(1595973600) GROUP BY t, ruri_user ORDER BY Reqs DESC LIMIT 5",
          "refId": "A",
          "round": "0s",
          "table": "sip_transaction_call",
          "tableLoading": false
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Top Callees",
      "type": "grafana-piechart-panel",
      "valueName": "current"
    },
    {
      "aliasColors": {},
      "breakPoint": "50%",
      "cacheTimeout": null,
      "combine": {
        "label": "Others",
        "threshold": 0
      },
      "datasource": "${DS_CLICKHOUSE}",
      "fontSize": "80%",
      "format": "short",
      "gridPos": {
        "h": 7,
        "w": 5,
        "x": 14,
        "y": 1
      },
      "id": 10,
      "interval": null,
      "legend": {
        "percentage": true,
        "show": true,
        "values": true
      },
      "legendType": "Right side",
      "links": [],
      "maxDataPoints": 3,
      "nullPointMode": "connected",
      "options": {},
      "pieType": "pie",
      "strokeWidth": 1,
      "targets": [
        {
          "database": "hepic_data",
          "dateColDataType": "",
          "dateLoading": false,
          "dateTimeColDataType": "record_datetime",
          "dateTimeType": "DATETIME",
          "datetimeLoading": false,
          "format": "time_series",
          "formattedQuery": "SELECT $timeSeries as t, count() FROM $table WHERE $timeFilter GROUP BY t ORDER BY t",
          "intervalFactor": 1,
          "query": "SELECT\n    1 AS t, \n    ipgroup_in,\n    count(*) AS untagged\nFROM $table  WHERE status == 10 AND $timeFilter\nGROUP BY t, ipgroup_in\nORDER BY untagged DESC\nLIMIT 5",
          "rawQuery": "SELECT     1 AS t,      ipgroup_in,     count(*) AS untagged FROM hepic_data.sip_transaction_call  WHERE status == 10 AND record_datetime BETWEEN toDateTime(1595887199) AND toDateTime(1595973600) GROUP BY t, ipgroup_in ORDER BY untagged DESC LIMIT 5",
          "refId": "A",
          "round": "0s",
          "table": "sip_transaction_call",
          "tableLoading": false
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Top Peer IN",
      "type": "grafana-piechart-panel",
      "valueName": "current"
    },
    {
      "aliasColors": {},
      "breakPoint": "50%",
      "cacheTimeout": null,
      "combine": {
        "label": "Others",
        "threshold": 0
      },
      "datasource": "${DS_CLICKHOUSE}",
      "fontSize": "80%",
      "format": "short",
      "gridPos": {
        "h": 7,
        "w": 5,
        "x": 19,
        "y": 1
      },
      "id": 11,
      "interval": null,
      "legend": {
        "percentage": true,
        "show": true,
        "values": true
      },
      "legendType": "Right side",
      "links": [],
      "maxDataPoints": 3,
      "nullPointMode": "connected",
      "options": {},
      "pieType": "pie",
      "strokeWidth": 1,
      "targets": [
        {
          "database": "hepic_data",
          "dateColDataType": "",
          "dateLoading": false,
          "dateTimeColDataType": "record_datetime",
          "dateTimeType": "DATETIME",
          "datetimeLoading": false,
          "format": "time_series",
          "formattedQuery": "SELECT $timeSeries as t, count() FROM $table WHERE $timeFilter GROUP BY t ORDER BY t",
          "intervalFactor": 1,
          "query": "SELECT\n    1 AS t, \n    ipgroup_out,\n    count(*) AS untagged\nFROM $table  WHERE status == 10 AND $timeFilter\nGROUP BY t, ipgroup_out\nORDER BY untagged DESC\nLIMIT 5",
          "rawQuery": "SELECT     1 AS t,      ipgroup_out,     count(*) AS untagged FROM hepic_data.sip_transaction_call  WHERE status == 10 AND record_datetime BETWEEN toDateTime(1595887199) AND toDateTime(1595973600) GROUP BY t, ipgroup_out ORDER BY untagged DESC LIMIT 5",
          "refId": "A",
          "round": "0s",
          "table": "sip_transaction_call",
          "tableLoading": false
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Top Peer OUT",
      "type": "grafana-piechart-panel",
      "valueName": "current"
    },
    {
      "aliasColors": {},
      "breakPoint": "50%",
      "cacheTimeout": null,
      "combine": {
        "label": "Others",
        "threshold": 0
      },
      "datasource": "${DS_CLICKHOUSE}",
      "decimals": null,
      "fontSize": "80%",
      "format": "short",
      "gridPos": {
        "h": 7,
        "w": 7,
        "x": 0,
        "y": 8
      },
      "id": 6,
      "interval": null,
      "legend": {
        "header": "minutes",
        "percentage": true,
        "show": true,
        "values": true
      },
      "legendType": "Right side",
      "links": [],
      "maxDataPoints": 3,
      "nullPointMode": "connected",
      "options": {},
      "pieType": "pie",
      "strokeWidth": 1,
      "targets": [
        {
          "database": "hepic_data",
          "dateColDataType": "",
          "dateLoading": false,
          "dateTimeColDataType": "record_datetime",
          "dateTimeType": "DATETIME",
          "datetimeLoading": false,
          "format": "time_series",
          "formattedQuery": "SELECT $timeSeries as t, count() FROM $table WHERE $timeFilter GROUP BY t ORDER BY t",
          "intervalFactor": 1,
          "query": "SELECT\n    1 AS t, \n    from_user,\n    sum(duration)/60 AS Reqs\nFROM $table  WHERE status == 10 AND $timeFilter\nGROUP BY t, from_user\nORDER BY Reqs DESC\nLIMIT 5",
          "rawQuery": "SELECT     1 AS t,      from_user,     sum(duration)/60 AS Reqs FROM hepic_data.sip_transaction_call  WHERE status == 10 AND record_datetime BETWEEN toDateTime(1595887199) AND toDateTime(1595973600) GROUP BY t, from_user ORDER BY Reqs DESC LIMIT 5",
          "refId": "A",
          "round": "0s",
          "table": "sip_transaction_call",
          "tableLoading": false
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Top Callers by Minutes",
      "type": "grafana-piechart-panel",
      "valueName": "current"
    },
    {
      "aliasColors": {},
      "breakPoint": "50%",
      "cacheTimeout": null,
      "combine": {
        "label": "Others",
        "threshold": 0
      },
      "datasource": "${DS_CLICKHOUSE}",
      "decimals": null,
      "fontSize": "80%",
      "format": "short",
      "gridPos": {
        "h": 7,
        "w": 7,
        "x": 7,
        "y": 8
      },
      "id": 9,
      "interval": null,
      "legend": {
        "header": "minutes",
        "percentage": true,
        "show": true,
        "values": true
      },
      "legendType": "Right side",
      "links": [],
      "maxDataPoints": 3,
      "nullPointMode": "connected",
      "options": {},
      "pieType": "pie",
      "strokeWidth": 1,
      "targets": [
        {
          "database": "hepic_data",
          "dateColDataType": "",
          "dateLoading": false,
          "dateTimeColDataType": "record_datetime",
          "dateTimeType": "DATETIME",
          "datetimeLoading": false,
          "format": "time_series",
          "formattedQuery": "SELECT $timeSeries as t, count() FROM $table WHERE $timeFilter GROUP BY t ORDER BY t",
          "intervalFactor": 1,
          "query": "SELECT\n    1 AS t, \n    from_user,\n    sum(duration)/60 AS Reqs\nFROM $table  WHERE status == 10 AND $timeFilter\nGROUP BY t, from_user\nORDER BY Reqs DESC\nLIMIT 5",
          "rawQuery": "SELECT     1 AS t,      from_user,     sum(duration)/60 AS Reqs FROM hepic_data.sip_transaction_call  WHERE status == 10 AND record_datetime BETWEEN toDateTime(1595887199) AND toDateTime(1595973600) GROUP BY t, from_user ORDER BY Reqs DESC LIMIT 5",
          "refId": "A",
          "round": "0s",
          "table": "sip_transaction_call",
          "tableLoading": false
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Top Callers by Minutes",
      "type": "grafana-piechart-panel",
      "valueName": "current"
    },
    {
      "aliasColors": {},
      "breakPoint": "50%",
      "cacheTimeout": null,
      "combine": {
        "label": "Others",
        "threshold": 0
      },
      "datasource": "${DS_CLICKHOUSE}",
      "decimals": null,
      "fontSize": "80%",
      "format": "short",
      "gridPos": {
        "h": 7,
        "w": 5,
        "x": 14,
        "y": 8
      },
      "id": 12,
      "interval": null,
      "legend": {
        "header": "minutes",
        "percentage": true,
        "show": true,
        "values": true
      },
      "legendType": "Right side",
      "links": [],
      "maxDataPoints": 3,
      "nullPointMode": "connected",
      "options": {},
      "pieType": "pie",
      "strokeWidth": 1,
      "targets": [
        {
          "database": "hepic_data",
          "dateColDataType": "",
          "dateLoading": false,
          "dateTimeColDataType": "record_datetime",
          "dateTimeType": "DATETIME",
          "datetimeLoading": false,
          "format": "time_series",
          "formattedQuery": "SELECT $timeSeries as t, count() FROM $table WHERE $timeFilter GROUP BY t ORDER BY t",
          "intervalFactor": 1,
          "query": "SELECT\n    1 AS t, \n    ipgroup_in,\n    sum(duration)/60 AS untagged\nFROM $table  WHERE status == 10 AND $timeFilter\nGROUP BY t, ipgroup_in\nORDER BY untagged DESC\nLIMIT 5",
          "rawQuery": "SELECT     1 AS t,      ipgroup_in,     sum(duration)/60 AS untagged FROM hepic_data.sip_transaction_call  WHERE status == 10 AND record_datetime BETWEEN toDateTime(1595887199) AND toDateTime(1595973600) GROUP BY t, ipgroup_in ORDER BY untagged DESC LIMIT 5",
          "refId": "A",
          "round": "0s",
          "table": "sip_transaction_call",
          "tableLoading": false
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Top Peer IN by Minutes",
      "type": "grafana-piechart-panel",
      "valueName": "current"
    },
    {
      "aliasColors": {},
      "breakPoint": "50%",
      "cacheTimeout": null,
      "combine": {
        "label": "Others",
        "threshold": 0
      },
      "datasource": "${DS_CLICKHOUSE}",
      "decimals": null,
      "fontSize": "80%",
      "format": "short",
      "gridPos": {
        "h": 7,
        "w": 5,
        "x": 19,
        "y": 8
      },
      "id": 14,
      "interval": null,
      "legend": {
        "header": "minutes",
        "percentage": true,
        "show": true,
        "values": true
      },
      "legendType": "Right side",
      "links": [],
      "maxDataPoints": 3,
      "nullPointMode": "connected",
      "options": {},
      "pieType": "pie",
      "strokeWidth": 1,
      "targets": [
        {
          "database": "hepic_data",
          "dateColDataType": "",
          "dateLoading": false,
          "dateTimeColDataType": "record_datetime",
          "dateTimeType": "DATETIME",
          "datetimeLoading": false,
          "format": "time_series",
          "formattedQuery": "SELECT $timeSeries as t, count() FROM $table WHERE $timeFilter GROUP BY t ORDER BY t",
          "intervalFactor": 1,
          "query": "SELECT\n    1 AS t, \n    ipgroup_in,\n    sum(duration)/60 AS untagged\nFROM $table  WHERE status == 10 AND $timeFilter\nGROUP BY t, ipgroup_in\nORDER BY untagged DESC\nLIMIT 5",
          "rawQuery": "SELECT     1 AS t,      ipgroup_in,     sum(duration)/60 AS untagged FROM hepic_data.sip_transaction_call  WHERE status == 10 AND record_datetime BETWEEN toDateTime(1595887199) AND toDateTime(1595973600) GROUP BY t, ipgroup_in ORDER BY untagged DESC LIMIT 5",
          "refId": "A",
          "round": "0s",
          "table": "sip_transaction_call",
          "tableLoading": false
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Top Peer IN by Minutes",
      "type": "grafana-piechart-panel",
      "valueName": "current"
    },
    {
      "aliasColors": {},
      "breakPoint": "50%",
      "cacheTimeout": null,
      "combine": {
        "label": "Others",
        "threshold": 0
      },
      "datasource": "${DS_CLICKHOUSE}",
      "decimals": null,
      "fontSize": "80%",
      "format": "short",
      "gridPos": {
        "h": 7,
        "w": 7,
        "x": 0,
        "y": 15
      },
      "id": 7,
      "interval": null,
      "legend": {
        "header": "minutes",
        "percentage": true,
        "show": true,
        "values": true
      },
      "legendType": "Right side",
      "links": [],
      "maxDataPoints": 3,
      "nullPointMode": "connected",
      "options": {},
      "pieType": "pie",
      "strokeWidth": 1,
      "targets": [
        {
          "database": "hepic_data",
          "dateColDataType": "",
          "dateLoading": false,
          "dateTimeColDataType": "record_datetime",
          "dateTimeType": "DATETIME",
          "datetimeLoading": false,
          "format": "time_series",
          "formattedQuery": "SELECT $timeSeries as t, count() FROM $table WHERE $timeFilter GROUP BY t ORDER BY t",
          "intervalFactor": 1,
          "query": "SELECT\n    1 AS t, \n    ruri_user,\n    sum(duration)/60/count(*) AS Reqs\nFROM $table  WHERE status == 10 AND $timeFilter\nGROUP BY t, ruri_user\nORDER BY Reqs DESC\nLIMIT 5",
          "rawQuery": "SELECT     1 AS t,      ruri_user,     sum(duration)/60/count(*) AS Reqs FROM hepic_data.sip_transaction_call  WHERE status == 10 AND record_datetime BETWEEN toDateTime(1595887199) AND toDateTime(1595973600) GROUP BY t, ruri_user ORDER BY Reqs DESC LIMIT 5",
          "refId": "A",
          "round": "0s",
          "table": "sip_transaction_call",
          "tableLoading": false
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Top Callees by Avg Duration",
      "type": "grafana-piechart-panel",
      "valueName": "current"
    },
    {
      "aliasColors": {},
      "breakPoint": "50%",
      "cacheTimeout": null,
      "combine": {
        "label": "Others",
        "threshold": 0
      },
      "datasource": "${DS_CLICKHOUSE}",
      "decimals": null,
      "fontSize": "80%",
      "format": "short",
      "gridPos": {
        "h": 7,
        "w": 7,
        "x": 7,
        "y": 15
      },
      "id": 8,
      "interval": null,
      "legend": {
        "header": "minutes",
        "percentage": true,
        "show": true,
        "values": true
      },
      "legendType": "Right side",
      "links": [],
      "maxDataPoints": 3,
      "nullPointMode": "connected",
      "options": {},
      "pieType": "pie",
      "strokeWidth": 1,
      "targets": [
        {
          "database": "hepic_data",
          "dateColDataType": "",
          "dateLoading": false,
          "dateTimeColDataType": "record_datetime",
          "dateTimeType": "DATETIME",
          "datetimeLoading": false,
          "format": "time_series",
          "formattedQuery": "SELECT $timeSeries as t, count() FROM $table WHERE $timeFilter GROUP BY t ORDER BY t",
          "intervalFactor": 1,
          "query": "SELECT\n    1 AS t, \n    ruri_user,\n    sum(duration)/60/count(*) AS Reqs\nFROM $table  WHERE status == 10 AND $timeFilter\nGROUP BY t, ruri_user\nORDER BY Reqs DESC\nLIMIT 5",
          "rawQuery": "SELECT     1 AS t,      ruri_user,     sum(duration)/60/count(*) AS Reqs FROM hepic_data.sip_transaction_call  WHERE status == 10 AND record_datetime BETWEEN toDateTime(1595887199) AND toDateTime(1595973600) GROUP BY t, ruri_user ORDER BY Reqs DESC LIMIT 5",
          "refId": "A",
          "round": "0s",
          "table": "sip_transaction_call",
          "tableLoading": false
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Top Callees by Avg Duration",
      "type": "grafana-piechart-panel",
      "valueName": "current"
    },
    {
      "aliasColors": {},
      "breakPoint": "50%",
      "cacheTimeout": null,
      "combine": {
        "label": "Others",
        "threshold": 0
      },
      "datasource": "${DS_CLICKHOUSE}",
      "decimals": null,
      "fontSize": "80%",
      "format": "short",
      "gridPos": {
        "h": 7,
        "w": 5,
        "x": 14,
        "y": 15
      },
      "id": 15,
      "interval": null,
      "legend": {
        "header": "minutes",
        "percentage": true,
        "show": true,
        "values": true
      },
      "legendType": "Right side",
      "links": [],
      "maxDataPoints": 3,
      "nullPointMode": "connected",
      "options": {},
      "pieType": "pie",
      "strokeWidth": 1,
      "targets": [
        {
          "database": "hepic_data",
          "dateColDataType": "",
          "dateLoading": false,
          "dateTimeColDataType": "record_datetime",
          "dateTimeType": "DATETIME",
          "datetimeLoading": false,
          "format": "time_series",
          "formattedQuery": "SELECT $timeSeries as t, count() FROM $table WHERE $timeFilter GROUP BY t ORDER BY t",
          "intervalFactor": 1,
          "query": "SELECT\n    1 AS t, \n    geo_cc,\n    sum(duration)/60 AS untagged\nFROM $table  WHERE status == 10 AND $timeFilter\nGROUP BY t, geo_cc\nORDER BY untagged DESC\nLIMIT 5",
          "rawQuery": "SELECT     1 AS t,      geo_cc,     sum(duration)/60 AS untagged FROM hepic_data.sip_transaction_call  WHERE status == 10 AND record_datetime BETWEEN toDateTime(1595887199) AND toDateTime(1595973600) GROUP BY t, geo_cc ORDER BY untagged DESC LIMIT 5",
          "refId": "A",
          "round": "0s",
          "table": "sip_transaction_call",
          "tableLoading": false
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Top Peer IN by Country",
      "type": "grafana-piechart-panel",
      "valueName": "current"
    },
    {
      "aliasColors": {},
      "breakPoint": "50%",
      "cacheTimeout": null,
      "combine": {
        "label": "Others",
        "threshold": 0
      },
      "datasource": "${DS_CLICKHOUSE}",
      "decimals": null,
      "fontSize": "80%",
      "format": "short",
      "gridPos": {
        "h": 7,
        "w": 5,
        "x": 19,
        "y": 15
      },
      "id": 13,
      "interval": null,
      "legend": {
        "header": "minutes",
        "percentage": true,
        "show": true,
        "values": true
      },
      "legendType": "Right side",
      "links": [],
      "maxDataPoints": 3,
      "nullPointMode": "connected",
      "options": {},
      "pieType": "pie",
      "strokeWidth": 1,
      "targets": [
        {
          "database": "hepic_data",
          "dateColDataType": "",
          "dateLoading": false,
          "dateTimeColDataType": "record_datetime",
          "dateTimeType": "DATETIME",
          "datetimeLoading": false,
          "format": "time_series",
          "formattedQuery": "SELECT $timeSeries as t, count() FROM $table WHERE $timeFilter GROUP BY t ORDER BY t",
          "intervalFactor": 1,
          "query": "SELECT\n    1 AS t, \n    dest_cc,\n    sum(duration)/60 AS untagged\nFROM $table  WHERE status == 10 AND $timeFilter\nGROUP BY t, dest_cc\nORDER BY untagged DESC\nLIMIT 5",
          "rawQuery": "SELECT     1 AS t,      dest_cc,     sum(duration)/60 AS untagged FROM hepic_data.sip_transaction_call  WHERE status == 10 AND record_datetime BETWEEN toDateTime(1595887199) AND toDateTime(1595973600) GROUP BY t, dest_cc ORDER BY untagged DESC LIMIT 5",
          "refId": "A",
          "round": "0s",
          "table": "sip_transaction_call",
          "tableLoading": false
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Top Peer OUT by Country",
      "type": "grafana-piechart-panel",
      "valueName": "current"
    }
  ],
  "refresh": false,
  "schemaVersion": 18,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": []
  },
  "time": {
    "from": "now/d",
    "to": "now/d"
  },
  "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": "HEPIC Completed Call Stats",
  "uid": "OboZFF4Gz",
  "version": 13,
  "description": "Provides Pie Factory for Calls and Peer by number, minutes, average"
}