Defined Type: monitoring::alerts::aggregate_ipsec

Defined in:
modules/monitoring/manifests/alerts/aggregate_ipsec.pp

Overview

Parameters:

  • site (Any)


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'modules/monitoring/manifests/alerts/aggregate_ipsec.pp', line 1

define monitoring::alerts::aggregate_ipsec(
  $site
) {

    monitoring::check_prometheus { "aggregate-ipsec-tunnel-status-${site}":
        description     => "Aggregate IPsec Tunnel Status ${site}",
        dashboard_links => ['https://grafana.wikimedia.org/d/B9JpocKZz/ipsec-tunnel-status'],
        # A value of 4+ represents ignored, so exclude this from the query
        query           => 'sum (ipsec_status) by (instance,tunnel,site) < 4',
        warning         => 1,
        critical        => 2,
        method          => 'ge',
        prometheus_url  => "http://prometheus.svc.${site}.wmnet/ops",
        notes_link      => 'https://wikitech.wikimedia.org/wiki/Monitoring/strongswan',
    }

}