Commit bd516ff
authored
[Infra] Add OTel metric charts to Hosts View (#229488)
closes [#226333](#226333)
## Summary
This PR adds Otel system metrics Lens formulas and enables them on the
hosts view
**ecs:**
<img width="900" height="645" alt="image"
src="https://github.com/user-attachments/assets/e79ac886-f398-41d4-99a3-eaeeeb598596"
/>
<img width="900" height="615" alt="image"
src="https://github.com/user-attachments/assets/586a6793-d536-4f0e-8ed5-6a9cc801e1ca"
/>
<img width="900" height="501" alt="image"
src="https://github.com/user-attachments/assets/fc52ea34-62e2-4c31-89b2-e1e2185849c8"
/>
<img width="900" height="176" alt="image"
src="https://github.com/user-attachments/assets/45e95934-400a-4f0f-b46d-656011affea8"
/>
**semconv:**
<img width="900" height="650" alt="image"
src="https://github.com/user-attachments/assets/6b4fb7f3-f81b-4e24-afab-a1efb7581d4b"
/>
<img width="900" height="635" alt="image"
src="https://github.com/user-attachments/assets/1ed5d709-d129-4737-883f-4b4b0518b5c1"
/>
<img width="900" height="501" alt="image"
src="https://github.com/user-attachments/assets/83eac473-f8f3-4fd8-8244-f9abca55ee07"
/>
<img width="900" height="177" alt="image"
src="https://github.com/user-attachments/assets/6985b0c6-de80-41eb-8ee4-60cf0ca861f4"
/>
>[!NOTE]
>Disk Space Available metric value is not the same between otel and
semconv, and that is because of the difference in how the `filesystem`
scrapper collects the same data
Here is the data broken down by mount point to help understand what
happens
| otel | beats |
|------|-----|
|<img width="861" height="496" alt="image"
src="https://github.com/user-attachments/assets/62a7e073-e661-40fa-8a0b-45d70edce714"
/>|<img width="1178" height="520" alt="image"
src="https://github.com/user-attachments/assets/d968f3f3-0cde-41c1-8984-424fbfa69df5"
/>|
### How to test:
- Clone:
https://github.com/crespocarlos/elastic-stack-docker-compose/tree/inframetricsreceiver-removal-test-env
- Spin up the docker containers
- Connect your local kibana to the elasticsearch container
- Set the `xpack.infra.featureFlags.hostOtelEnabled: true`
- Navigate to Infrastructure > Hosts1 parent c0a4d95 commit bd516ff
File tree
29 files changed
+778
-606
lines changed- x-pack
- platform/plugins/private/translations/translations
- solutions/observability/plugins
- infra/public
- components/asset_details
- components/kpis
- hooks
- pages/metrics/hosts
- components
- kpis
- tabs/metrics
- hooks
- metrics_data_access/common/inventory_models
- host/metrics
- charts
- formulas
- snapshot
- kubernetes/node/metrics/charts
29 files changed
+778
-606
lines changedLines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25897 | 25897 | | |
25898 | 25898 | | |
25899 | 25899 | | |
25900 | | - | |
25901 | 25900 | | |
25902 | 25901 | | |
25903 | 25902 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25928 | 25928 | | |
25929 | 25929 | | |
25930 | 25930 | | |
25931 | | - | |
25932 | 25931 | | |
25933 | 25932 | | |
25934 | 25933 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25918 | 25918 | | |
25919 | 25919 | | |
25920 | 25920 | | |
25921 | | - | |
25922 | 25921 | | |
25923 | 25922 | | |
25924 | 25923 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| 24 | + | |
| 25 | + | |
23 | 26 | | |
24 | 27 | | |
25 | 28 | | |
| |||
30 | 33 | | |
31 | 34 | | |
32 | 35 | | |
| 36 | + | |
33 | 37 | | |
34 | 38 | | |
35 | 39 | | |
36 | 40 | | |
| 41 | + | |
37 | 42 | | |
38 | 43 | | |
39 | 44 | | |
| |||
Lines changed: 38 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
| 9 | + | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| |||
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
26 | 32 | | |
27 | 33 | | |
28 | 34 | | |
| |||
31 | 37 | | |
32 | 38 | | |
33 | 39 | | |
34 | | - | |
| 40 | + | |
35 | 41 | | |
36 | 42 | | |
37 | 43 | | |
38 | 44 | | |
39 | 45 | | |
40 | 46 | | |
41 | 47 | | |
| 48 | + | |
42 | 49 | | |
43 | 50 | | |
44 | 51 | | |
| 52 | + | |
45 | 53 | | |
46 | | - | |
| 54 | + | |
47 | 55 | | |
48 | 56 | | |
49 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
50 | 64 | | |
51 | 65 | | |
52 | | - | |
| 66 | + | |
53 | 67 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
58 | 72 | | |
59 | 73 | | |
60 | 74 | | |
| |||
67 | 81 | | |
68 | 82 | | |
69 | 83 | | |
70 | | - | |
| 84 | + | |
71 | 85 | | |
72 | 86 | | |
73 | 87 | | |
| |||
83 | 97 | | |
84 | 98 | | |
85 | 99 | | |
| 100 | + | |
86 | 101 | | |
87 | 102 | | |
88 | 103 | | |
89 | 104 | | |
| 105 | + | |
90 | 106 | | |
91 | 107 | | |
92 | 108 | | |
93 | 109 | | |
94 | 110 | | |
95 | | - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
96 | 114 | | |
97 | 115 | | |
98 | 116 | | |
| |||
110 | 128 | | |
111 | 129 | | |
112 | 130 | | |
113 | | - | |
| 131 | + | |
114 | 132 | | |
115 | 133 | | |
116 | 134 | | |
117 | 135 | | |
118 | 136 | | |
119 | 137 | | |
120 | 138 | | |
| 139 | + | |
121 | 140 | | |
122 | 141 | | |
123 | 142 | | |
| 143 | + | |
124 | 144 | | |
125 | 145 | | |
126 | | - | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
127 | 150 | | |
128 | 151 | | |
129 | 152 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
18 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
19 | 24 | | |
20 | 25 | | |
21 | 26 | | |
| |||
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
153 | 154 | | |
154 | 155 | | |
155 | 156 | | |
| 157 | + | |
156 | 158 | | |
157 | 159 | | |
158 | 160 | | |
159 | 161 | | |
160 | | - | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
161 | 169 | | |
162 | 170 | | |
163 | 171 | | |
| |||
496 | 504 | | |
497 | 505 | | |
498 | 506 | | |
| 507 | + | |
499 | 508 | | |
500 | 509 | | |
501 | 510 | | |
| |||
Lines changed: 12 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
14 | 21 | | |
15 | 22 | | |
16 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
17 | 26 | | |
18 | 27 | | |
19 | 28 | | |
| |||
47 | 56 | | |
48 | 57 | | |
49 | 58 | | |
50 | | - | |
| 59 | + | |
51 | 60 | | |
52 | 61 | | |
53 | 62 | | |
0 commit comments