26 lines
No EOL
672 B
Smarty
26 lines
No EOL
672 B
Smarty
[[probe.service]]
|
|
id = "${service_group_id}"
|
|
label = "${service_group_label}"
|
|
|
|
%{ for service in services ~}
|
|
[[probe.service.node]]
|
|
id = "${service.id}"
|
|
label = "${service.label}"
|
|
mode = "poll"
|
|
reveal_replica_name = true
|
|
%{ if service.http_method != null ~}
|
|
http_method = "${service.http_method}"
|
|
%{ endif ~}
|
|
%{ if service.http_status_healthy_above != null ~}
|
|
poll_http_status_healthy_above = ${service.http_status_healthy_above}
|
|
%{ endif ~}
|
|
%{ if service.http_status_healthy_below != null ~}
|
|
poll_http_status_healthy_below = ${service.http_status_healthy_below}
|
|
%{ endif ~}
|
|
replicas = [
|
|
%{ for endpoint in service.endpoints ~}
|
|
"${endpoint}",
|
|
%{ endfor ~}
|
|
]
|
|
|
|
%{ endfor } |