Changeset View
Changeset View
Standalone View
Standalone View
site-modules/profile/manifests/icinga2/objects/static_checks.pp
Show First 20 Lines • Show All 105 Lines • ▼ Show 20 Lines | ::icinga2::object::service {'Postgresql replication lag (belvedere -> somerset)': | ||||
host_name => 'belvedere.internal.softwareheritage.org', | host_name => 'belvedere.internal.softwareheritage.org', | ||||
vars => { | vars => { | ||||
check_prometheus_metric_name => 'pg replication_lag belvedere somerset', | check_prometheus_metric_name => 'pg replication_lag belvedere somerset', | ||||
check_prometheus_metric_warning => '1073741824', # 1GiB 1*1024*1024*1024 | check_prometheus_metric_warning => '1073741824', # 1GiB 1*1024*1024*1024 | ||||
check_prometheus_metric_critical => '2147483648', # 2GiB 2*1024*1024*1024 | check_prometheus_metric_critical => '2147483648', # 2GiB 2*1024*1024*1024 | ||||
}, | }, | ||||
} | } | ||||
::icinga2::object::service {'Software Heritage Staging Graphql Instance': | |||||
import => ['generic-service'], | |||||
host_name => 'graphql.staging.swh.network', | |||||
check_command => 'http', | |||||
target => $checks_file, | |||||
vars => { | |||||
http_vhost => 'graphql.staging.swh.network', | |||||
http_uri => '/', | |||||
http_ssl => true, | |||||
http_sni => true, | |||||
http_string => '<title>GraphQL Playground</title>', | |||||
}, | |||||
} | |||||
} | } |