feat(meta): add database_info metric for database id to name mapping#25231
Merged
feat(meta): add database_info metric for database id to name mapping#25231
Conversation
hzxa21
approved these changes
Apr 2, 2026
Collaborator
|
@arkbriar do you need this to be on grafana? I don't see you updating the grafana dashboard. It is fine if you don't need it. |
Contributor
Author
I don't for now. We can add it later in another PR if necessary. |
c38021f to
90bf001
Compare
90bf001 to
c2bcc52
Compare
Add a new `database_info` info-style gauge metric with labels `database_id` and `database_name`, enabling PromQL joins to resolve database names for barrier metrics that only expose `database_id`. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]> Signed-off-by: shunjie.dsj <[email protected]>
c2bcc52 to
8078da0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
database_infoinfo-style gauge metric with labelsdatabase_idanddatabase_namemeta_barrier_duration_seconds,all_barrier_nums) that only exposedatabase_idrelation_info,actor_info, etc.)Test plan
cargo check -p risingwave_metapassesdatabase_infometric is emitted with correct labelssome_metric * on(database_id) group_left(database_name) database_info🤖 Generated with Claude Code