From 645e51e180a55b53ff1fc4136b1351829a2a4d4f Mon Sep 17 00:00:00 2001 From: Amnon Heiman Date: Tue, 7 Nov 2023 12:21:35 +0200 Subject: [PATCH] scylla-detailed: remove the thrift part Thrift is off by default, keeping it only makes the metrics prons to error with missing metrics. Fixes #2102 --- grafana/scylla-detailed.template.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grafana/scylla-detailed.template.json b/grafana/scylla-detailed.template.json index 2d98ce854..61b743cb0 100644 --- a/grafana/scylla-detailed.template.json +++ b/grafana/scylla-detailed.template.json @@ -29,7 +29,7 @@ "span": 3, "targets": [ { - "expr": "$func(rate(scylla_transport_requests_served{instance=~\"[[node]]\",cluster=~\"$cluster|$^\", dc=~\"$dc\", shard=~\"[[shard]]\"}[1m])) by ([[by]]) + ($func(rate(scylla_thrift_served{instance=~\"[[node]]\",cluster=~\"$cluster|$^\", dc=~\"$dc\", shard=~\"[[shard]]\"}[1m])) by ([[by]]) or max(scylla_transport_requests_served{instance=~\"[[node]]\",cluster=~\"$cluster|$^\", dc=~\"$dc\", shard=~\"[[shard]]\"}) by([[by]])*0)", + "expr": "$func(rate(scylla_transport_requests_served{instance=~\"[[node]]\",cluster=~\"$cluster|$^\", dc=~\"$dc\", shard=~\"[[shard]]\"}[1m])) by ([[by]])", "intervalFactor": 1, "legendFormat": "", "metric": "",