From c8adf23e4c5b4318ac0a69b6b543323334d7ca93 Mon Sep 17 00:00:00 2001 From: dklimpel <5740567+dklimpel@users.noreply.github.com> Date: Thu, 26 Nov 2020 00:38:34 +0100 Subject: [PATCH 1/2] Update example prometheus console --- changelog.d/8824.doc | 1 + contrib/prometheus/consoles/synapse.html | 91 ++++++++++++------------ 2 files changed, 46 insertions(+), 46 deletions(-) create mode 100644 changelog.d/8824.doc diff --git a/changelog.d/8824.doc b/changelog.d/8824.doc new file mode 100644 index 000000000000..683b436328e4 --- /dev/null +++ b/changelog.d/8824.doc @@ -0,0 +1 @@ +Update example prometheus console. \ No newline at end of file diff --git a/contrib/prometheus/consoles/synapse.html b/contrib/prometheus/consoles/synapse.html index 69aa87f85e5a..6cc95ac256b5 100644 --- a/contrib/prometheus/consoles/synapse.html +++ b/contrib/prometheus/consoles/synapse.html @@ -9,7 +9,7 @@

CPU

new PromConsole.Graph({ node: document.querySelector("#process_resource_utime"), expr: "rate(process_cpu_seconds_total[2m]) * 100", - name: "[[job]]", + name: "[[job]]-[[index]]", min: 0, max: 100, renderer: "line", @@ -22,12 +22,12 @@

CPU

Memory

-
+
@@ -115,7 +115,7 @@

Queries

Transaction execution time

-
+
-

Cache hit ratio

+

Cache request rate

@@ -191,7 +190,7 @@

Cache size

new PromConsole.Graph({ node: document.querySelector("#synapse_cache_size"), expr: "synapse_util_caches_cache:size", - name: "[[name]]", + name: "[[job]]-[[index]] [[name]]", yAxisFormatter: PromConsole.NumberFormatter.humanizeNoSmallPrefix, yHoverFormatter: PromConsole.NumberFormatter.humanizeNoSmallPrefix, yUnits: "", @@ -206,8 +205,8 @@

Requests by Servlet

-

Database scheduling latency

-
+

Average time waiting for database connection

+

Cache request rate

-
+