Skip to content

Commit f3ad24b

Browse files
authored
time-series: Changed to headless mqtt service for helm deployment (#897)
This PR converts the MQTT broker service from a NodePort to a headless service to enable direct pod communication, reducing time series processing latency. Additionally, the Grafana dashboard is updated to display processing times in seconds instead of milliseconds. Signed-off-by: Pooja Kumbharkar <[email protected]>
1 parent 41aba4a commit f3ad24b

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

manufacturing-ai-suite/industrial-edge-insights-time-series/apps/weld-anomaly-detection/grafana-dashboard.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -671,13 +671,13 @@
671671
"type": "influxdb",
672672
"uid": "P951FEA4DE68E13C5"
673673
},
674-
"query": "SELECT mean(mean_value) FROM (SELECT mean(end_end_time)/1000000 AS mean_value FROM \"weld-sensor-anomaly-data\" WHERE time > now() - 3m GROUP BY time(1m))\n",
674+
"query": "SELECT mean(mean_value) FROM (SELECT mean(end_end_time)/1000000000 AS mean_value FROM \"weld-sensor-anomaly-data\" WHERE time > now() - 3m GROUP BY time(1m))\n",
675675
"rawQuery": true,
676676
"refId": "A",
677677
"resultFormat": "time_series"
678678
}
679679
],
680-
"title": "Average Time to Process a point E2E (ms)",
680+
"title": "Average Time to Process a point E2E (seconds)",
681681
"type": "stat"
682682
},
683683
{
@@ -733,13 +733,13 @@
733733
"pluginVersion": "12.0.0",
734734
"targets": [
735735
{
736-
"query": " select mean(processing_time)/1000000 from \"weld-sensor-anomaly-data\" order by time desc",
736+
"query": " select mean(processing_time)/1000000000 from \"weld-sensor-anomaly-data\" order by time desc",
737737
"rawQuery": true,
738738
"refId": "A",
739739
"resultFormat": "time_series"
740740
}
741741
],
742-
"title": "Analytics Processing Time (ms)",
742+
"title": "Analytics Processing Time (seconds)",
743743
"type": "stat"
744744
}
745745
],
55.4 KB
Loading

manufacturing-ai-suite/industrial-edge-insights-time-series/helm/templates/broker.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,15 @@ metadata:
1010
name: {{ .Values.config.mqttbroker.name }}
1111
namespace: {{ .Values.namespace }}
1212
spec:
13-
type: NodePort
13+
clusterIP: None
1414
selector:
1515
app: ia-mqtt-broker
1616
ports:
1717
- name: broker-port
1818
port: {{ .Values.config.mqttbroker.mqttbroker_port }}
19+
targetPort: {{ .Values.config.mqttbroker.mqttbroker_port }}
20+
protocol: TCP
21+
publishNotReadyAddresses: false
1922
---
2023
apiVersion: apps/v1
2124
kind: Deployment

0 commit comments

Comments
 (0)