Documentation ¶
Index ¶
Constants ¶
const ( DefaultQuantile = 0.95 // 95th percentile TF = "2006-01-02 15:04:05" // TF is the TimeFormat for printing timestamp )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Appender ¶
type Appender interface { // AppendGraph performs the appender work on the provided traffic map. The map // may be initially empty. An appender is allowed to add or remove map entries. AppendGraph(trafficMap graph.TrafficMap, namespaceName string) }
Appender is implemented by any code offering to append a service graph with supplemental information. On error the appender should panic and it will be handled as an error response.
type DeadServiceAppender ¶
type DeadServiceAppender struct{}
DeadServiceAppender is responsible for removing from the graph any service nodes for which the service is undefined (presumably removed from K8S) and for which there is no traffic reported. (kiali-621)
func (DeadServiceAppender) AppendGraph ¶
func (a DeadServiceAppender) AppendGraph(trafficMap graph.TrafficMap, _ string)
AppendGraph implements Appender
type HealthAppender ¶
type HealthAppender struct{}
func (HealthAppender) AppendGraph ¶
func (a HealthAppender) AppendGraph(trafficMap graph.TrafficMap, _ string)
AppendGraph implements Appender. It appends Health information to nodes flagged as "isHealthIndicator"="true".
type IstioAppender ¶
type IstioAppender struct{}
func (IstioAppender) AppendGraph ¶
func (a IstioAppender) AppendGraph(trafficMap graph.TrafficMap, namespaceName string)
AppendGraph implements Appender
type ResponseTimeAppender ¶
type ResponseTimeAppender struct { Duration time.Duration Quantile float64 QueryTime int64 // unix time in seconds }
ResponseTimeAppender is responsible for adding responseTime information to the graph. ResponseTime is represented as a percentile value. The default is 95th percentile, which means that 95% of requests executed in no more than the resulting milliseconds.
func (ResponseTimeAppender) AppendGraph ¶
func (a ResponseTimeAppender) AppendGraph(trafficMap graph.TrafficMap, namespace string)
AppendGraph implements Appender
type SidecarsCheckAppender ¶
type SidecarsCheckAppender struct{}
func (SidecarsCheckAppender) AppendGraph ¶
func (a SidecarsCheckAppender) AppendGraph(trafficMap graph.TrafficMap, _ string)
AppendGraph implements Appender
type UnusedServiceAppender ¶
type UnusedServiceAppender struct { }
func (UnusedServiceAppender) AppendGraph ¶
func (a UnusedServiceAppender) AppendGraph(trafficMap graph.TrafficMap, namespaceName string)
AppendGraph implements Appender