...

Package cmd

import "github.com/linkerd/linkerd2/viz/cmd"
Overview
Index

Overview ▾

Constants

const (
    // ExtensionName is the value that the viz extension resources should be labeled with
    ExtensionName = "viz"

    // LegacyExtensionName is the value that the viz extension resources were labeled with
    // until 15d1809bd043192bb21cacbc96112cce35bf384f
    LegacyExtensionName = "linkerd-viz"
)

func NewCmdAuthz

func NewCmdAuthz() *cobra.Command

NewCmdAuthz creates a new cobra command `authz`

func NewCmdCheck

func NewCmdCheck() *cobra.Command

NewCmdCheck generates a new cobra command for the viz extension.

func NewCmdDashboard

func NewCmdDashboard() *cobra.Command

NewCmdDashboard creates a new cobra command `dashboard` which contains commands for visualizing linkerd's dashboards. After validating flag values, it will use the Kubernetes API to portforward requests to the Grafana and Web Deployments until the process gets killed/canceled

func NewCmdEdges

func NewCmdEdges() *cobra.Command

NewCmdEdges creates a new cobra command `edges` for edges functionality

func NewCmdRoutes

func NewCmdRoutes() *cobra.Command

NewCmdRoutes creates a new cobra command `routes` for routes functionality

func NewCmdStat

func NewCmdStat() *cobra.Command

NewCmdStat creates a new cobra command `stat` for stat functionality

func NewCmdTap

func NewCmdTap() *cobra.Command

NewCmdTap creates a new cobra command `tap` for tap functionality

func NewCmdTop

func NewCmdTop() *cobra.Command

NewCmdTop creates a new cobra command `top` for top functionality

func NewCmdViz

func NewCmdViz() *cobra.Command

NewCmdViz returns a new jaeger command

func WithJsonPath

func WithJsonPath(jsonPath string) renderOptions

type JSONRouteStats

JSONRouteStats represents the JSON output of the routes command Using pointers there where the value is NA and the corresponding json is null

type JSONRouteStats struct {
    Route            string   `json:"route"`
    Authority        string   `json:"authority"`
    Success          *float64 `json:"success,omitempty"`
    Rps              *float64 `json:"rps,omitempty"`
    EffectiveSuccess *float64 `json:"effective_success,omitempty"`
    EffectiveRps     *float64 `json:"effective_rps,omitempty"`
    ActualSuccess    *float64 `json:"actual_success,omitempty"`
    ActualRps        *float64 `json:"actual_rps,omitempty"`
    LatencyMSp50     *uint64  `json:"latency_ms_p50"`
    LatencyMSp95     *uint64  `json:"latency_ms_p95"`
    LatencyMSp99     *uint64  `json:"latency_ms_p99"`
}