Defined Type: monitoring::alerts::rsyslog

Defined in:
modules/monitoring/manifests/alerts/rsyslog.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/rsyslog.pp', line 1

define monitoring::alerts::rsyslog(
  $site
) {
    monitoring::check_prometheus { "rsyslog-delivery-fail-${site}":
        description     => "rsyslog in ${site} is failing to deliver messages",
        dashboard_links => ["https://grafana.wikimedia.org/d/000000596/rsyslog?var-datasource=${site} prometheus/ops"],
        query           => 'sum by (action) (rate(rsyslog_action_suspended[5m]) + rate(rsyslog_action_failed[5m]))',
        check_interval  => 2,
        retry_interval  => 2,
        warning         => 5,
        critical        => 10,
        retries         => 5,
        method          => 'ge',
        prometheus_url  => "http://prometheus.svc.${site}.wmnet/ops",
        notes_link      => 'https://wikitech.wikimedia.org/wiki/Rsyslog',
    }
}