Filippo Giunchedi has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/393562 )
Change subject: role: alert on statsd inbound udp errors
......................................................................
role: alert on statsd inbound udp errors
Bug: T181382
Change-Id: I883509c286aeb0ea7941ce224a807e94df75eb3b
---
M modules/role/manifests/statsd.pp
1 file changed, 10 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet
refs/changes/62/393562/1
diff --git a/modules/role/manifests/statsd.pp b/modules/role/manifests/statsd.pp
index a61afc8..b225078 100644
--- a/modules/role/manifests/statsd.pp
+++ b/modules/role/manifests/statsd.pp
@@ -67,4 +67,14 @@
}
diamond::collector { 'UDPCollector': }
+
+ prometheus_labels = "{instance=~\"${::hostname}.*\"}"
+ monitoring::check_prometheus { 'statsd_udp_inbound_errors':
+ description => 'statsd UDP receive errors are elevated',
+ dashboard_link =>
"https://grafana.wikimedia.org/dashboard/db/graphite-${::site}?orgId=1&refresh=1m&panelId=16&fullscreen",
+ query => "100 *
rate(node_netstat_Udp_InErrors${prometheus_labels}[5m]) /
rate(node_netstat_Udp_InDatagrams${prometheus_labels}[5m])",
+ warning => 0.7,
+ critical => 1,
+ prometheus_url => "http://prometheus.svc.${::site}.wmnet/ops",
+ }
}
--
To view, visit https://gerrit.wikimedia.org/r/393562
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I883509c286aeb0ea7941ce224a807e94df75eb3b
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Filippo Giunchedi <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits