Expose the startup timestamp to Prometheus (#2233)

## Issue Addressed

Resolves #1788

## Proposed Changes

As per #1788, expose the time at which the process started via the `process_start_time_seconds` Prometheus metric. This will help users track uptime.

## Additional Info

NA

Co-authored-by: Michael Sproul <michael@sigmaprime.io>
This commit is contained in:
Paul Hauner
2021-03-02 22:35:47 +00:00
parent da8791abd7
commit b30ff6affc
4 changed files with 31 additions and 0 deletions

2
Cargo.lock generated
View File

@@ -3721,6 +3721,8 @@ dependencies = [
"environment",
"eth2_network_config",
"futures 0.3.13",
"lazy_static",
"lighthouse_metrics",
"lighthouse_version",
"logging",
"remote_signer",