fix(tests): ignore go_info metric

This commit is contained in:
Łukasz Mierzwa
2020-11-06 21:11:50 +00:00
committed by Łukasz Mierzwa
parent 47a04869fc
commit 8c7ef7452a
+1 -4
View File
@@ -19,9 +19,6 @@ go_gc_duration_seconds_count
# HELP go_goroutines Number of goroutines that currently exist.
# TYPE go_goroutines gauge
go_goroutines
# HELP go_info Information about the Go environment.
# TYPE go_info gauge
go_info{version="go1.15.3"}
# HELP go_memstats_alloc_bytes Number of bytes allocated and still in use.
# TYPE go_memstats_alloc_bytes gauge
go_memstats_alloc_bytes
@@ -136,5 +133,5 @@ level=info msg="Removing PID file" path=karma.pid
while [ ! -f karma.pid ]; do sleep 1 ; done
sleep 5
curl -s http://localhost:8083/metrics | grep -v 'process_' | sed -E s_' ([0-9]+|[0-9]+\.[0-9]+|[0-9]+\.[0-9]+e(\+|\-)[0-9]+)$'_''_g > curl.txt
curl -s http://localhost:8083/metrics | grep -vE 'process_|go_info' | sed -E s_' ([0-9]+|[0-9]+\.[0-9]+|[0-9]+\.[0-9]+e(\+|\-)[0-9]+)$'_''_g > curl.txt
cat karma.pid | xargs kill