Linkerd is an open source service mesh designed to be deployed into a variety of container schedulers and frameworks such as kubernetes.

Prerequisite

  1. Edit the file agent/packaging/kubernetes/opsramp/agent/conf/app/metrics/linkerd/auto-monitoring.yaml
  2. Set prometheus_metrics_port to linkerd prometheus endpoint port (on which it is exposing metrics)

Configuring the credentials

Configure the credentials in the directory /opt/opsramp/agent/conf/app.d/creds.yaml

linkerd:
- name: linkerd
  user: <username>
  pwd: <Password>
  encoding-type: plain
  labels:
    key1: val1
    key2: val2
  

Configuring the application

Kubernetes environment

Configure the application in config.yaml

- name: linkerd
  container-checks:
    image-check:
      - controller
    port-check:
      - 8085
  

Validate

Go to Resources under the Infrastructure tab to check if your resources are onboarded and the metrics are collected.

Metrics

OpsRamp MetricMetric Display NameUnitDescription
linkerd_request_totalRequest Totalrequests/secondTotal count of HTTP requests.
linkerd_response_latencyResponse LatencymillisecondsAvg Elapsed times between a request's headers being received and its response stream completing since last pool.
linkerd_response_totalResponse Totalresponses/secondTotal count of HTTP responses.
linkerd_retry_skipped_totalRetry Skipped Totalresponses/secondTotal count of retryable HTTP responses that were not retried.
linkerd_route_request_totalRoute Request Totalrequests/secondTotal count of route HTTP requests.
linkerd_route_response_latencyRoute Response LatencymillisecondsAvg Elapsed times between a route request's headers being received and its response stream completing since last pool.
linkerd_route_response_totalRoute Response Totalresponses/secondTotal count of route HTTP responses.
linkerd_route_retry_skipped_totalRoute Retry Skipped Totalresponses/secondTotal count of retryable route HTTP responses that were not retried.
linkerd_route_actual_request_totalRoute Actual Request Totalrequests/secondTotal count of actual route HTTP requests.
linkerd_route_actual_response_latencyRoute Actual Response LatencymillisecondsAvg Elapsed times between a actual route request's headers being received and its response stream completing since last pool.
linkerd_route_actual_response_totalRoute Actual Response Totalresponses/secondTotal count of actual route HTTP responses.
linkerd_route_actual_retry_skipped_totalRoute Actual Retry Skipped Totalresponses/secondTotal count of retryable actual route HTTP responses that were not retried.
linkerd_tcp_open_totalTcp Open Totalconnections/secondTotal count of opened connections.
linkerd_tcp_open_connectionsTcp Open ConnectionsConnectionsNumber of currently-open connections.
linkerd_tcp_read_bytes_totalTcp Read Bytes Totalbytes/secondTotal count of bytes read from peers.
linkerd_tcp_write_bytes_totalTcp Write Bytes Totalbytes/secondTotal count of bytes written to peers.
linkerd_tcp_close_totalTcp Close Totalconnections/secondTotal count of closed connections.
linkerd_tcp_connection_durationTcp Connection DurationmillisecondsAvg Connection lifetimes since last pool.
linkerd_control_request_totalControl Request Totalrequests/secondTotal count of control HTTP requests.
linkerd_control_response_latencyControl Response LatencymillisecondsAvg Elapsed times between a control request's headers being received and its response stream completing since last pool.
linkerd_control_response_totalControl Response Totalresponses/secondTotal count of control HTTP responses.
linkerd_control_retry_skipped_totalControl Retry Skipped Totalresponses/secondTotal count of retryable control HTTP responses that were not retried.
linkerd_process_start_timeProcess Start TimesecondsTime that the process started (in seconds since the UNIX epoch).
linkerd_process_cpu_seconds_totalProcess Cpu Seconds TotalsecondsTotal user and system CPU time spent in seconds.
linkerd_process_open_fdsProcess Open FdsFilesNumber of open file descriptors.
linkerd_process_max_fdsProcess Max FdsFilesMaximum number of open file descriptors.
linkerd_process_virtual_memoryProcess Virtual MemorybytesVirtual memory size in bytes.
linkerd_process_resident_memoryProcess Resident MemoryytesResident memory size in bytes.