Class: Datadog::Core::Configuration::Settings::DSL::Diagnostics::HealthMetrics

Inherits:
Object
  • Object
show all
Defined in:
lib/datadog/core/configuration/settings.rb

Overview

Internal Statsd metrics collection.

Instance Attribute Summary collapse

Instance Attribute Details

#enabledBoolean

Enable health metrics collection.

Returns:

  • (Boolean)

Defaults to:

  • DD_HEALTH_METRICS_ENABLED environment variable, otherwise false



120
121
122
# File 'lib/datadog/core/configuration/settings.rb', line 120

def enabled
  @enabled
end

#statsdDatadog::Statsd?

Statsd instance to collect health metrics.

If nil, health metrics creates a new Statsd client with default agent configuration.

Returns:

  • (Datadog::Statsd, nil)

    a custom Statsd instance

  • (nil)

    an instance with default agent configuration will be lazily created

Defaults to:

  • nil



133
134
135
# File 'lib/datadog/core/configuration/settings.rb', line 133

def statsd
  @statsd
end