From f9b1bf06ba97a7be19a07b7771fa22a5e063dec4 Mon Sep 17 00:00:00 2001 From: Michele Cereda Date: Tue, 20 May 2025 22:46:38 +0200 Subject: [PATCH] fix(kb/prometheus): really minor rephrase for readability --- knowledge base/prometheus/README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/knowledge base/prometheus/README.md b/knowledge base/prometheus/README.md index 397599c..cf4d7d5 100644 --- a/knowledge base/prometheus/README.md +++ b/knowledge base/prometheus/README.md @@ -207,7 +207,7 @@ Prometheus can reload the configuration file with**out** restarting its process ``` - Sending a `POST` HTTP request to the `/-/reload` endpoint.
- Requires the process to start with the `--web.enable-lifecycle` flag enabled. + This is **only** possible if the process started with the `--web.enable-lifecycle` flag enabled. If the new configuration is **not** well-formed, changes will **not** be applied.
This will also reload any configured rule files. @@ -271,6 +271,8 @@ When using time ranges, the returned vector will be a _range vector_.
Example +Functions are case **in**sensitive. + ```promql 100 * (1 - avg by(instance)(irate(node_cpu_seconds_total{job='node_exporter',mode='idle'}[5m]))) ``` @@ -297,7 +299,7 @@ To make it all a percentage, the computed value is multiplied by 100. ```promql # Get all allocatable CPU cores where the 'node' attribute matches regex ".*-runners-.*" grouped by node -sum(kube_node_status_allocatable_cpu_cores{node=~".*-runners-.*"}) BY (node) +SUM(kube_node_status_allocatable_cpu_cores{node=~".*-runners-.*"}) BY (node) # FIXME sum(rate(container_cpu_usage_seconds_total{namespace="gitlab-runners",container="build",pod_name=~"runner.*"}[30s])) by (pod_name,container) /