Filippo Giunchedi has submitted this change and it was merged.

Change subject: prometheus: pre aggregate CPU utilization across instances
......................................................................


prometheus: pre aggregate CPU utilization across instances

Used to speed up dashboards by recording utilization across all CPUs, which can
be plenty e.g. in DB boxes.

Change-Id: I2b57b31ddac43bcbd8486721bb9d11c8e41f5f43
---
M modules/role/files/prometheus/rules_ops.conf
1 file changed, 1 insertion(+), 0 deletions(-)

Approvals:
  Filippo Giunchedi: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/modules/role/files/prometheus/rules_ops.conf 
b/modules/role/files/prometheus/rules_ops.conf
index 2f81ef3..2592dd9 100644
--- a/modules/role/files/prometheus/rules_ops.conf
+++ b/modules/role/files/prometheus/rules_ops.conf
@@ -6,6 +6,7 @@
 cluster_device:network_receive_bytes:rate5m = 
sum(rate(node_network_receive_bytes{job="node"}[5m])) by (cluster,device)
 
 cluster_mode:cpu:rate5m = sum(rate(node_cpu{job="node"}[5m])) by (cluster, 
mode)
+instance_mode_cluster:cpu:rate5m = sum(rate(node_cpu{job="node"}[5m])) by 
(instance, mode, cluster)
 
 cluster:memory_MemTotal:sum = sum(node_memory_MemTotal{job="node"}) by 
(cluster)
 cluster:memory_MemCached:sum = sum(node_memory_MemCached{job="node"}) by 
(cluster)

-- 
To view, visit https://gerrit.wikimedia.org/r/312222
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I2b57b31ddac43bcbd8486721bb9d11c8e41f5f43
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Filippo Giunchedi <fgiunch...@wikimedia.org>
Gerrit-Reviewer: Filippo Giunchedi <fgiunch...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to