1 changed files with 458 additions and 0 deletions
@ -0,0 +1,458 @@ |
|||||
|
{ |
||||
|
"annotations": { |
||||
|
"list": [ |
||||
|
{ |
||||
|
"builtIn": 1, |
||||
|
"datasource": { |
||||
|
"type": "datasource", |
||||
|
"uid": "grafana" |
||||
|
}, |
||||
|
"enable": true, |
||||
|
"hide": true, |
||||
|
"iconColor": "rgba(0, 211, 255, 1)", |
||||
|
"name": "Annotations & Alerts", |
||||
|
"type": "dashboard" |
||||
|
} |
||||
|
] |
||||
|
}, |
||||
|
"editable": true, |
||||
|
"fiscalYearStartMonth": 0, |
||||
|
"graphTooltip": 0, |
||||
|
"id": null, |
||||
|
"links": [], |
||||
|
"panels": [ |
||||
|
{ |
||||
|
"datasource": { |
||||
|
"type": "prometheus", |
||||
|
"uid": "prometheus" |
||||
|
}, |
||||
|
"description": "", |
||||
|
"fieldConfig": { |
||||
|
"defaults": { |
||||
|
"color": { |
||||
|
"mode": "palette-classic" |
||||
|
}, |
||||
|
"custom": { |
||||
|
"axisBorderShow": false, |
||||
|
"axisCenteredZero": false, |
||||
|
"axisColorMode": "text", |
||||
|
"axisLabel": "", |
||||
|
"axisPlacement": "auto", |
||||
|
"barAlignment": 0, |
||||
|
"drawStyle": "line", |
||||
|
"fillOpacity": 10, |
||||
|
"gradientMode": "none", |
||||
|
"hideFrom": { |
||||
|
"legend": false, |
||||
|
"tooltip": false, |
||||
|
"viz": false |
||||
|
}, |
||||
|
"insertNulls": false, |
||||
|
"lineInterpolation": "linear", |
||||
|
"lineWidth": 1, |
||||
|
"pointSize": 5, |
||||
|
"scaleDistribution": { |
||||
|
"type": "linear" |
||||
|
}, |
||||
|
"showPoints": "never", |
||||
|
"spanNulls": true, |
||||
|
"stacking": { |
||||
|
"group": "A", |
||||
|
"mode": "none" |
||||
|
}, |
||||
|
"thresholdsStyle": { |
||||
|
"mode": "off" |
||||
|
} |
||||
|
}, |
||||
|
"mappings": [], |
||||
|
"thresholds": { |
||||
|
"mode": "absolute", |
||||
|
"steps": [ |
||||
|
{ |
||||
|
"color": "dark-orange", |
||||
|
"value": null |
||||
|
} |
||||
|
] |
||||
|
}, |
||||
|
"unit": "short" |
||||
|
}, |
||||
|
"overrides": [ |
||||
|
{ |
||||
|
"matcher": { |
||||
|
"id": "byName", |
||||
|
"options": "Total connections" |
||||
|
}, |
||||
|
"properties": [ |
||||
|
{ |
||||
|
"id": "color", |
||||
|
"value": { |
||||
|
"fixedColor": "light-orange", |
||||
|
"mode": "fixed" |
||||
|
} |
||||
|
} |
||||
|
] |
||||
|
} |
||||
|
] |
||||
|
}, |
||||
|
"gridPos": { |
||||
|
"h": 15, |
||||
|
"w": 19, |
||||
|
"x": 0, |
||||
|
"y": 0 |
||||
|
}, |
||||
|
"id": 19, |
||||
|
"options": { |
||||
|
"legend": { |
||||
|
"calcs": [], |
||||
|
"displayMode": "list", |
||||
|
"placement": "bottom", |
||||
|
"showLegend": true |
||||
|
}, |
||||
|
"tooltip": { |
||||
|
"mode": "multi", |
||||
|
"sort": "none" |
||||
|
} |
||||
|
}, |
||||
|
"targets": [ |
||||
|
{ |
||||
|
"datasource": { |
||||
|
"type": "prometheus", |
||||
|
"uid": "prometheus" |
||||
|
}, |
||||
|
"editorMode": "code", |
||||
|
"exemplar": false, |
||||
|
"expr": "sum by (protocol) (thingsboard_transport_connections_active{})", |
||||
|
"format": "time_series", |
||||
|
"instant": false, |
||||
|
"interval": "", |
||||
|
"intervalFactor": 1, |
||||
|
"legendFormat": "{{protocol}}", |
||||
|
"refId": "A" |
||||
|
} |
||||
|
], |
||||
|
"title": "Active Connections by Protocol", |
||||
|
"type": "timeseries" |
||||
|
}, |
||||
|
{ |
||||
|
"datasource": { |
||||
|
"type": "prometheus", |
||||
|
"uid": "prometheus" |
||||
|
}, |
||||
|
"fieldConfig": { |
||||
|
"defaults": { |
||||
|
"color": { |
||||
|
"mode": "thresholds" |
||||
|
}, |
||||
|
"mappings": [], |
||||
|
"thresholds": { |
||||
|
"mode": "absolute", |
||||
|
"steps": [ |
||||
|
{ |
||||
|
"color": "rgba(209, 138, 78, 1)", |
||||
|
"value": null |
||||
|
} |
||||
|
] |
||||
|
} |
||||
|
}, |
||||
|
"overrides": [] |
||||
|
}, |
||||
|
"gridPos": { |
||||
|
"h": 15, |
||||
|
"w": 5, |
||||
|
"x": 19, |
||||
|
"y": 0 |
||||
|
}, |
||||
|
"id": 21, |
||||
|
"options": { |
||||
|
"colorMode": "value", |
||||
|
"graphMode": "none", |
||||
|
"justifyMode": "auto", |
||||
|
"orientation": "auto", |
||||
|
"percentChangeColorMode": "standard", |
||||
|
"reduceOptions": { |
||||
|
"calcs": [ |
||||
|
"lastNotNull" |
||||
|
], |
||||
|
"fields": "", |
||||
|
"values": false |
||||
|
}, |
||||
|
"showPercentChange": false, |
||||
|
"text": {}, |
||||
|
"textMode": "auto", |
||||
|
"wideLayout": true |
||||
|
}, |
||||
|
"targets": [ |
||||
|
{ |
||||
|
"datasource": { |
||||
|
"type": "prometheus", |
||||
|
"uid": "prometheus" |
||||
|
}, |
||||
|
"editorMode": "code", |
||||
|
"exemplar": true, |
||||
|
"expr": "sum (thingsboard_transport_connections_active)", |
||||
|
"instant": true, |
||||
|
"interval": "", |
||||
|
"legendFormat": "", |
||||
|
"refId": "A" |
||||
|
} |
||||
|
], |
||||
|
"title": "Total Connections", |
||||
|
"type": "stat" |
||||
|
}, |
||||
|
{ |
||||
|
"datasource": { |
||||
|
"type": "prometheus", |
||||
|
"uid": "prometheus" |
||||
|
}, |
||||
|
"description": "", |
||||
|
"fieldConfig": { |
||||
|
"defaults": { |
||||
|
"color": { |
||||
|
"mode": "palette-classic" |
||||
|
}, |
||||
|
"custom": { |
||||
|
"axisBorderShow": false, |
||||
|
"axisCenteredZero": false, |
||||
|
"axisColorMode": "text", |
||||
|
"axisLabel": "", |
||||
|
"axisPlacement": "auto", |
||||
|
"barAlignment": 0, |
||||
|
"drawStyle": "line", |
||||
|
"fillOpacity": 10, |
||||
|
"gradientMode": "none", |
||||
|
"hideFrom": { |
||||
|
"legend": false, |
||||
|
"tooltip": false, |
||||
|
"viz": false |
||||
|
}, |
||||
|
"insertNulls": false, |
||||
|
"lineInterpolation": "linear", |
||||
|
"lineWidth": 1, |
||||
|
"pointSize": 5, |
||||
|
"scaleDistribution": { |
||||
|
"type": "linear" |
||||
|
}, |
||||
|
"showPoints": "never", |
||||
|
"spanNulls": true, |
||||
|
"stacking": { |
||||
|
"group": "A", |
||||
|
"mode": "none" |
||||
|
}, |
||||
|
"thresholdsStyle": { |
||||
|
"mode": "off" |
||||
|
} |
||||
|
}, |
||||
|
"mappings": [], |
||||
|
"thresholds": { |
||||
|
"mode": "absolute", |
||||
|
"steps": [ |
||||
|
{ |
||||
|
"color": "green", |
||||
|
"value": null |
||||
|
}, |
||||
|
{ |
||||
|
"color": "red", |
||||
|
"value": 80 |
||||
|
} |
||||
|
] |
||||
|
}, |
||||
|
"unit": "short" |
||||
|
}, |
||||
|
"overrides": [] |
||||
|
}, |
||||
|
"gridPos": { |
||||
|
"h": 15, |
||||
|
"w": 19, |
||||
|
"x": 0, |
||||
|
"y": 15 |
||||
|
}, |
||||
|
"id": 22, |
||||
|
"options": { |
||||
|
"legend": { |
||||
|
"calcs": [], |
||||
|
"displayMode": "list", |
||||
|
"placement": "bottom", |
||||
|
"showLegend": true |
||||
|
}, |
||||
|
"tooltip": { |
||||
|
"mode": "multi", |
||||
|
"sort": "none" |
||||
|
} |
||||
|
}, |
||||
|
"targets": [ |
||||
|
{ |
||||
|
"datasource": { |
||||
|
"type": "prometheus", |
||||
|
"uid": "prometheus" |
||||
|
}, |
||||
|
"editorMode": "code", |
||||
|
"exemplar": true, |
||||
|
"expr": "thingsboard_transport_connections_active", |
||||
|
"format": "time_series", |
||||
|
"interval": "", |
||||
|
"intervalFactor": 1, |
||||
|
"legendFormat": "{{protocol}} {{pod_name}}", |
||||
|
"range": true, |
||||
|
"refId": "A" |
||||
|
} |
||||
|
], |
||||
|
"title": "Active Connections by Pod", |
||||
|
"type": "timeseries" |
||||
|
}, |
||||
|
{ |
||||
|
"datasource": { |
||||
|
"type": "prometheus", |
||||
|
"uid": "prometheus" |
||||
|
}, |
||||
|
"fieldConfig": { |
||||
|
"defaults": { |
||||
|
"color": { |
||||
|
"mode": "thresholds" |
||||
|
}, |
||||
|
"custom": { |
||||
|
"align": "auto", |
||||
|
"cellOptions": { |
||||
|
"type": "auto" |
||||
|
}, |
||||
|
"filterable": false, |
||||
|
"inspect": false |
||||
|
}, |
||||
|
"mappings": [], |
||||
|
"min": 0, |
||||
|
"thresholds": { |
||||
|
"mode": "absolute", |
||||
|
"steps": [ |
||||
|
{ |
||||
|
"color": "rgba(209, 138, 78, 1)", |
||||
|
"value": null |
||||
|
} |
||||
|
] |
||||
|
} |
||||
|
}, |
||||
|
"overrides": [ |
||||
|
{ |
||||
|
"matcher": { |
||||
|
"id": "byName", |
||||
|
"options": "Connections" |
||||
|
}, |
||||
|
"properties": [ |
||||
|
{ |
||||
|
"id": "custom.cellOptions", |
||||
|
"value": { |
||||
|
"mode": "gradient", |
||||
|
"type": "gauge" |
||||
|
} |
||||
|
} |
||||
|
] |
||||
|
} |
||||
|
] |
||||
|
}, |
||||
|
"gridPos": { |
||||
|
"h": 15, |
||||
|
"w": 5, |
||||
|
"x": 19, |
||||
|
"y": 15 |
||||
|
}, |
||||
|
"id": 23, |
||||
|
"options": { |
||||
|
"cellHeight": "sm", |
||||
|
"footer": { |
||||
|
"countRows": false, |
||||
|
"fields": "", |
||||
|
"reducer": [ |
||||
|
"sum" |
||||
|
], |
||||
|
"show": false |
||||
|
}, |
||||
|
"showHeader": true, |
||||
|
"sortBy": [] |
||||
|
}, |
||||
|
"targets": [ |
||||
|
{ |
||||
|
"datasource": { |
||||
|
"type": "prometheus", |
||||
|
"uid": "prometheus" |
||||
|
}, |
||||
|
"editorMode": "code", |
||||
|
"exemplar": true, |
||||
|
"expr": "sum by (pod_name) (thingsboard_transport_connections_active)", |
||||
|
"format": "table", |
||||
|
"instant": true, |
||||
|
"interval": "", |
||||
|
"legendFormat": "__auto", |
||||
|
"queryType": "randomWalk", |
||||
|
"refId": "A" |
||||
|
} |
||||
|
], |
||||
|
"title": "Connection Count by Pod", |
||||
|
"transformations": [ |
||||
|
{ |
||||
|
"id": "organize", |
||||
|
"options": { |
||||
|
"excludeByName": { |
||||
|
"Time": true, |
||||
|
"__name__": true, |
||||
|
"app": true, |
||||
|
"controller_revision_hash": true, |
||||
|
"instance": true, |
||||
|
"job": true, |
||||
|
"kubernetes_name": true, |
||||
|
"kubernetes_namespace": true, |
||||
|
"node_name": true, |
||||
|
"pod_name": false, |
||||
|
"statefulset_kubernetes_io_pod_name": true |
||||
|
}, |
||||
|
"indexByName": {}, |
||||
|
"renameByName": { |
||||
|
"Time": "", |
||||
|
"Value": "Connections", |
||||
|
"pod_name": "Pod" |
||||
|
} |
||||
|
} |
||||
|
}, |
||||
|
{ |
||||
|
"id": "sortBy", |
||||
|
"options": { |
||||
|
"fields": {}, |
||||
|
"sort": [ |
||||
|
{ |
||||
|
"field": "Pod" |
||||
|
} |
||||
|
] |
||||
|
} |
||||
|
} |
||||
|
], |
||||
|
"type": "table" |
||||
|
} |
||||
|
], |
||||
|
"refresh": "30s", |
||||
|
"schemaVersion": 39, |
||||
|
"tags": [ |
||||
|
"thingsboard" |
||||
|
], |
||||
|
"templating": { |
||||
|
"list": [] |
||||
|
}, |
||||
|
"time": { |
||||
|
"from": "now-1h", |
||||
|
"to": "now" |
||||
|
}, |
||||
|
"timepicker": { |
||||
|
"refresh_intervals": [ |
||||
|
"10s", |
||||
|
"30s", |
||||
|
"1m", |
||||
|
"5m", |
||||
|
"15m", |
||||
|
"30m", |
||||
|
"1h", |
||||
|
"2h", |
||||
|
"1d" |
||||
|
] |
||||
|
}, |
||||
|
"timezone": "", |
||||
|
"title": "Transport Connections", |
||||
|
"uid": "lewbrlwjerwkj3", |
||||
|
"version": 1, |
||||
|
"weekStart": "" |
||||
|
} |
||||
Loading…
Reference in new issue