Skip to content

Commit

Permalink
docs: document metrics_generator_disable_collection override (#1406)
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenraad Verheyden authored Apr 22, 2022
1 parent d48d62f commit b1fd169
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
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

0 comments on commit b1fd169

Please sign in to comment.