Skip to content

Commit fbe0c9f

Browse files
pooknulltplavcic
andauthored
K8SPSMDB-818: improve monitoring test (#1327)
https://jira.percona.com/browse/K8SPSMDB-818 Co-authored-by: Tomislav Plavcic <[email protected]>
1 parent a3c7109 commit fbe0c9f

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

e2e-tests/functions

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -980,7 +980,8 @@ get_metric_values() {
980980

981981
get_qan_values() {
982982
local service_type=$1
983-
local user_pass=$2
983+
local environment=$2
984+
local user_pass=$3
984985
local start
985986
local end
986987
local endpoint
@@ -997,9 +998,14 @@ get_qan_values() {
997998
{
998999
"key": "service_type",
9991000
"value": [
1000-
"All",
10011001
"$service_type"
10021002
]
1003+
},
1004+
{
1005+
"key": "environment",
1006+
"value": [
1007+
"$environment"
1008+
]
10031009
}
10041010
],
10051011
"columns": [

e2e-tests/monitoring-2-0/conf/monitoring-rs0.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ spec:
2020
tls:
2121
mode: requireTLS
2222
operationProfiling:
23-
mode: slowOp
23+
mode: all
2424
slowOpThresholdMs: 100
2525
rateLimit: 100
2626
security:

e2e-tests/monitoring-2-0/run

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,11 @@ get_metric_values node_boot_time_seconds $namespace-$MONGOS_POD_NAME admin:admin
9999
#get_metric_values mongodb_mongos_connections ${cluster%%-rs0}-mongos-0
100100

101101
# wait for QAN
102-
# TODO: uncomment the code below when mongodb data will be available in QAN
103-
#sleep 90
104-
#
105-
#desc 'check QAN data'
106-
#get_qan_values mongodb admin:admin
102+
sleep 90
103+
104+
desc 'check QAN data'
105+
get_qan_values mongodb "dev-mongod" admin:admin
106+
get_qan_values mongodb "dev-mongos" admin:admin
107107

108108
if [[ -n ${OPENSHIFT} ]]; then
109109
oc adm policy remove-scc-from-user privileged -z percona-server-mongodb-operator

0 commit comments

Comments
 (0)