Class: Gitlab::Metrics::Exporter::BaseExporter

Inherits:
Daemon
  • Object
show all
Defined in:
lib/gitlab/metrics/exporter/base_exporter.rb

Direct Known Subclasses

SidekiqExporter, WebExporter

Instance Attribute Summary collapse

Attributes inherited from Daemon

#thread

Instance Method Summary collapse

Methods inherited from Daemon

#initialize, initialize_instance, instance, #start, #stop, #thread?, #thread_name

Constructor Details

This class inherits a constructor from Gitlab::Daemon

Instance Attribute Details

#readiness_checksObject

Returns the value of attribute readiness_checks


9
10
11
# File 'lib/gitlab/metrics/exporter/base_exporter.rb', line 9

def readiness_checks
  @readiness_checks
end

#serverObject (readonly)

Returns the value of attribute server


7
8
9
# File 'lib/gitlab/metrics/exporter/base_exporter.rb', line 7

def server
  @server
end

Instance Method Details

#enabled?Boolean

Returns:

  • (Boolean)

11
12
13
# File 'lib/gitlab/metrics/exporter/base_exporter.rb', line 11

def enabled?
  settings.enabled
end

#log_filenameObject

Raises:

  • (NotImplementedError)

19
20
21
# File 'lib/gitlab/metrics/exporter/base_exporter.rb', line 19

def log_filename
  raise NotImplementedError
end

#settingsObject

Raises:

  • (NotImplementedError)

15
16
17
# File 'lib/gitlab/metrics/exporter/base_exporter.rb', line 15

def settings
  raise NotImplementedError
end