-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
feature(1026): add sessioncount to prometheus metrics #1075
feature(1026): add sessioncount to prometheus metrics #1075
Conversation
c126e4e
to
9f27e06
Compare
void prom_inc_allocation(void); | ||
void prom_dec_allocation(void); | ||
void prom_inc_allocation(SOCKET_TYPE type); | ||
void prom_dec_allocation(SOCKET_TYPE type); | ||
#else | ||
|
||
void start_prometheus_server(void); |
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 this method does not need to be guarded by the TURN_NO_PROMETHEUS
define.
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 agree - we should have minimal amount if ifdefs outside of prom_server.c file to improve readability of the code
@@ -201,7 +201,7 @@ int ur_map_foreach(ur_map* map, foreachcb_type func) { | |||
return 0; | |||
} | |||
|
|||
int ur_map_foreach_arg(ur_map* map, foreachcb_arg_type func, void* arg) { | |||
int ur_map_foreach_arg(const ur_map* map, foreachcb_arg_type func, void* arg) { |
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.
Do we want this in this PR? What does it fix?
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 had another approach how to add more metrics at first and missed to remove that. This only improves readability for new devs to understand which are in and which are out parameters.
Hi Pavel,
I saw at least "udp" and "tcp" during my tests but I ran it with some clients and more in a chaotic scenario. We should monitor the values (I'll do) and if there is something broken, I'm going to open another PR.
Gesendet: Sonntag, 06. November 2022 um 19:16 Uhr
Von: "Pavel Punsky" ***@***.***>
An: "coturn/coturn" ***@***.***>
Cc: "Paul Kramer" ***@***.***>, "Mention" ***@***.***>
Betreff: Re: [coturn/coturn] feature(1026): add sessioncount to prometheus metrics (PR #1075)
Hi @paulkram !
I checked out your PR and found one more issue: I always get socket type UDP in prometheus metric - not sure if this is me testing it incorrectly or it is broken somehow (I tried with -t -T)
Also, as I suspected, "ALL" and "UDP" are duplicates
Thanks!
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
No description provided.