Skip to content

metrics: 🔝 add an uptime counter #3912

Open
@cratelyn

Description

@cratelyn

a somewhat common "best practice" when operating services that expose prometheus metrics is to expose information about uptime.

we should define a counter pd_uptime_seconds, and run a thread in the background that increments the counter at a regular interval.

related to #3911.

Metadata

Metadata

Assignees

Labels

A-telemetryArea: Metrics, logging, and other observability-related featuresC-enhancementCategory: an enhancement to the codebaseE-easyEffort: Easy_P-V2Priority: after mainnet

Type

No type

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions