Skip to content

Latest commit

 

History

History
160 lines (116 loc) · 5.79 KB

telemetry.mdx

File metadata and controls

160 lines (116 loc) · 5.79 KB
layout page_title description
docs
telemetry Block - Nomad Autoscaler Agent Configuration
The "telemetry" block configures the Nomad Autoscaler's publication of metrics and telemetry to third-party systems.

telemetry Block

<Placement groups={['telemetry']} />

The telemetry block configures the Nomad Autoscaler's publication of metrics and telemetry to third-party systems.

telemetry {
  disable_hostname = true
}

telemetry Parameters

Due to the number of provider-specific parameters to the telemetry block, parameters in this section are grouped by the telemetry provider.

Common Parameters

The following options are available on all telemetry configurations.

  • disable_hostname (bool: false) - Specifies if gauge values should be prefixed with the local hostname.

  • enable_hostname_label (bool: false) - Enable adding hostname to metric labels.

  • collection_interval (duration: "1s") - Specifies the time interval at which the Nomad agent collects telemetry data.

statsite Parameters

These telemetry parameters apply to Statsite.

  • statsite_address (string: "") - Specifies the address of a statsite server to forward metrics data to.
telemetry {
  statsite_address = "statsite.company.local:8125"
}

statsd Parameters

These telemetry parameters apply to StatsD.

  • statsd_address (string: "") - Specifies the address of a statsd server to forward metrics to.
telemetry {
  statsd_address = "statsd.company.local:8125"
}

datadog Parameters

These telemetry parameters apply to DataDog statsd.

  • dogstatsd_address (string: "") - Specifies the address of a DataDog statsd server to forward metrics to.

  • dogstatsd_tags (list: []) - Specifies a list of global tags that will be added to all telemetry packets sent to DogStatsD. It is a list of strings, where each string looks like my_tag_name:my_tag_value.

telemetry {
  dogstatsd_address = "dogstatsd.company.local:8125"
  dogstatsd_tags    = ["my_tag_name:my_tag_value"]
}

prometheus Parameters

These telemetry parameters apply to Prometheus.

  • prometheus_metrics (bool: false) - Specifies whether the agent should make Prometheus formatted metrics available at /v1/metrics?format=prometheus.

  • prometheus_retention_time (string: "24h") - Specifies the amount of time that Prometheus metrics are retained in memory.

circonus Parameters

These telemetry parameters apply to Circonus.

  • circonus_api_token (string: "") - Specifies a valid Circonus API Token used to create/manage check. If provided, metric management is enabled.

  • circonus_api_app (string: "nomad-autoscaler") - Specifies a valid app name associated with the API token.

  • circonus_api_url (string: "https://api.circonus.com/v2") - Specifies the base URL to use for contacting the Circonus API.

  • circonus_submission_interval (string: "10s") - Specifies the interval at which metrics are submitted to Circonus.

  • circonus_submission_url (string: "") - Specifies the check.config.submission_url field, of a Check API object, from a previously created HTTPTRAP check.

  • circonus_check_id (string: "") - Specifies the Check ID (not check bundle) from a previously created HTTPTrap check. The numeric portion of the check._cid field in the Check API object.

  • circonus_check_force_metric_activation (bool: false) - Specifies if force activation of metrics which already exist and are not currently active. If check management is enabled, the default behavior is to add new metrics as they are encountered. If the metric already exists in the check, it will not be activated. This setting overrides that behavior.

  • circonus_check_instance_id (string: "<hostname>:<application>") - Serves to uniquely identify the metrics coming from this instance. It can be used to maintain metric continuity with transient or ephemeral instances as they move around within an infrastructure. By default, this is set to "hostname:application name" (e.g. host123:nomad-autoscaler).

  • circonus_check_search_tag (string: <service>:<application>) - Specifies a special tag which, when coupled with the instance id, helps to narrow down the search results when neither a Submission URL or Check ID is provided. By default, this is set to "service:app" (e.g. service:nomad-autoscaler).

  • circonus_check_display_name (string: "") - Specifies a name to give a check when it is created. This name is displayed in the Circonus UI Checks list.

  • circonus_check_tags (string: "") - Comma separated list of additional tags to add to a check when it is created.

  • circonus_broker_id (string: "") - Specifies the ID of a specific Circonus Broker to use when creating a new check. The numeric portion of broker._cid field in a Broker API object. If metric management is enabled and neither a Submission URL nor Check ID is provided, an attempt will be made to search for an existing check using Instance ID and Search Tag. If one is not found, a new HTTPTrap check will be created. By default, this is a random Enterprise Broker is selected, or, the default Circonus Public Broker.

  • circonus_broker_select_tag (string: "") - Specifies a special tag which will be used to select a Circonus Broker when a Broker ID is not provided. The best use of this is to as a hint for which broker should be used based on where this particular instance is running (e.g., a specific geographic location or datacenter, dc:sfo).