Skip to content

Commit

Permalink
chore: a little more observability for mosquitto and telegraf
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Görn <[email protected]>
  • Loading branch information
goern committed Sep 16, 2023
1 parent 7f56bd7 commit 71947a3
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ stringData:
DJANGO_SUPERUSER_USERNAME: admin
B4MAD_RACING_MQTT_USER: crewchief
B4MAD_RACING_MQTT_PASSWORD: crewchief
B4MAD_RACING_MQTT_HOST: mosquitto-tcp
B4MAD_RACING_MQTT_HOST: mosquitto-mqtt
B4MAD_RACING_MQTT_PORT: "1883"
B4MAD_RACING_INFLUX_ORG: b4mad
B4MAD_RACING_INFLUX_TOKEN: some-influx-token
Expand Down
6 changes: 3 additions & 3 deletions manifests/base/telegraf/telegraf.conf
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ collect_memstats = true
data_format = "json_v2"
username = "$USERNAME"
password = "$PASSWORD"
servers = ["tcp://mosquitto-tcp:1883"]
servers = ["tcp://mosquitto-mqtt:1883"]
topics = [
"racing/#",
]
Expand Down Expand Up @@ -77,7 +77,7 @@ path = "telemetry"

# CrewChief v1 configuration
[[inputs.mqtt_consumer]]
servers = ["tcp://mosquitto-tcp:1883"]
servers = ["tcp://mosquitto-mqtt:1883"]
topics = [
"crewchief/#"
]
Expand Down Expand Up @@ -112,7 +112,7 @@ tags = ["CurrentLap", "CarClass"]

# CrewChief v2 configuration
[[inputs.mqtt_consumer]]
servers = ["tcp://mosquitto-tcp:1883"]
servers = ["tcp://mosquitto-mqtt:1883"]
topics = [
"crewchief_v2/#"
]
Expand Down
2 changes: 1 addition & 1 deletion manifests/env/nostromo-stage/telegraf/telegraf.conf
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ collect_memstats = true
[[inputs.mqtt_consumer]]
data_format = "json_v2"
password = "$PASSWORD"
servers = ["tcp://mosquitto-tcp:1883"]
servers = ["tcp://mosquitto-mqtt:1883"]
topics = [
"crewchief/#",
]
Expand Down
2 changes: 1 addition & 1 deletion manifests/env/phobos.dev/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ generatorOptions:
patches:
- target:
kind: Service
name: mosquitto-tcp
name: mosquitto-mqtt
patch: |-
- op: replace
path: /spec/ports/0/nodePort
Expand Down
2 changes: 1 addition & 1 deletion manifests/env/phobos/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ generatorOptions:
patches:
- target:
kind: Service
name: mosquitto-tcp
name: mosquitto-mqtt
patch: |-
- op: replace
path: /spec/ports/0/nodePort
Expand Down

0 comments on commit 71947a3

Please sign in to comment.