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

[Question]Why there's no xx.total metrics in semantic-conventions #1806

Open
caibirdme opened this issue Jan 24, 2025 · 3 comments
Open

[Question]Why there's no xx.total metrics in semantic-conventions #1806

caibirdme opened this issue Jan 24, 2025 · 3 comments
Labels
area:http question Further information is requested triage:needs-triage

Comments

@caibirdme
Copy link

I've learned the semantic-conventions, and found that no matter http.server.xxx or rpc.server.xxx, there's no metrics for counting the request total. I'm curious about the reason. Like we have http.server.request.duration histogram and http.server.active_requests updowncounter, but don't have http.server.request.total count, why is that? Most people care about the qps which requires the xx.total metrics, but we don't have that, I don't know if it's designed to be so, and why

@trask
Copy link
Member

trask commented Jan 30, 2025

hi @caibirdme! the total is available via the http.server.request.duration histogram, does this work for you?

@alexeych0
Copy link

hi @caibirdme! the total is available via the http.server.request.duration histogram, does this work for you?

Could you elaborate more please? How the histogram "http.server.request.duration" that measures request duration can be transformed into a counter metric? So that it can be calculated the number of requests per second (rps) for each http.target?

@trask
Copy link
Member

trask commented Jan 30, 2025

summing the counts across the histogram buckets will give you the total

@joaopgrassi joaopgrassi added question Further information is requested area:http labels Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:http question Further information is requested triage:needs-triage
Projects
Status: Need triage
Development

No branches or pull requests

4 participants