flytekit.configuration.StatsConfig

class flytekit.configuration.StatsConfig(host='localhost', port=8125, disabled=False, disabled_tags=False)[source]

Configuration for sending statsd.

Parameters:
  • host (str) – The statsd host

  • port (int) – statsd port

  • disabled (bool) – Whether or not to send

  • disabled_tags (bool) – Turn on to reduce cardinality.

Methods

classmethod auto(config_file=None)[source]

Reads from environment variable, followed by ConfigFile provided :param config_file: :return:

Parameters:

config_file (str | ConfigFile | None)

Return type:

StatsConfig

Attributes

disabled: bool = False
disabled_tags: bool = False
host: str = 'localhost'
port: int = 8125