Add `consul` service config for `exporter_proxy`.
This commit is contained in:
parent
a5595f30f7
commit
78b4c3464f
|
@ -39,6 +39,19 @@ service 'exporter_proxy' do
|
|||
action [:enable, :start]
|
||||
end
|
||||
|
||||
remote_file '/etc/consul.d/service-exporter_proxy.json' do
|
||||
user 'root'
|
||||
group 'root'
|
||||
|
||||
mode '644'
|
||||
|
||||
notifies :restart, 'service[consul]'
|
||||
end
|
||||
|
||||
service 'consul' do
|
||||
action :nothing
|
||||
end
|
||||
|
||||
# Firewall settings here:
|
||||
%w( 60000/tcp ).each do |p|
|
||||
execute "ufw allow #{p}" do
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"service": {
|
||||
"name": "exporter_proxy",
|
||||
"port": 60000,
|
||||
"check":{
|
||||
"http": "http://localhost:60000/",
|
||||
"tls_skip_verify": false,
|
||||
"interval": "60s",
|
||||
"timeout": "1s",
|
||||
"status": "passing",
|
||||
"success_before_passing": 3
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue