-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Frequency of Metrics report #108152
Comments
cc @dotnet/area-system-diagnostics-metric You can read more about collection here: https://learn.microsoft.com/en-us/dotnet/core/diagnostics/metrics-collection |
@Leonardo-Ferreira how you are listening to the metrics? are you using specific tools or manually collecting it (in-proc or out-of-proc)? |
Nothing does that entire process out-of-the-box that I am aware of, but there are some building blocks you could use to make a custom solution that does that. Here is one possibility:
You may already be aware but just wanted to mention - this type of in-proc polling+aggregation is doable but atypical. Many folks would likely handle this by capturing high fidelity data initially and then downsample it as part of querying or downsample the raw data within the storage of the time-series database. For example with queries PromQL supports functions that can report the min/max/avg over a time range. There are certainly tradeoffs to the different choices and nothing is wrong with doing the aggregation in-process if you are OK with complexity to maintain the custom metrics. Hope that helps! |
I have applications using App Insights, Datadog and .Net OTEL... |
In OTel Spec, the metric export frequency is same as observable call back frequency. i.e If exporting occurs every 60 secs, then observable callbacks are also triggered every 60 secs. There was some ask to support a separate interval for the observable callback, but it didn't made it to OTel spec., but there seems to be few workaround suggested there already. |
@Leonardo-Ferreira do you have any more questions? or ok to close the issue? |
sorry for being away, had to deal with some other problems, but now im back So, I was not expecting this to be configurable at the OTel SDK... I was expecting the answer to be either "No, that value is hard coded, cannot be configured" or "Yes, like this: im almost going with @noahfalk 's suggestion, but it would be nice to have this on the runtime itself... |
Is there a way to increase the frequency of metrics like "Memory Usage" or "Cpu Usage"?
Perhaps not necessarily increase the frequency of reporting but the capturing, so 1 report can have multiple data points? like, capture every 5 sec but report once every 120 sec along with the minimum value observed, the maximum, the average, the median and the std deviation
The text was updated successfully, but these errors were encountered: