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

Injection of static label/values to the F1 metrics #290

Merged
merged 1 commit into from
Oct 11, 2024

Conversation

mlornac
Copy link
Contributor

@mlornac mlornac commented Oct 9, 2024

Injecting labels with values into f1 metrics.
The labels are programmatically passed to the summary vecs

@mlornac mlornac requested a review from a team as a code owner October 9, 2024 14:11
@mlornac mlornac force-pushed the metrics_enrichments branch 4 times, most recently from 91675ae to 9e328ff Compare October 9, 2024 15:01
Copy link
Contributor

@nvloff-f3 nvloff-f3 left a comment

Choose a reason for hiding this comment

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

A few notes. Also:

Ideally we want to provide an API way(via opts similar to passing a custom logger) to adjust settings outside of env vars.

The way I think about f1 configuration is - the user should be able to set as much as possible via code where they can choose any source for that configuration. Where we provide a reasonable default configuration source via env vars.

internal/metrics/metrics.go Outdated Show resolved Hide resolved
internal/metrics/metrics.go Outdated Show resolved Hide resolved
internal/metrics/metrics.go Outdated Show resolved Hide resolved
@mlornac mlornac force-pushed the metrics_enrichments branch from 9e328ff to 78cee04 Compare October 10, 2024 09:40
@mlornac mlornac changed the title feat: support of metrics enrichments from an env variable Injection of static label/values to the F1 metrics Oct 10, 2024
@mlornac mlornac force-pushed the metrics_enrichments branch 8 times, most recently from 19a2200 to ee20fed Compare October 10, 2024 11:02
nvloff-f3
nvloff-f3 previously approved these changes Oct 10, 2024
@mlornac mlornac force-pushed the metrics_enrichments branch 2 times, most recently from 18ca708 to d29cd8e Compare October 10, 2024 14:57
@mlornac mlornac force-pushed the metrics_enrichments branch from d29cd8e to b4368ab Compare October 11, 2024 08:36
@mlornac mlornac merged commit c0020a5 into master Oct 11, 2024
4 checks passed
@mlornac mlornac deleted the metrics_enrichments branch October 11, 2024 10:24
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.

2 participants