Skip to content

Commit

Permalink
AP-4586: Update Prometheus
Browse files Browse the repository at this point in the history
Add bind to 0.0.0.0 to the startup command
Since v0.5.0 it only accepts localhost without this

Update prometheus_exporter by removing restriction
  • Loading branch information
colinbruce committed Oct 27, 2023
1 parent 690c269 commit 3a465df
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ gem "libreconv"
gem "business"

# Monitoring
gem "prometheus_exporter", "=0.4.17"
gem "prometheus_exporter"
gem "webrick"

# Generating Fake applications for tests and admin user
Expand Down
5 changes: 3 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,8 @@ GEM
optimist (~> 3.0)
pg (1.5.4)
pg_dump_anonymize (0.1.2)
prometheus_exporter (0.4.17)
prometheus_exporter (2.0.8)
webrick
propshaft (0.8.0)
actionpack (>= 7.0.0)
activesupport (>= 7.0.0)
Expand Down Expand Up @@ -776,7 +777,7 @@ DEPENDENCIES
pagy
pg
pg_dump_anonymize
prometheus_exporter (= 0.4.17)
prometheus_exporter
propshaft
pry-byebug
pry-rescue
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spec:
- name: metrics
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: IfNotPresent
command: ['sh', '-c', 'bundle exec prometheus_exporter -a app/lib/prometheus_collectors/collectors.rb']
command: ['sh', '-c', 'bundle exec prometheus_exporter -b 0.0.0.0 -a app/lib/prometheus_collectors/collectors.rb']
ports:
- containerPort: 9394
livenessProbe:
Expand Down

0 comments on commit 3a465df

Please sign in to comment.