prometheus: Add mgmt_process_start_time_seconds metric

This commit is contained in:
Julien Pivotto
2017-02-14 22:14:40 +01:00
parent 605688426d
commit 25e2af7c89
3 changed files with 16 additions and 1 deletions

View File

@@ -11,6 +11,9 @@ curl 127.0.0.1:9233/metrics | grep "^etcd_server_has_leader 1"
# Check that go metrics are loaded
curl 127.0.0.1:9233/metrics | grep "^go_goroutines [0-9]\+"
# Check mgmt_process_start_time_seconds
curl 127.0.0.1:9233/metrics | grep "^mgmt_process_start_time_seconds [0-9]\+"
killall -SIGINT mgmt # send ^C to exit mgmt
wait $pid # get exit status
exit $?