From 62c2446e3a235d0afb9cb4838c17b6bf0c5eedd9 Mon Sep 17 00:00:00 2001 From: saurabh3460 Date: Thu, 2 May 2024 13:37:53 +0530 Subject: [PATCH 1/4] update query threshold in sli.yaml --- codebundles/rds-mysql-conn-count/runwhen-config/sli.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codebundles/rds-mysql-conn-count/runwhen-config/sli.yaml b/codebundles/rds-mysql-conn-count/runwhen-config/sli.yaml index 0b5a38c..ed78978 100644 --- a/codebundles/rds-mysql-conn-count/runwhen-config/sli.yaml +++ b/codebundles/rds-mysql-conn-count/runwhen-config/sli.yaml @@ -17,7 +17,7 @@ configProvided: http://aeccfb7ff9bfb4705b6218294a7346c3-2081802229.us-west-2.elb.amazonaws.com/prometheus/api/v1 - name: QUERY value: >- - aws_rds_database_connections_average{dimension_DBInstanceIdentifier="robotshopmysql"} > 1 + aws_rds_database_connections_average{dimension_DBInstanceIdentifier="robotshopmysql"} > 30 - name: TRANSFORM value: RAW - name: STEP From b50d5ff2cb990e27e298745ec1602ffe5574985a Mon Sep 17 00:00:00 2001 From: saurabh3460 Date: Thu, 2 May 2024 13:40:20 +0530 Subject: [PATCH 2/4] update threshold and pathToYaml in slo.yaml --- codebundles/rds-mysql-conn-count/runwhen-config/slo.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/codebundles/rds-mysql-conn-count/runwhen-config/slo.yaml b/codebundles/rds-mysql-conn-count/runwhen-config/slo.yaml index 5788362..c60c891 100644 --- a/codebundles/rds-mysql-conn-count/runwhen-config/slo.yaml +++ b/codebundles/rds-mysql-conn-count/runwhen-config/slo.yaml @@ -1,8 +1,8 @@ codeBundle: repoUrl: https://github.com/infracloudio/ifc-rw-codecollection - pathToYaml: codebundles/slo-default/queries.yaml + pathToYaml: codebundles/rds-mysql-conn-count/slo-queries.yaml ref: main sloSpecType: simple-mwmb objective: 95 -threshold: 48 +threshold: 30 operand: lt From 4744f7b327e940f46a213ad3cb4a6d54367c8052 Mon Sep 17 00:00:00 2001 From: saurabh3460 Date: Thu, 2 May 2024 13:41:05 +0530 Subject: [PATCH 3/4] update the errorQuery and totalQuery in slo-queries.yaml --- codebundles/rds-mysql-conn-count/slo-queries.yaml | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 codebundles/rds-mysql-conn-count/slo-queries.yaml diff --git a/codebundles/rds-mysql-conn-count/slo-queries.yaml b/codebundles/rds-mysql-conn-count/slo-queries.yaml new file mode 100644 index 0000000..07e02de --- /dev/null +++ b/codebundles/rds-mysql-conn-count/slo-queries.yaml @@ -0,0 +1,3 @@ +# Please update the RDS_MYSQL_DB_NAME to match your RDS instance name, for which we aim to establish the SLO based on aws_rds_database_connections_average metric +errorQuery: "aws_rds_database_connections_average{dimension_DBInstanceIdentifier="robotshopmysql"} > 30" +totalQuery: "aws_rds_database_connections_average{dimension_DBInstanceIdentifier="robotshopmysql"}" \ No newline at end of file From c7dffbf245d9deaec52edf5db2a4442498d737f1 Mon Sep 17 00:00:00 2001 From: saurabh3460 Date: Thu, 2 May 2024 13:41:25 +0530 Subject: [PATCH 4/4] delete default queries.yaml --- codebundles/slo-default/queries.yaml | 3 --- 1 file changed, 3 deletions(-) delete mode 100644 codebundles/slo-default/queries.yaml diff --git a/codebundles/slo-default/queries.yaml b/codebundles/slo-default/queries.yaml deleted file mode 100644 index 0398441..0000000 --- a/codebundles/slo-default/queries.yaml +++ /dev/null @@ -1,3 +0,0 @@ -# Please update the RDS_MYSQL_DB_NAME to match your RDS instance name, for which we aim to establish the SLO based on aws_rds_database_connections_average metric -errorQuery: "aws_rds_database_connections_average{dimension_DBInstanceIdentifier=""} > 30" -totalQuery: "aws_rds_database_connections_average{dimension_DBInstanceIdentifier=""}" \ No newline at end of file