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.
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 Native-Specific Metrics to Prebid Server #930
Add Native-Specific Metrics to Prebid Server #930
Changes from 11 commits
00f48e3
6d8bf61
654fb2c
aaa9a00
5d7fa8f
bcd4b12
d484938
d5a6afe
d919002
5d76416
7661993
73e7676
569e649
44096ba
63dd6c1
5c6442c
789d60f
36e4a6a
f0d2976
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it may be best to refactor
RecordImps()
rather than add impTypes as a redundant metric. The key here is prometheus is set up so it could easily track multiformat counts. The way it is currently coded, if you have animp
that allows both banner and video ads, and you ask what the total number of imps are, it will tell you two. But if you refactor how imps are recorded, you can preserve the information that there was one imp, and it was valid as both a banner imp and a video imp.What we would want to do is loop over the imps, and call
RecordImps()
once per imp. We would make the values for the imp types boolean, and then add one imp recording with the proper flags for each call. This will allow us to track the true total number of imps along with counts for each imp type.We probably want to have a new ImpLabels type to help keep things clean, and make it clear that the imp type booleans only apply to
RecordImps()
and not the other metrics.This will also require the influx metrics to be refactored a bit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comparing to the latest master, I see all these label names have been converted to constants ... probably should do the same for
impLabelNames
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also can drop
_imps
from the label name, as these are labels on theimps_requested_total
counter. Looking atimps_requested_total.banner_imps
looks a bit redundant. :)