-
Notifications
You must be signed in to change notification settings - Fork 574
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
How to handle multiple request schemes in metrics #7871
Comments
My personal vote here is to go with option 1 from above, as that way:
|
To me the problem is not how we tag metrics but maybe how it is implemented, I don't think the proposed tags in 1 are idiomatic, also queries similar to 2
seem hard to express in promql as we couldn't easily aggregate using Question: where is the metrics problem, is it on ingress or is it on egress ? |
@pierDipi this metrics problem is on the egress for IMC. So, I guess the fix is to change how we count and emit metrics in the imc-dispatcher? |
/assign |
Problem
Sometimes, an event which is dispatched from the imc dispatcher might dispatch with mixed schemes. If there are one or more subscribers with https, then those events will be dispatched with https scheme. If there are one or more subscribers with http, then those events will be dispatched with http scheme. This can cause issues when it comes to recording metrics, because if we record each metric once for http and once for https then our event count will be wrong for the dispatcher (since some events will be recorded twice). Some ideas proposed by @maschmid to fix this are:
event_scheme="http"
orevent_scheme="https"
, tag the metrics withevent_scheme_http=true/false
andevent_scheme_https=true/false
.event_scheme="https"
only if ALL subscribers are https, otherwise report http.Persona:
Which persona is this feature for?
Administrators trying to observe the system
Exit Criteria
The metric counts are always correct, even in TLS permissive
Time Estimate (optional):
How many developer-days do you think this may take to resolve? 1
Additional context (optional)
Add any other context about the feature request here.
The text was updated successfully, but these errors were encountered: