-
Notifications
You must be signed in to change notification settings - Fork 54
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
Support for OpenTelemetry & Prometheus metrics #696
Comments
It would also be nice to have a shorter way of expressing something like this: span->SetAttribute("nigiri.query.start_match_mode",
location_match_mode_str(q.start_match_mode_));
span->SetAttribute("nigiri.query.destination_match_mode",
location_match_mode_str(q.dest_match_mode_));
// shorter
set_attr(span, {
{"nigiri.query.start_match_mode",
location_match_mode_str(q.start_match_mode_)},
{"nigiri.query.destination_match_mode",
location_match_mode_str(q.dest_match_mode_)}}); |
Regarding metrics, IMO a very important point is also the collection of real-time metrics per real-time endpoint. This has been done here: motis/modules/nigiri/src/gtfsrt.cc Lines 91 to 105 in 5271615
And I would not only monitor metrics regarding the routing endpoint but maybe for every endpoint. But as you said - one small PR after another. Not everything has to be done at once. For now, it would be useful to just setup the basics. Telemetry can be added here and there as needed once we have the basics. |
Thank you for your answers! 👍 For reference, I'm working in PR motis-project/utl#25 to introduce:
|
Maybe it's better to split the Doxygen part and logging. So could you please create another PR just for logging and we'll merge Doxygen support in utl/#25? |
For reference, this other PR in https://github.com/motis-project/utl finalizes the "unified logging API": motis-project/utl#27. Feedbacks on it are welcome 🙂 |
I opened issue motis-project/utl#28 to track further improvements to the logging system. |
Hi,
OpenTelemetry & Prometheus metrics were implemented last year in MOTIS 1 in PR #541.
This issue is there to plan & track the work needed to add those features back to MOTIS 2.
End goal
Integration in Motis code base
utl::verify
&utl::fail
. This could also be an opportunity to add stack traces withboost::stacktrace
at those places (at least forutl::verify
failures), so we have more infos on what's happening.OpenTelemetry
localhost:4317
by defaultconfig.yml
Prometheus
/metrics
endpointconfig.yml
@felixguendling: is this plan OK with you?
Do you see other angles that we should consider beforehand?
I think it could maybe be implemented through several PRs, do you agree?
The text was updated successfully, but these errors were encountered: