Skip to content

metrics: 🔖 expose build information to prometheus #3911

Open
@cratelyn

Description

@cratelyn

a somewhat common "best practice" when operating services that expose prometheus metrics is to expose information about the software version, and other build information. this makes dashboards more legible when making queries across long spans of time, and can additionally help with operational tasks like incident response.

we should add a pd_build_info gauge that, upon startup, is set to 1. the label should include the cargo version, and chain id, as a start. other helpful bits of information can be added later, as needed.

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