Skip to content

Commit

Permalink
Grafana UI improvements (#83)
Browse files Browse the repository at this point in the history
1. Map FlowEndReason value from int to string
2. Add user-friendly names for columns used in tables
3. Remove mean value in throughput related table
4. Add a threshold for time-series diagram to prevent points from connecting when the gap of time is > 90s
5. Remove limit 50 in time series panel (as it will only show the first 50 data point)

Signed-off-by: Yun-Tang Hsu <hsuy@vmware.com>
  • Loading branch information
yuntanghsu committed Aug 4, 2022
1 parent 4d1969e commit 3e15d4e
Show file tree
Hide file tree
Showing 9 changed files with 2,638 additions and 2,506 deletions.
162 changes: 132 additions & 30 deletions build/charts/theia/provisioning/dashboards/flow_records_dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 1,
"iteration": 1652994218341,
"id": 4,
"iteration": 1659392847247,
"links": [],
"liveNow": false,
"panels": [
Expand Down Expand Up @@ -74,21 +74,21 @@
"pluginVersion": "8.3.3",
"targets": [
{
"refId": "A",
"datasource": {
"uid": "PDEE91DDB90597936",
"type": "grafana-clickhouse-datasource"
"type": "grafana-clickhouse-datasource",
"uid": "PDEE91DDB90597936"
},
"queryType": "sql",
"rawSql": "SELECT count(*) as count\nFROM flows\nWHERE $__timeFilter(flowEndSeconds)",
"format": 2,
"meta": {
"builderOptions": {
"mode": "list",
"fields": [],
"limit": 100
"limit": 100,
"mode": "list"
}
},
"format": 2
"queryType": "sql",
"rawSql": "SELECT count(*) as count\nFROM flows\nWHERE $__timeFilter(flowEndSeconds)",
"refId": "A"
}
],
"title": "Flow Records Count",
Expand Down Expand Up @@ -174,21 +174,21 @@
"pluginVersion": "8.3.3",
"targets": [
{
"refId": "A",
"datasource": {
"uid": "PDEE91DDB90597936",
"type": "grafana-clickhouse-datasource"
"type": "grafana-clickhouse-datasource",
"uid": "PDEE91DDB90597936"
},
"queryType": "sql",
"rawSql": "SELECT count() as count, $__timeInterval(flowEndSeconds) as time\nFROM flows\nWHERE $__timeFilter(flowEndSeconds)\nGROUP BY time\nORDER BY time",
"format": 2,
"meta": {
"builderOptions": {
"mode": "list",
"fields": [],
"limit": 100
"limit": 100,
"mode": "list"
}
},
"format": 2
"queryType": "sql",
"rawSql": "SELECT count() as count, $__timeInterval(flowEndSeconds) as time\nFROM flows\nWHERE $__timeFilter(flowEndSeconds)\nGROUP BY time\nORDER BY time",
"refId": "A"
}
],
"title": "Flow Records Count",
Expand Down Expand Up @@ -560,6 +560,10 @@
{
"id": "custom.width",
"value": 230
},
{
"id": "displayName",
"value": "throughput reported by source"
}
]
},
Expand All @@ -571,7 +575,11 @@
"properties": [
{
"id": "custom.width",
"value": 251
"value": 260
},
{
"id": "displayName",
"value": "throughput reported by destination"
}
]
},
Expand All @@ -583,7 +591,11 @@
"properties": [
{
"id": "custom.width",
"value": 273
"value": 280
},
{
"id": "displayName",
"value": "reverse throughput reported by source"
}
]
},
Expand All @@ -595,7 +607,11 @@
"properties": [
{
"id": "custom.width",
"value": 299
"value": 310
},
{
"id": "displayName",
"value": "reverse throughput reported by destination"
}
]
},
Expand Down Expand Up @@ -655,7 +671,11 @@
"properties": [
{
"id": "custom.width",
"value": 283
"value": 290
},
{
"id": "displayName",
"value": "end time of flow reported by destination"
}
]
},
Expand All @@ -667,7 +687,11 @@
"properties": [
{
"id": "custom.width",
"value": 255
"value": 260
},
{
"id": "displayName",
"value": "end time of flow reported by source"
}
]
},
Expand Down Expand Up @@ -792,6 +816,10 @@
{
"id": "custom.width",
"value": 185
},
{
"id": "displayName",
"value": "end time of flow"
}
]
},
Expand All @@ -803,7 +831,11 @@
"properties": [
{
"id": "custom.width",
"value": 184
"value": 185
},
{
"id": "displayName",
"value": "start time of flow"
}
]
},
Expand All @@ -815,7 +847,77 @@
"properties": [
{
"id": "custom.width",
"value": 181
"value": 187
},
{
"id": "displayName",
"value": "insert time of flow"
}
]
},
{
"matcher": {
"id": "byName",
"options": "flowEndReason"
},
"properties": [
{
"id": "mappings",
"value": [
{
"options": {
"1": {
"index": 0,
"text": "Idle Timeout"
},
"2": {
"index": 1,
"text": "Active Timeout"
},
"3": {
"index": 2,
"text": "End Of Flow"
}
},
"type": "value"
}
]
},
{
"id": "custom.width",
"value": 142
}
]
},
{
"matcher": {
"id": "byName",
"options": "octetDeltaCount"
},
"properties": [
{
"id": "displayName",
"value": "delta bytes from the last record"
},
{
"id": "custom.width",
"value": 235
}
]
},
{
"matcher": {
"id": "byName",
"options": "packetDeltaCount"
},
"properties": [
{
"id": "custom.width",
"value": 250
},
{
"id": "displayName",
"value": "delta packets from the last record"
}
]
}
Expand All @@ -842,14 +944,14 @@
"pluginVersion": "8.3.3",
"targets": [
{
"refId": "A",
"datasource": {
"uid": "PDEE91DDB90597936",
"type": "grafana-clickhouse-datasource"
"type": "grafana-clickhouse-datasource",
"uid": "PDEE91DDB90597936"
},
"format": 1,
"queryType": "sql",
"rawSql": "SELECT * \nFROM flows\nWHERE $__timeFilter(flowEndSeconds)\nORDER BY flowEndSeconds DESC\nLIMIT 10000",
"format": 1
"refId": "A"
}
],
"title": "Flow Records Table",
Expand Down Expand Up @@ -899,4 +1001,4 @@
"uid": "t1UGX7t7k",
"version": 2,
"weekStart": ""
}
}
Loading

0 comments on commit 3e15d4e

Please sign in to comment.