-
Notifications
You must be signed in to change notification settings - Fork 2
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
Implement metrics #7
Comments
✔️ All good! |
Made some progress on this task, as mentioned on Slack. First, a note: the OpenTelemetry docs say that there is no OTLP/HTTP exporter for metrics, but this isn't actually true. The exporter was implemented months ago and it's functional, but it's not documented. Once that was figured out, I managed to get some metrics sent from the Python integration to the agent, and parsed on the agent’s side. Here’s the debug output from the agent: https://gist.github.com/unflxw/d34dd4c37a72269d5b1e1615a53b4411 Here’s the changes in the Python integration and in the Flask test setup, and here’s the (extremely work-in-progress!) changes in the agent. The next step will be to make the agent turn these into AppSignal metrics. Some, such as counters, have a clear mapping to existing metrics. Others, such as histograms, not so much. Finally, a caveat: in the current work-in-progress implementation, the agent's HTTP handler tries to parse the same bytes with different protobuf definitions, first as traces, then as metrics. What we're actually supposed to do, according to the OTLP/HTTP spec, is to differentiate them by the path that is requested ( |
Made some more progress on this. OpenTelemetry delta sum metrics are now reported to AppSignal as counters, and both OpenTelemetry cumulative sum metrics and OpenTelemetry gauges are now reported to AppSignal as gauges: The agent branch linked in the above comment should contain the latest (still work in progress) changes. Short term to do list
|
This comment has been minimized.
This comment has been minimized.
1 similar comment
This comment has been minimized.
This comment has been minimized.
Add the metrics exporter by default so users are able to send metrics using OpenTelemetry to AppSignal. This requires an agent update. Tracking issue: #7
Add the metrics exporter by default so users are able to send metrics using OpenTelemetry to AppSignal. This requires an agent update. Tracking issue: #7
This is a message from the daily scheduled checks. |
Add metrics to the Python integration using OpenTelemetry.
To do
When this is done we have custom metrics support which is good enough. Close the issue and spin the next steps off into separate issues.
Next steps
The text was updated successfully, but these errors were encountered: