Linkerd is an open source service mesh designed to be deployed into a variety of container schedulers and frameworks such as kubernetes.
Prerequisite
- Edit the file
agent/packaging/kubernetes/opsramp/agent/conf/app/metrics/linkerd/auto-monitoring.yaml
- 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 Metric | Metric Display Name | Unit | Description |
---|---|---|---|
linkerd_request_total | Request Total | requests/second | Total count of HTTP requests. |
linkerd_response_latency | Response Latency | milliseconds | Avg Elapsed times between a request's headers being received and its response stream completing since last pool. |
linkerd_response_total | Response Total | responses/second | Total count of HTTP responses. |
linkerd_retry_skipped_total | Retry Skipped Total | responses/second | Total count of retryable HTTP responses that were not retried. |
linkerd_route_request_total | Route Request Total | requests/second | Total count of route HTTP requests. |
linkerd_route_response_latency | Route Response Latency | milliseconds | Avg Elapsed times between a route request's headers being received and its response stream completing since last pool. |
linkerd_route_response_total | Route Response Total | responses/second | Total count of route HTTP responses. |
linkerd_route_retry_skipped_total | Route Retry Skipped Total | responses/second | Total count of retryable route HTTP responses that were not retried. |
linkerd_route_actual_request_total | Route Actual Request Total | requests/second | Total count of actual route HTTP requests. |
linkerd_route_actual_response_latency | Route Actual Response Latency | milliseconds | Avg Elapsed times between a actual route request's headers being received and its response stream completing since last pool. |
linkerd_route_actual_response_total | Route Actual Response Total | responses/second | Total count of actual route HTTP responses. |
linkerd_route_actual_retry_skipped_total | Route Actual Retry Skipped Total | responses/second | Total count of retryable actual route HTTP responses that were not retried. |
linkerd_tcp_open_total | Tcp Open Total | connections/second | Total count of opened connections. |
linkerd_tcp_open_connections | Tcp Open Connections | Connections | Number of currently-open connections. |
linkerd_tcp_read_bytes_total | Tcp Read Bytes Total | bytes/second | Total count of bytes read from peers. |
linkerd_tcp_write_bytes_total | Tcp Write Bytes Total | bytes/second | Total count of bytes written to peers. |
linkerd_tcp_close_total | Tcp Close Total | connections/second | Total count of closed connections. |
linkerd_tcp_connection_duration | Tcp Connection Duration | milliseconds | Avg Connection lifetimes since last pool. |
linkerd_control_request_total | Control Request Total | requests/second | Total count of control HTTP requests. |
linkerd_control_response_latency | Control Response Latency | milliseconds | Avg Elapsed times between a control request's headers being received and its response stream completing since last pool. |
linkerd_control_response_total | Control Response Total | responses/second | Total count of control HTTP responses. |
linkerd_control_retry_skipped_total | Control Retry Skipped Total | responses/second | Total count of retryable control HTTP responses that were not retried. |
linkerd_process_start_time | Process Start Time | seconds | Time that the process started (in seconds since the UNIX epoch). |
linkerd_process_cpu_seconds_total | Process Cpu Seconds Total | seconds | Total user and system CPU time spent in seconds. |
linkerd_process_open_fds | Process Open Fds | Files | Number of open file descriptors. |
linkerd_process_max_fds | Process Max Fds | Files | Maximum number of open file descriptors. |
linkerd_process_virtual_memory | Process Virtual Memory | bytes | Virtual memory size in bytes. |
linkerd_process_resident_memory | Process Resident Memory | ytes | Resident memory size in bytes. |