You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to change the interval of metrics collection but cannot seem to get the desired effect. I'm doing:
fninit_metrics() -> SdkMeterProvider{let exporter = MetricExporter::builder().with_http().with_protocol(Protocol::HttpBinary)//can be changed to `Protocol::HttpJson` to export in JSON format.build().expect("Failed to create metric exporter");let reader = PeriodicReader::builder(exporter).with_interval(Duration::from_secs(5)).build();SdkMeterProvider::builder().with_reader(reader).with_resource(get_resource()).build()}
But it's still exporting at 60 seconds.
I can see the following log entry so it appears to be correctly set:
Also, I'd like to be able to configure not only the collection frequency but also the export frequency separately. For instance I may want to collect data once a second but only export every 60 seconds, is that possible?
Thanks.
OpenTelemetry API Version (i.e version of opentelemetry crate)
0.28.0
OpenTelemetry SDK Version (i.e version of opentelemetry_sdk crate)
Can you share details on how you are testing and validating? The shared logs just has a the initial log only - if you can share subsequent logs, that should tell how frequently export is triggered.
Also, I'd like to be able to configure not only the collection frequency but also the export frequency separately. For instance I may want to collect data once a second but only export every 60 seconds, is that possible?
Not possible today. This is an open issue in the specification also.
Hello.
I'm trying to change the interval of metrics collection but cannot seem to get the desired effect. I'm doing:
But it's still exporting at 60 seconds.
I can see the following log entry so it appears to be correctly set:
Also, I'd like to be able to configure not only the collection frequency but also the export frequency separately. For instance I may want to collect data once a second but only export every 60 seconds, is that possible?
Thanks.
OpenTelemetry API Version (i.e version of
opentelemetry
crate)0.28.0
OpenTelemetry SDK Version (i.e version of
opentelemetry_sdk
crate)0.28.0
What Exporter(s) are you seeing the problem on?
MetricExporter
Relevant log output
OpenTelemetry.Metrics.PeriodicReader opentelemetry_sdk: name="PeriodReaderThreadStarted" interval_in_millisecs=5000
The text was updated successfully, but these errors were encountered: