From 7263f6f6122db2ddd9734d357b39dc5417a94c58 Mon Sep 17 00:00:00 2001 From: yduartep Date: Fri, 30 Aug 2024 11:19:52 +0200 Subject: [PATCH] format libsonnet file --- csp-mixin/signals/loadbalancer.libsonnet | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/csp-mixin/signals/loadbalancer.libsonnet b/csp-mixin/signals/loadbalancer.libsonnet index 69cd582f8..076801623 100644 --- a/csp-mixin/signals/loadbalancer.libsonnet +++ b/csp-mixin/signals/loadbalancer.libsonnet @@ -7,7 +7,7 @@ function(this) instanceLabels: this.instanceLabels, aggLevel: 'instance', discoveryMetric: { - stackdriver: 'stackdriver_https_lb_rule_loadbalancing_googleapis_com_https_request_count' + stackdriver: 'stackdriver_https_lb_rule_loadbalancing_googleapis_com_https_request_count', }, signals: { requestsByStatus: { @@ -15,10 +15,10 @@ function(this) description: 'The number of requests per second by status code.', type: 'raw', sources: { - stackdriver: { - expr: 'label_replace(sum by (response_code_class) (rate(stackdriver_https_lb_rule_loadbalancing_googleapis_com_https_request_count{%(queriesSelector)s}[$__rate_interval])),"response_code_class","${1}xx","response_code_class","([0-9])00")', - legendCustomTemplate: '{{response_code_class}}', - }, + stackdriver: { + expr: 'label_replace(sum by (response_code_class) (rate(stackdriver_https_lb_rule_loadbalancing_googleapis_com_https_request_count{%(queriesSelector)s}[$__rate_interval])),"response_code_class","${1}xx","response_code_class","([0-9])00")', + legendCustomTemplate: '{{response_code_class}}', + }, }, }, @@ -28,8 +28,8 @@ function(this) type: 'raw', sources: { stackdriver: { - expr: 'sum by (backend_target_name, client_country) (rate(stackdriver_https_lb_rule_loadbalancing_googleapis_com_https_request_count{%(queriesSelector)s}[$__rate_interval]))', - legendCustomTemplate: '{{client_country}}', + expr: 'sum by (backend_target_name, client_country) (rate(stackdriver_https_lb_rule_loadbalancing_googleapis_com_https_request_count{%(queriesSelector)s}[$__rate_interval]))', + legendCustomTemplate: '{{client_country}}', }, }, },