Metrics Sampling Interval#654
Merged
toksdotdev merged 8 commits intosuperradcompany:mainfrom May 5, 2026
Merged
Conversation
…onfig or override in the sdk command to create a sandbox. Setting to 0 disables the metric sampling completely
toksdotdev
reviewed
May 4, 2026
…into configureMetricsSampleInterval
toksdotdev
reviewed
May 4, 2026
toksdotdev
reviewed
May 4, 2026
toksdotdev
reviewed
May 4, 2026
toksdotdev
approved these changes
May 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add the ability to configure the metrics sample interval in ms from the config or override in the sdk command to create a sandbox.
This is so that users can configure how frequently metric samples are collected. It could be faster or slower but the default remains 1 second or 1000 ms. If a user wants to disable sampling completely they set it to 0 and the entire metric sampling task is skipped.
If they disable metric sampling by setting the interval to 0 and then they try to read the metrics from cli/sdk, they will receive and error saying metrics are disabled for that sandbox.
Example config:
{ "database": { "max_connections": 1 }, "sandbox_defaults": { "metrics_sample_interval_ms": 0 } }