/sf-infra/infra-sf/rules/monitoring.dhall

Copy path to clipboard

Source

let Infra = ../../../Infra/package.dhall

let private-monitoring-rules =
Infra.Rule.map
Infra.Rule.Type
( \(rule : Infra.Rule.Type) ->
rule // { remote_ip_prefix = Some "{{ prometheus_private_ip }}/32" }
)
./prometheus.dhall

let public-monitoring-rules =
Infra.Rule.map
Infra.Rule.Type
( \(rule : Infra.Rule.Type) ->
rule // { remote_ip_prefix = Some "{{ prometheus_public_ip }}/32" }
)
private-monitoring-rules

in private-monitoring-rules # public-monitoring-rules