Skip to content

Commit

Permalink
Make sure everything listens on the correct ports (localhost for web …
Browse files Browse the repository at this point in the history
…pods because of sidecar, 0.0.0.0 for sidekiq
  • Loading branch information
timetinytim committed Mar 4, 2025
1 parent 529843e commit 487c779
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion templates/deployment-sidekiq.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ spec:
- name: MASTODON_PROMETHEUS_EXPORTER_LOCAL
value: "true"
- name: MASTODON_PROMETHEUS_EXPORTER_HOST
value: {{ $context.Values.mastodon.metrics.prometheus.host }}
value: "0.0.0.0"
- name: MASTODON_PROMETHEUS_EXPORTER_PORT
value: "{{ $context.Values.mastodon.metrics.prometheus.port }}"
{{- if $context.Values.mastodon.metrics.prometheus.sidekiq.detailed }}
Expand Down
2 changes: 1 addition & 1 deletion templates/deployment-web.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ spec:
- name: MASTODON_PROMETHEUS_EXPORTER_ENABLED
value: "true"
- name: PROMETHEUS_EXPORTER_HOST
value: {{ $.Values.mastodon.metrics.prometheus.host }}
value: "127.0.0.1"
- name: PROMETHEUS_EXPORTER_PORT
value: "{{ .Values.mastodon.metrics.prometheus.port }}"
{{- if .Values.mastodon.metrics.prometheus.web.detailed }}
Expand Down
3 changes: 1 addition & 2 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -439,8 +439,7 @@ mastodon:
# https://docs.joinmastodon.org/admin/config/#prometheus
prometheus:
enabled: false
# Host & port for the exporter to listen on
host: localhost
# Port for the exporter to listen on
port: 9394

# Prometheus for web pods
Expand Down

0 comments on commit 487c779

Please sign in to comment.