File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 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
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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments