Skip to content

Commit a10c18b

Browse files
author
Nick Apostolakis
committed
[ITI-1416] modifying the supervisord command
1 parent acf86b6 commit a10c18b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

attributes/default.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
#default['prometheus']['flags']['storage.local.memory-chunks'] = 1048576
139139

140140
# Base path for metrics storage.
141-
default['prometheus']['flags']['storage.local.path'] = '/opt/prometheus/data'
141+
default['prometheus']['flags']['storage.local.path'] = "#{node['prometheus']['dir']}/data"
142142

143143
# If set, a crash recovery will perform checks on each series file. This might take a very long time.
144144
#default['prometheus']['flags']['storage.local.pedantic-checks'] = false
@@ -169,10 +169,10 @@
169169
#default['prometheus']['flags']['storage.remote.timeout'] = '30s'
170170

171171
# Path to the console library directory.
172-
default['prometheus']['flags']['web.console.libraries'] = '/opt/prometheus/console_libraries'
172+
default['prometheus']['flags']['web.console.libraries'] = "#{node['prometheus']['dir']}/console_libraries"
173173

174174
# Path to the console template directory, available at /console.
175-
default['prometheus']['flags']['web.console.templates'] = '/opt/prometheus/consoles'
175+
default['prometheus']['flags']['web.console.templates'] = "#{node['prometheus']['dir']}/consoles"
176176

177177
# Enable remote service shutdown.
178178
#default['prometheus']['flags']['web.enable-remote-shutdown'] = false

recipes/service.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
mode 0644
7676
end
7777

78-
prom_command="/opt/prometheus/prometheus -config.file=/opt/prometheus/prometheus.yml -storage.local.path=#{node['prometheus']['flags']['storage.local.path']}"
78+
prom_command="/opt/prometheus/prometheus -config.file=/opt/prometheus/prometheus.yml -storage.local.path=#{node['prometheus']['flags']['storage.local.path']} -web.console.libraries=#{node['prometheus']['flags']['web.console.libraries']} -web.console.templates=#{node['prometheus']['flags']['web.console.templates']}"
7979
supervisor_service "prometheus" do
8080
action :enable
8181
autostart true

0 commit comments

Comments
 (0)