Skip to content

Latest commit

 

History

History

linkerd

Linkerd Integration

Overview

This check collects distributed system observability metrics from Linkerd.

Setup

Installation

The Linkerd check is included in the Datadog Agent package, so you don't need to install anything else on your server.

Configuration

Host

Follow the instructions below to configure this check for an Agent running on a host. For containerized environments, see the Containerized section.

  1. Edit the linkerd.d/conf.yaml file, in the conf.d/ folder at the root of your Agent's configuration directory. See sample linkerd.d/conf.yaml for all available configuration options.

  2. Restart the Agent.

Containerized

For containerized environments, see the Autodiscovery Integration Templates for guidance on applying the parameters below.

Linkerd v1
Parameter Value
<INTEGRATION_NAME> linkerd
<INIT_CONFIG> blank or {}
<INSTANCE_CONFIG> {"prometheus_url": "http://%%host%%:9990/admin/metrics/prometheus"}
Linkerd v2
Parameter Value
<INTEGRATION_NAME> linkerd
<INIT_CONFIG> blank or {}
<INSTANCE_CONFIG> {"prometheus_url": "http://%%host%%:4191/metrics"}

Validation

Run the Agent's status subcommand and look for linkerd under the Checks section.

Data Collected

Metrics

See metadata.csv for a list of default metrics provided by this integration.

For linkerd v1, see finagle metrics docs for a detailed description of some of the available metrics and this gist for an example of metrics exposed by linkerd.

Attention: Depending on your linkerd configuration, some metrics might not be exposed by linkerd.

To list the metrics exposed by your current configuration, run

curl <linkerd_prometheus_endpoint>

Where linkerd_prometheus_endpoint is the linkerd prometheus endpoint (you should use the same value as the prometheus_url config key in your linkerd.yaml)

If you need to use a metric that is not provided by default, you can add an entry to linkerd.yaml.

Simply follow the examples present in the default configuration.

Service Checks

linkerd.prometheus.health: Returns CRITICAL if the Agent fails to connect to the prometheus endpoint, otherwise returns UP.

Troubleshooting

Need help? Contact Datadog support.