You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Which problem is this PR solving?
- part of jaegertracing#5608
## Description of the changes
- Add smoke test for /metrics/errors
- validate correct service name
- validate correct labels (case groupByOperation=true)
## How was this change tested?
- run `scripts/e2e/spm.sh` locally
## Checklist
- [x] I have read
https://github.com/jaegertracing/jaeger/blob/master/CONTRIBUTING_GUIDELINES.md
- [x] I have signed all commits
- [x] I have added unit tests for the new functionality
- [x] I have run lint and test steps successfully
- for `jaeger`: `make lint test`
- for `jaeger-ui`: `npm run lint` and `npm run test`
---------
Signed-off-by: pipiland <[email protected]>
echo"⏳ Metrics data points found: ${zero_count} zero, ${non_zero_count} non-zero"
101
95
102
-
if [[ $zero_count-gt$expected_max_zero_count ]];then
103
-
echo"❌ ERROR: Zero values crossing threshold limit not expected (Threshold limit - '$expected_max_zero_count')"
104
-
return 1
105
-
fi
106
-
done
107
-
if [ $non_zero_count-lt$expected_non_zero_count ];then
96
+
if [[ $zero_count-gt$expected_max_zero_count ]];then
97
+
echo"❌ ERROR: Zero values crossing threshold limit not expected (Threshold limit - '$expected_max_zero_count')"
98
+
return 1
99
+
fi
100
+
if [[ $non_zero_count-lt$expected_non_zero_count ]];then
108
101
echo"⏳ Expecting at least 4 non-zero data points"
109
102
return 1
110
103
fi
111
104
112
105
# Validate if labels are correct
113
106
local url="http://localhost:16686/api/metrics/calls?service=${service}&groupByOperation=true&endTs=&lookback=${fiveMinutes}&step=${fifteenSec}&ratePer=${oneMinute}"
echo"❌ ERROR: Obtained labels: '$labels' are not same as expected labels: '$exp_labels'"
119
+
local url="http://localhost:16686/api/metrics/errors?service=${service}&groupByOperation=true&endTs=&lookback=${fiveMinutes}&step=${fifteenSec}&ratePer=${oneMinute}"
0 commit comments