From 42a9220a86293c75b38b262fdbafa59fd869a915 Mon Sep 17 00:00:00 2001 From: r2k1 Date: Fri, 25 Aug 2023 11:34:50 +1200 Subject: [PATCH] undo deletion of a sample query --- docs/integrations/prometheus.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/integrations/prometheus.md b/docs/integrations/prometheus.md index 7c4e408..3391d1e 100644 --- a/docs/integrations/prometheus.md +++ b/docs/integrations/prometheus.md @@ -104,7 +104,15 @@ sort_desc( - `sum by (type, namespace)` controls the grouping, available options are `container, namespace, node, pod, type` +__Hourly memory cost for the *default* namespace__ +``` +sum( + avg(container_memory_allocation_bytes{namespace="default"}) by (instance) / 1024 / 1024 / 1024 + * + on(instance) group_left() avg(node_ram_hourly_cost) by (instance) +) +``` __Monthly cost of provisioned nodes__