mirror of
https://github.com/prymitive/karma
synced 2026-08-28 11:17:28 +00:00
fix(tests): ignore go_info metric
This commit is contained in:
committed by
Łukasz Mierzwa
parent
47a04869fc
commit
8c7ef7452a
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user