Documentation
¶
Index ¶
Constants ¶
View Source
const ( V3ioConfigEnvironmentVariable = "V3IO_CONF" DefaultConfigurationFileName = "v3io.yaml" SchemaConfigFileName = ".schema" DefaultShardingBuckets = 8 DefaultStorageClass = "local" DefaultIngestionRate = "" DefaultAggregates = "" // no aggregates by default DefaultAggregationGranularity = "1h" DefaultLayerRetentionTime = "1y" DefaultSampleRetentionTime = 0 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MetricConfig ¶
type MetricsReporterConfig ¶ added in v0.0.12
type MetricsReporterConfig struct { ReportOnShutdown bool `json:"reportOnShutdown,omitempty"` Output string `json:"output"` // stdout, stderr, syslog, etc. ReportPeriodically bool `json:"reportPeriodically,omitempty"` RepotInterval int `json:"reportInterval"` // interval between consequence reports (in Seconds) }
type Partition ¶ added in v0.0.3
type Partition struct { StartTime int64 `json:"startTime"` SchemaInfo PartitionSchema `json:"schemaInfo"` }
type PartitionSchema ¶ added in v0.0.3
type PartitionSchema struct { Version int `json:"version"` Aggregators []string `json:"aggregators"` AggregatorsGranularity string `json:"aggregatorsGranularity"` StorageClass string `json:"storageClass"` SampleRetention int `json:"sampleRetention"` PartitionerInterval string `json:"partitionerInterval"` ChunckerInterval string `json:"chunckerInterval"` }
type Rollup ¶ added in v0.0.3
type Rollup struct { Aggregators []string `json:"aggregators"` AggregatorsGranularity string `json:"aggregatorsGranularity"` //["cloud","local"] for the aggregators and sample chunks StorageClass string `json:"storageClass"` //in hours. 0 means no need to save samples SampleRetention int `json:"sampleRetention"` // format : 1m, 7d, 3h . Possible intervals: m/d/h LayerRetentionTime string `json:"layerRetentionTime"` }
type Schema ¶ added in v0.0.3
type Schema struct { TableSchemaInfo TableSchema `json:"tableSchemaInfo"` PartitionSchemaInfo PartitionSchema `json:"partitionSchemaInfo"` Partitions []*Partition `json:"partitions"` Fields []SchemaField `json:"fields"` }
type SchemaField ¶ added in v0.0.3
type TableSchema ¶ added in v0.0.3
type V3ioConfig ¶
type V3ioConfig struct { // V3IO Connection details: Url, Data container, relative path for this dataset, credentials WebApiEndpoint string `json:"webApiEndpoint"` Container string `json:"container"` TablePath string `json:"tablePath"` Username string `json:"username,omitempty"` Password string `json:"password,omitempty"` // Disable is use in Prometheus to disable v3io and work with the internal TSDB Disabled bool `json:"disabled,omitempty"` // Set logging level: debug | info | warn | error (info by default) LogLevel string `json:"logLevel,omitempty"` // Number of parallel V3IO worker routines Workers int `json:"workers"` // Number of parallel V3IO worker routines for queries (default is min between 8 and Workers) QryWorkers int `json:"qryWorkers"` // Max uncommitted (delayed) samples allowed per metric MaxBehind int `json:"maxBehind"` // Override last chunk (by default on restart it will append from the last point if possible) OverrideOld bool `json:"overrideOld"` // Default timeout duration in Seconds (if not set, 1 Hour timeout will be used ) DefaultTimeoutInSeconds int `json:"timeout,omitempty"` // The size of batch to use during ingestion BatchSize int `json:"batchSize,omitempty"` // Sample size in bytes in worst compression scenario MaximumSampleSize int `json:"maximumSampleSize,omitempty"` // Max size of a partition object MaximumPartitionSize int `json:"maximumPartitionSize,omitempty"` // Size of chunk in bytes for worst an best compression scenarios MinimumChunkSize int `json:"minimumChunkSize,omitempty"` MaximumChunkSize int `json:"maximumChunkSize,omitempty"` ShardingBuckets int `json:"shardingBuckets,omitempty"` // Metrics reporter configuration MetricsReporter MetricsReporterConfig `json:"performance,omitempty"` // dont aggregate from raw chuncks, for use when working as Prometheus TSDB lib DisableClientAggr bool `json:"disableClientAggr,omitempty"` }
func GetOrDefaultConfig ¶ added in v0.0.12
func GetOrDefaultConfig() (*V3ioConfig, error)
func GetOrLoadFromData ¶ added in v0.0.12
func GetOrLoadFromData(data []byte) (*V3ioConfig, error)
func GetOrLoadFromFile ¶ added in v0.0.12
func GetOrLoadFromFile(path string) (*V3ioConfig, error)
func GetOrLoadFromStruct ¶ added in v0.0.12
func GetOrLoadFromStruct(cfg *V3ioConfig) (*V3ioConfig, error)
update defaults when using config struct
Click to show internal directories.
Click to hide internal directories.