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

Add gRPC metrics #3104

Merged
merged 1 commit into from
Mar 14, 2024
Merged

Add gRPC metrics #3104

merged 1 commit into from
Mar 14, 2024

Conversation

peterebden
Copy link
Member

I'm interested in comparing what we do with remote execution given certain changes. This should be pretty minimal overhead (it's only on if we use rex and we already import all the prometheus & protobuf gubbins anyway)

log.Debug("Metric recorded: %s: %0.0f", *fam.Name, *metric.Gauge.Value)
}
buf.Reset()
if _, err := expfmt.MetricFamilyToText(&buf, fam); err == nil {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I got some way through implementing label printing myself then realised I was just reimplementing expfmt. Bonus: this now prints all metric types for 'free'

@peterebden peterebden merged commit fa61e8d into thought-machine:master Mar 14, 2024
14 checks passed
@peterebden peterebden deleted the rex-metrics branch March 14, 2024 11:01
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.

None yet

1 participant