Skip to content
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

docs: document metrics_generator_disable_collection override #1406

Merged
merged 1 commit into from
Apr 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions docs/tempo/website/configuration/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -978,6 +978,16 @@ overrides:
# used set in the metrics_generator config block.
[metrics_generator_collection_interval: <duration>]

# Per-user flag of the registry collection operation. If set, the registry will not be
# collected and no samples will be exported from the metrics-generator. The metrics-generator
# will still ingest spans and update its internal counters, including the amount of active
# series. To disable metrics generation entirely, clear metrics_generator_processors for this
# tenant.
#
# This setting is useful if you wish to test how many active series a tenant will generate, without
# actually writing these metrics.
[metrics_generator_disable_collection: <bool> | default = false]

# Tenant-specific overrides settings configuration file. The empty string (default
# value) disables using an overrides file.
[per_tenant_override_config: <string> | default = ""]
Expand Down
2 changes: 1 addition & 1 deletion modules/overrides/overrides.go
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ func (o *Overrides) MetricsGeneratorCollectionInterval(userID string) time.Durat
return o.getOverridesForUser(userID).MetricsGeneratorCollectionInterval
}

// MetricsGeneratorDisableRemoteWrite controls whether metrics are remote written for this tenant.
// MetricsGeneratorDisableCollection controls whether metrics are remote written for this tenant.
func (o *Overrides) MetricsGeneratorDisableCollection(userID string) bool {
return o.getOverridesForUser(userID).MetricsGeneratorDisableCollection
}
Expand Down