"rawSql":"SELECT\r\n $__time(timestamp), kpi_value AS metric, device_name, endpoint_name, kpi_sample_type\r\nFROM\r\n tfs_monitoring\r\nWHERE\r\n $__timeFilter(timestamp) AND device_name IN (${device_name}) AND endpoint_name IN (${endpoint_name}) AND kpi_sample_type IN (${kpi_sample_type})\r\nGROUP BY\r\n device_name, endpoint_name, kpi_sample_type\r\nORDER BY\r\n timestamp",
"rawSql":"SELECT\r\n $__time(timestamp), kpi_value AS metric, device_name, endpoint_name, kpi_sample_type\r\nFROM\r\n tfs_monitoring_kpis\r\nWHERE\r\n $__timeFilter(timestamp) AND device_name IN (${device_name}) AND endpoint_name IN (${endpoint_name}) AND kpi_sample_type IN (${kpi_sample_type})\r\nGROUP BY\r\n device_name, endpoint_name, kpi_sample_type\r\nORDER BY\r\n timestamp",
"refId":"A",
"refId":"A",
"select":[
"select":[
[
[
@@ -181,7 +181,7 @@
}
}
]
]
],
],
"table":"monitoring",
"table":"tfs_monitoring_kpis",
"timeColumn":"timestamp",
"timeColumn":"timestamp",
"where":[
"where":[
{
{
@@ -227,16 +227,16 @@
},
},
"datasource":{
"datasource":{
"type":"postgres",
"type":"postgres",
"uid":"questdb"
"uid":"questdb-mon-kpi"
},
},
"definition":"SELECT DISTINCT device_name FROM tfs_monitoring;",
"definition":"SELECT DISTINCT device_name FROM tfs_monitoring_kpis;",
"hide":0,
"hide":0,
"includeAll":true,
"includeAll":true,
"label":"Device",
"label":"Device",
"multi":true,
"multi":true,
"name":"device_name",
"name":"device_name",
"options":[],
"options":[],
"query":"SELECT DISTINCT device_name FROM tfs_monitoring;",
"query":"SELECT DISTINCT device_name FROM tfs_monitoring_kpis;",
"refresh":2,
"refresh":2,
"regex":"",
"regex":"",
"skipUrlSync":false,
"skipUrlSync":false,
@@ -255,16 +255,16 @@
},
},
"datasource":{
"datasource":{
"type":"postgres",
"type":"postgres",
"uid":"questdb"
"uid":"questdb-mon-kpi"
},
},
"definition":"SELECT DISTINCT endpoint_name FROM tfs_monitoring WHERE device_name IN (${device_name})",
"definition":"SELECT DISTINCT endpoint_name FROM tfs_monitoring_kpis WHERE device_name IN (${device_name})",
"hide":0,
"hide":0,
"includeAll":true,
"includeAll":true,
"label":"EndPoint",
"label":"EndPoint",
"multi":true,
"multi":true,
"name":"endpoint_name",
"name":"endpoint_name",
"options":[],
"options":[],
"query":"SELECT DISTINCT endpoint_name FROM tfs_monitoring WHERE device_name IN (${device_name})",
"query":"SELECT DISTINCT endpoint_name FROM tfs_monitoring_kpis WHERE device_name IN (${device_name})",
"refresh":2,
"refresh":2,
"regex":"",
"regex":"",
"skipUrlSync":false,
"skipUrlSync":false,
@@ -283,16 +283,16 @@
},
},
"datasource":{
"datasource":{
"type":"postgres",
"type":"postgres",
"uid":"questdb"
"uid":"questdb-mon-kpi"
},
},
"definition":"SELECT DISTINCT kpi_sample_type FROM tfs_monitoring;",
"definition":"SELECT DISTINCT kpi_sample_type FROM tfs_monitoring_kpis;",
"hide":0,
"hide":0,
"includeAll":true,
"includeAll":true,
"label":"Kpi Sample Type",
"label":"Kpi Sample Type",
"multi":true,
"multi":true,
"name":"kpi_sample_type",
"name":"kpi_sample_type",
"options":[],
"options":[],
"query":"SELECT DISTINCT kpi_sample_type FROM tfs_monitoring;",
"query":"SELECT DISTINCT kpi_sample_type FROM tfs_monitoring_kpis;",