Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompactorOptions ¶
type CompactorOptions struct { BlockFilesConcurrency int `opt:"block-files-concurrency"` BlockMetaFetchConcurrency int `opt:"block-meta-fetch-concurrency"` BlockViewerGlobalSyncBlockInterval time.Duration `opt:"block-viewer.global.sync-block-interval"` BlockViewerGlobalSyncBlockTimeout time.Duration `opt:"block-viewer.global.sync-block-timeout"` BucketWebLabel string `opt:"bucket-web-label"` CompactBlocksFetchConcurrency int `opt:"compact.blocks-fetch-concurrency"` CompactCleanupInterval time.Duration `opt:"compact.cleanup-interval"` CompactConcurrency int `opt:"compact.concurrency"` CompactProgressInterval time.Duration `opt:"compact.progress-interval"` ConsistencyDelay time.Duration `opt:"consistency-delay"` DataDir string `opt:"data-dir"` DeduplicationFunc string `opt:"deduplication.func"` DeduplicationReplicaLabel string `opt:"deduplication.replica-label"` DeleteDelay time.Duration `opt:"delete-delay"` DownsampleConcurrency int `opt:"downsample.concurrency"` DownsamplingDisable bool `opt:"downsampling.disable"` HashFunc string `opt:"hash-func"` HttpAddress *net.TCPAddr `opt:"http-address"` HttpGracePeriod time.Duration `opt:"http-grace-period"` HttpConfig string `opt:"http.config"` LogFormat log.Format `opt:"log.format"` LogLevel log.Level `opt:"log.level"` MaxTime *thanostime.TimeOrDurationValue `opt:"max-time"` MinTime *thanostime.TimeOrDurationValue `opt:"min-time"` ObjstoreConfig string `opt:"objstore.config"` ObjstoreConfigFile string `opt:"objstore.config-file"` RetentionResolution1h time.Duration `opt:"retention.resolution-1h"` RetentionResolution5m time.Duration `opt:"retention.resolution-5m"` RetentionResolutionRaw time.Duration `opt:"retention.resolution-raw"` SelectorRelabelConfig string `opt:"selector.relabel-config"` SelectorRelabelConfigFile string `opt:"selector.relabel-config-file"` TracingConfig string `opt:"tracing.config"` TracingConfigFile string `opt:"tracing.config-file"` Version bool `opt:"version,noval"` Wait bool `opt:"wait,noval"` WaitInterval time.Duration `opt:"wait-interval"` WebDisable bool `opt:"web.disable"` WebDisableCors bool `opt:"web.disable-cors"` WebExternalPrefix string `opt:"web.external-prefix"` WebPrefixHeader string `opt:"web.prefix-header"` WebRoutePrefix string `opt:"web.route-prefix"` // Extra options not officially supported by the compactor. cmdopt.ExtraOpts }
CompactorOptions represents the options/flags for the compactor. See https://thanos.io/tip/components/compact.md/#flags for details.
func NewDefaultOptions ¶
func NewDefaultOptions() *CompactorOptions
type CompactorStatefulSet ¶
type CompactorStatefulSet struct { workload.StatefulSetWorkload // contains filtered or unexported fields }
func NewCompactor ¶
func NewCompactor(opts *CompactorOptions, namespace, imageTag string) *CompactorStatefulSet
NewCompactor returns a new compactor statefulset with default values. It allows generating the all the manifests for the compactor.
func (*CompactorStatefulSet) Objects ¶
func (c *CompactorStatefulSet) Objects() []runtime.Object
Manifests returns the manifests for the compactor. It includes the statefulset, the service, the service monitor, the service account and the config maps required by the containers.
Click to show internal directories.
Click to hide internal directories.