Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CAD-2324 node: trace "nodeStartTime" as a counter #2118

Merged
merged 1 commit into from
Nov 24, 2020

Conversation

deepfire
Copy link
Contributor

This adds the nodeStartTime metric to the Prometheus export:

$  curl -s http://localhost:12798/metrics/ | grep nodeStart
cardano_node_metrics_nodeStartTime_int 1606215710

@deepfire
Copy link
Contributor Author

And so, this fixes #2113

@deepfire
Copy link
Contributor Author

bors r+

iohk-bors bot added a commit that referenced this pull request Nov 24, 2020
2118: CAD-2324 node:  trace "nodeStartTime" as a counter r=deepfire a=deepfire

This adds the `nodeStartTime` metric to the Prometheus export:
```
$  curl -s http://localhost:12798/metrics/ | grep nodeStart
cardano_node_metrics_nodeStartTime_int 1606215710
```

Co-authored-by: Kosyrev Serge <serge.kosyrev@iohk.io>
@iohk-bors
Copy link
Contributor

iohk-bors bot commented Nov 24, 2020

Timed out.

@intricate
Copy link
Contributor

bors r+

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Nov 24, 2020

@iohk-bors iohk-bors bot merged commit d5aaf0f into master Nov 24, 2020
@iohk-bors iohk-bors bot deleted the cad-2324-nodestarttime-prometheus branch November 24, 2020 16:16
@3cogito
Copy link

3cogito commented Dec 9, 2020

Is this a ctime value? How do you turn this is into something useful in Grafana. Previously it was a doddle to show the uptime in hours, now I'm scratching my head...

EDIT

Do this to get it back in Grafana as hours since started:
(time()-cardano_node_metrics_nodeStartTime_int)/3600

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants