-
Notifications
You must be signed in to change notification settings - Fork 202
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 - metrics sampling #1902
Comments
@NguyHa03 can you try metrics filtering. It was introduced in telemetry processor since 3.1.1. |
@heyams Thanks for reply |
@NguyHa03 can you try increasing the interval metirc-interval. by default, perf counters and custom metrics are captured every 60 seconds.. when you use a longer interval, it will generate less telemetries. this doesn't cover traces though. alternatively, please also try sampling. It applies to all telemetries except metrics. I think this might work. please let me know how it goes. thanks. |
@heyams I tried sampling and set enviroment variable like that I think metric is still impact by sampling. |
are you using 2.x sdk to send custom metrics? sampling percentage affects metrics coming from 2.x SDK currently. |
if you're using "trackMetrics" from the 2.x SDK, please use metric-interval for now. it doesn't affects calls to "trackMetrics", i.e. custom metrics, but will impact metrics that are auto-collected. |
I used 3.x agent along with micrometer-core 1.7.3 to send metric like this |
I see that we could override sampling for request (docs), do we have something like that for custom metrics ?
I want to keep all metrics at 100% and other telematry at sampling (like 10%)
I found that Standard Metric would be suitable for my scenario (docs), but java codeless is currently not support. Could we have any other solution ?
The text was updated successfully, but these errors were encountered: