Skip to content

Commit d564d96

Browse files
Merge pull request #59 from alanconway/user-doc
doc: First draft of panel user guide for upstream.
2 parents 3318ee1 + 2f7e519 commit d564d96

4 files changed

Lines changed: 69 additions & 0 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
This plugin is used to add the Troubleshooting Panel to view Korrel8r data. It is currently under construction and shows a new tab under observe.
44

5+
The [user guide](doc/README.adoc) describes the panel from a user perspective, this README is for developers.
6+
57
## Docker image
68

79
Before you can deploy your plugin on a cluster, you must build an image and

doc/README.adoc

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
= Troubleshooting Panel User Guide
2+
:doctype: book
3+
:toc: left
4+
5+
The troubleshooting panel displays a graph of related resources and observability signals.
6+
Clicking on a node in the graph opens a console page showing the details of each resource or signal.
7+
Nodes in the graph represent a resource or signal type, edges represent relationships.
8+
9+
The panel provides a map of related information, so you can navigate more quickly to relevant data.
10+
It may also help to find related information that you were not aware of.
11+
12+
Lets consider the example of troubleshooting an Alert on the OCP console.
13+
14+
== Opening the panel
15+
16+
First open the alert of interest in the console.
17+
Now open the troubleshooting panel [FIXME global button]
18+
19+
Opening panel shows a _neighbourhood_ of the resource currently displayed in the console.
20+
A neighbourhood graph starts at the current resource, and includes related objects up to
21+
3 steps away from the starting point.
22+
23+
NOTE: Not all resource types are currently supported, more will be added in future.
24+
For an unsupported resource, the panel will be empty.
25+
26+
[.border]
27+
image::images/panel-graph.png[]
28+
29+
30+
<1> Alert(1) node represents the starting point alert in the console. TYPE OF ALERT
31+
<2> Pod(1) indicates that there is a single Pod resource associated with this alert. Clicking on this node will open a console search showing the related pod directly.
32+
<3> Event(2) there are two kuberenetes events associated with the Pod, you can see them by clicking this node.
33+
<3> Logs(74) The pod has emitted logs, click to jump to them.
34+
<4> Metrics(105) There are many metrics associated with every Pod.
35+
<6> Network(6) shows that there are network events, which means the pod has communicated over the network. The remaining nodes are the Service, Deployment and DaemonSet that the pod has communicated with.
36+
<7> Focus: Clicking on nodes in the graph will change what is shown in the main console page, but the graph will not change.
37+
You can also navigate using links on the console page while the panel is open.
38+
To update the graph, click "Focus". This will draw a new graph using the resource shown in the main page as the starting point.
39+
<8> Show Query enables some experimental features, see below.
40+
41+
NOTE: Clicking on a node may sometimes show fewer results than are indicated on the graph. This is a known issue that will be addressed in future.
42+
43+
44+
== Experimental features
45+
46+
[.border]
47+
image::images/query-details.png[]
48+
49+
<1> Hide Query hides the experimental features.
50+
<2> The "Korrel8r query" that identifies the starting point for the graph. This query language is experimental and will change in future.
51+
It is updated by the "Focus" button to correspond to the resources in the main console window. (TODO upstream reference or no?)
52+
<3> Neighbourhood depth: increase or decrease to see a smaller or larger neighbourhood.
53+
Note: setting a large value in a large cluster may cause the query to fail if the number of results is too big.
54+
<4> Goal class: Selecting this option will do a _goal directed search_ instead of a neighbourhood search.
55+
A goal directed search will show all paths from the starting point to the goal _class_ , which indicates a type of resource or signal.
56+
The format of the goal class is experimental and may change. Currently valid goals are
57+
- `k8s:RESOURCE[VERSION.[GROUP]]` - identifies a Kind of kuberenetes resource. For example `k8s:Pod` or `k8s:Deployment.apps.v1`.
58+
- `alert:alert` - any alert.
59+
- `metric:metric` - any metric.
60+
- `netflow:network` - any netobserv network event.
61+
- `log:LOG_TYPE` - LOG_TYPE must be `application`, `infrastructure` or `audit`
62+
63+
== Optional signal stores
64+
65+
The panel will show the resources and signals that are installed for your cluster.
66+
Kuberenetes resources, alerts and metrics are always available in OCP.
67+
Other signals are optional: logs or network flow events will only appear if Openshift Logging or Network Observabilty are installed.

doc/images/panel-graph.png

49.7 KB
Loading

doc/images/query-details.png

31.1 KB
Loading

0 commit comments

Comments
 (0)