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

Adds metrics middleware v4 #305

Merged
merged 2 commits into from
Apr 25, 2024
Merged

Conversation

joesantos418
Copy link
Contributor

Adds a new version of the metrics middleware with predefined metrics prefixed with "fkit_" to avoid problems with a collector overwriting labels.

Adds a new version of the metrics middleware with predefined metrics
prefixed with "fkit_" to avoid problems with a collector overwriting
labels.
Metrifier: metrifier.NewDefaultConfig("endpoint", ""),
}
config.Metrifier.ConstLabels = map[string]string{
"fikt_endpoint": endpoint,
Copy link
Collaborator

Choose a reason for hiding this comment

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

RC: fkit is written wrong here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed it, thank you for noticing

@eric-reis
Copy link
Collaborator

Reviewing finished. There's a typo that has impact in the solution and thus must be corrected before merge

Copy link

sonarcloud bot commented Apr 25, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@joesantos418 joesantos418 self-assigned this Apr 25, 2024
Copy link
Collaborator

@eric-reis eric-reis left a comment

Choose a reason for hiding this comment

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

Approving. govulcheck failure are caused by external dependencies, but they are better updated in other changesets.

@eric-reis eric-reis merged commit 11f43f8 into master Apr 25, 2024
5 of 6 checks passed
@eric-reis eric-reis deleted the feature/add-metrics-middleware-v4 branch April 25, 2024 12:33
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