config

package
v5.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Hostname        = "undefined"
	MetricNamespace = "myrtea"
	MetricComponent = "ingesterapi"

	MetricPrometheusLabels = stdprometheus.Labels{"component": MetricComponent, "hostname": Hostname}
)
View Source
var AllowedConfigKey = [][]helpers.ConfigKey{

	helpers.GeneralConfigKeys,
	helpers.HTTPServerConfigKeys,
	helpers.PostgresqlConfigKeys,
	helpers.ElasticsearchConfigKeys,
	{
		{Type: helpers.StringFlag, Name: "ELASTICSEARCH_HTTP_TIMEOUT", DefaultValue: "1m", Description: "Elasticsearch HTTP Client timeout"},
		{Type: helpers.StringFlag, Name: "ELASTICSEARCH_DIRECT_MULTI_GET_MODE", DefaultValue: "true", Description: "Elasticsearch direct multi-get mode enabled"},
		{Type: helpers.StringFlag, Name: "INGESTER_MAXIMUM_WORKERS", DefaultValue: "2", Description: "Typed Ingester's maximum parallel workers"},
		{Type: helpers.StringFlag, Name: "TYPEDINGESTER_QUEUE_BUFFER_SIZE", DefaultValue: "5000", Description: "Typed ingester's internal queue size"},
		{Type: helpers.StringFlag, Name: "WORKER_QUEUE_BUFFER_SIZE", DefaultValue: "5000", Description: "Worker's internal queue size"},
		{Type: helpers.StringFlag, Name: "WORKER_MAXIMUM_BUFFER_SIZE", DefaultValue: "2000", Description: "Worker's maximum buffer size"},
		{Type: helpers.StringFlag, Name: "WORKER_FORCE_FLUSH_TIMEOUT_SEC", DefaultValue: "10", Description: "Worker's force flush timeout (in seconds)"},
		{Type: helpers.StringFlag, Name: "DEBUG_DRY_RUN_ELASTICSEARCH", DefaultValue: "false", Description: "Enable ingester dry-run mode for elasticsearch (no interaction with ES)"},
	},
}

AllowedConfigKey list every allowed configuration key

View Source
var ConfigName = "ingester-api"

ConfigName is the toml configuration file name

View Source
var ConfigPath = "config"

ConfigPath is the toml configuration file path

View Source
var EnvPrefix = "MYRTEA"

EnvPrefix is the standard environment variable prefix

Functions

func InitMetricLabels

func InitMetricLabels(hostname string)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL