From 2f46a088de8ea1a5a8994b08a401ca9373e4ab50 Mon Sep 17 00:00:00 2001 From: Pei-Tang Huang Date: Wed, 30 Oct 2019 15:52:52 +0800 Subject: [PATCH] Fix typo and add yaml format. --- docs/collector.net.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/collector.net.md b/docs/collector.net.md index 8aa112ad..e8cdab40 100644 --- a/docs/collector.net.md +++ b/docs/collector.net.md @@ -50,9 +50,9 @@ rate(wmi_net_bytes_total{instance="localhost", nic="Microsoft_Hyper_V_Network_Ad ## Alerting examples **prometheus.rules** -``` +```yaml - alert: NetInterfaceUsage - expr: rate(wmi_net_bytes_total[2m]) * 8 / wmi_net_current_bandwidth * 100 > 90 + expr: rate(wmi_net_bytes_total[2m]) * 8 / wmi_net_current_bandwidth * 100 > 95 for: 10m labels: severity: high