Skip to content

Commit 7c009e8

Browse files
committed
README: new-style profile info using explicit values
Signed-off-by: Shachar Sharon <ssharon@redhat.com>
1 parent 3ccf4fe commit 7c009e8

File tree

1 file changed

+181
-66
lines changed

1 file changed

+181
-66
lines changed

README.md

Lines changed: 181 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,20 @@ $ curl --request GET "http://localhost:9922/metrics"
3939
| `smb_share_byremote` | Number of shares used by each remote machine |
4040

4141

42-
## Profile metrics
42+
## Profile metrics (per operation)
43+
44+
| Metric name | Description |
45+
|----------------------------------------------|----------------------------------------------------------|
46+
| `smb_smb2_request_total` | Total number of SMB2 requests |
47+
| `smb_smb2_request_inbytes` | Bytes received for SMB2 requests |
48+
| `smb_smb2_request_outbytes` | Bytes replied for SMB2 requests |
49+
| `smb_smb2_request_duration_microseconds_sum` | Execution time in microseconds of SMB2 requests |
50+
| `smb_vfs_total` | Total number of calls to underlying VFS layer |
51+
| `smb_vfs_io_total` | Total number of I/O calls to underlying VFS layer |
52+
| `smb_vfs_io_bytes` | Number of bytes transferred via underlying VFS I/O layer |
53+
| `smb_vfs_io_duration_microseconds_sum` | Execution time in microseconds of VFS I/O requests |
4354

44-
| Metric name | Description |
45-
|---------------------------|--------------------------------------------------|
46-
| `smb_smb2_request_total` | Number of SMB2 requests |
47-
| `smb_vfs_call_total` | Number of calls to VFS layer |
48-
| `smb_vfs_io_call_total` | Number of I/O calls to VFS layer |
4955

50-
smb_vfs_call_total
5156
## Example
5257

5358
The following example is from a setup with 2 shares and 2 users connected and
@@ -91,63 +96,173 @@ When running with profile enabled, we get also the following metrics:
9196
```console
9297
# HELP smb_smb2_request_total Total number of SMB2 requests
9398
# TYPE smb_smb2_request_total gauge
94-
smb_smb2_request_total{idle="0",inbytes="0",operation="break",outbytes="0",time="0"} 0
95-
smb_smb2_request_total{idle="0",inbytes="0",operation="cancel",outbytes="0",time="0"} 0
96-
smb_smb2_request_total{idle="0",inbytes="0",operation="lock",outbytes="0",time="0"} 0
97-
smb_smb2_request_total{idle="0",inbytes="0",operation="logoff",outbytes="0",time="0"} 0
98-
smb_smb2_request_total{idle="0",inbytes="0",operation="notify",outbytes="0",time="0"} 0
99-
smb_smb2_request_total{idle="0",inbytes="0",operation="tdis",outbytes="0",time="0"} 0
100-
smb_smb2_request_total{idle="0",inbytes="1156",operation="keepalive",outbytes="1156",time="98"} 17
101-
smb_smb2_request_total{idle="0",inbytes="12995",operation="read",outbytes="232793072",time="102307"} 115
102-
smb_smb2_request_total{idle="0",inbytes="16852",operation="getinfo",outbytes="27754",time="26869"} 162
103-
smb_smb2_request_total{idle="0",inbytes="23069904",operation="write",outbytes="880",time="30958"} 11
104-
smb_smb2_request_total{idle="0",inbytes="240",operation="negprot",outbytes="268",time="4049881"} 1
105-
smb_smb2_request_total{idle="0",inbytes="240",operation="tcon",outbytes="160",time="97672"} 2
106-
smb_smb2_request_total{idle="0",inbytes="26312",operation="close",outbytes="37712",time="101378"} 299
107-
smb_smb2_request_total{idle="0",inbytes="295",operation="ioctl",outbytes="337",time="186"} 2
108-
smb_smb2_request_total{idle="0",inbytes="3136",operation="setinfo",outbytes="1740",time="56382"} 26
109-
smb_smb2_request_total{idle="0",inbytes="430",operation="sesssetup",outbytes="264",time="15242"} 2
110-
smb_smb2_request_total{idle="0",inbytes="74352",operation="create",outbytes="82692",time="705058"} 363
111-
smb_smb2_request_total{idle="0",inbytes="968",operation="flush",outbytes="748",time="1609"} 11
112-
smb_smb2_request_total{idle="0",inbytes="980",operation="find",outbytes="3629",time="19929"} 10
113-
# HELP smb_vfs_call_total Total number of calls to underlying VFS layer
114-
# TYPE smb_vfs_call_total gauge
115-
smb_vfs_call_total{operation="chdir",time="9045"} 209
116-
smb_vfs_call_total{operation="chmod",time="0"} 0
117-
smb_vfs_call_total{operation="close",time="12056"} 873
118-
smb_vfs_call_total{operation="closedir",time="3738"} 83
119-
smb_vfs_call_total{operation="createfile",time="0"} 0
120-
smb_vfs_call_total{operation="fallocate",time="0"} 0
121-
smb_vfs_call_total{operation="fchmod",time="603"} 11
122-
smb_vfs_call_total{operation="fchown",time="0"} 0
123-
smb_vfs_call_total{operation="fdopendir",time="1839"} 83
124-
smb_vfs_call_total{operation="fntimes",time="14315"} 22
125-
smb_vfs_call_total{operation="fstat",time="42921"} 1790
126-
smb_vfs_call_total{operation="fstatat",time="0"} 0
127-
smb_vfs_call_total{operation="ftruncate",time="0"} 0
128-
smb_vfs_call_total{operation="getwd",time="7"} 2
129-
smb_vfs_call_total{operation="lchown",time="0"} 0
130-
smb_vfs_call_total{operation="linkat",time="0"} 0
131-
smb_vfs_call_total{operation="lseek",time="0"} 0
132-
smb_vfs_call_total{operation="lstat",time="9"} 1
133-
smb_vfs_call_total{operation="mkdirat",time="2614"} 2
134-
smb_vfs_call_total{operation="mknodat",time="0"} 0
135-
smb_vfs_call_total{operation="open",time="0"} 0
136-
smb_vfs_call_total{operation="openat",time="138723"} 1034
137-
smb_vfs_call_total{operation="opendir",time="0"} 0
138-
smb_vfs_call_total{operation="readdir",time="305110"} 534
139-
smb_vfs_call_total{operation="readlinkat",time="0"} 0
140-
smb_vfs_call_total{operation="realpath",time="17"} 4
141-
smb_vfs_call_total{operation="renameat",time="22538"} 5
142-
smb_vfs_call_total{operation="rewinddir",time="0"} 0
143-
smb_vfs_call_total{operation="stat",time="42770"} 479
144-
smb_vfs_call_total{operation="symlinkat",time="0"} 0
145-
smb_vfs_call_total{operation="unlinkat",time="7843"} 10
146-
# HELP smb_vfs_io_call_total Total number of I/O calls to underlying VFS layer
147-
# TYPE smb_vfs_io_call_total gauge
148-
smb_vfs_io_call_total{bytes="0",idle="0",operation="pread",time="0"} 0
149-
smb_vfs_io_call_total{bytes="0",idle="0",operation="pwrite",time="0"} 0
150-
smb_vfs_io_call_total{bytes="0",idle="14",operation="asys_fsync",time="1416"} 11
151-
smb_vfs_io_call_total{bytes="23068672",idle="23",operation="asys_pwrite",time="29534"} 11
152-
smb_vfs_io_call_total{bytes="232783872",idle="267",operation="asys_pread",time="99338"} 115
99+
smb_smb2_request_total{operation="break"} 0
100+
smb_smb2_request_total{operation="cancel"} 0
101+
smb_smb2_request_total{operation="close"} 1347
102+
smb_smb2_request_total{operation="create"} 3378
103+
smb_smb2_request_total{operation="find"} 394
104+
smb_smb2_request_total{operation="flush"} 15
105+
smb_smb2_request_total{operation="getinfo"} 653
106+
smb_smb2_request_total{operation="ioctl"} 103
107+
smb_smb2_request_total{operation="keepalive"} 1
108+
smb_smb2_request_total{operation="lock"} 0
109+
smb_smb2_request_total{operation="logoff"} 0
110+
smb_smb2_request_total{operation="negprot"} 1
111+
smb_smb2_request_total{operation="notify"} 0
112+
smb_smb2_request_total{operation="read"} 228
113+
smb_smb2_request_total{operation="sesssetup"} 2
114+
smb_smb2_request_total{operation="setinfo"} 109
115+
smb_smb2_request_total{operation="tcon"} 2
116+
smb_smb2_request_total{operation="tdis"} 0
117+
smb_smb2_request_total{operation="write"} 145
118+
# HELP smb_smb2_request_inbytes Bytes received for SMB2 requests
119+
# TYPE smb_smb2_request_inbytes gauge
120+
smb_smb2_request_inbytes{operation="break"} 0
121+
smb_smb2_request_inbytes{operation="cancel"} 0
122+
smb_smb2_request_inbytes{operation="close"} 118536
123+
smb_smb2_request_inbytes{operation="create"} 716288
124+
smb_smb2_request_inbytes{operation="find"} 38612
125+
smb_smb2_request_inbytes{operation="flush"} 1320
126+
smb_smb2_request_inbytes{operation="getinfo"} 67916
127+
smb_smb2_request_inbytes{operation="ioctl"} 15313
128+
smb_smb2_request_inbytes{operation="keepalive"} 68
129+
smb_smb2_request_inbytes{operation="lock"} 0
130+
smb_smb2_request_inbytes{operation="logoff"} 0
131+
smb_smb2_request_inbytes{operation="negprot"} 240
132+
smb_smb2_request_inbytes{operation="notify"} 0
133+
smb_smb2_request_inbytes{operation="read"} 25764
134+
smb_smb2_request_inbytes{operation="sesssetup"} 430
135+
smb_smb2_request_inbytes{operation="setinfo"} 15528
136+
smb_smb2_request_inbytes{operation="tcon"} 240
137+
smb_smb2_request_inbytes{operation="tdis"} 0
138+
smb_smb2_request_inbytes{operation="write"} 8.272958e+06
139+
# HELP smb_smb2_request_outbytes Bytes replied for SMB2 requests
140+
# TYPE smb_smb2_request_outbytes gauge
141+
smb_smb2_request_outbytes{operation="break"} 0
142+
smb_smb2_request_outbytes{operation="cancel"} 0
143+
smb_smb2_request_outbytes{operation="close"} 170072
144+
smb_smb2_request_outbytes{operation="create"} 490469
145+
smb_smb2_request_outbytes{operation="find"} 91957
146+
smb_smb2_request_outbytes{operation="flush"} 1020
147+
smb_smb2_request_outbytes{operation="getinfo"} 142258
148+
smb_smb2_request_outbytes{operation="ioctl"} 13849
149+
smb_smb2_request_outbytes{operation="keepalive"} 68
150+
smb_smb2_request_outbytes{operation="lock"} 0
151+
smb_smb2_request_outbytes{operation="logoff"} 0
152+
smb_smb2_request_outbytes{operation="negprot"} 268
153+
smb_smb2_request_outbytes{operation="notify"} 0
154+
smb_smb2_request_outbytes{operation="read"} 1.6145173e+07
155+
smb_smb2_request_outbytes{operation="sesssetup"} 264
156+
smb_smb2_request_outbytes{operation="setinfo"} 7668
157+
smb_smb2_request_outbytes{operation="tcon"} 160
158+
smb_smb2_request_outbytes{operation="tdis"} 0
159+
smb_smb2_request_outbytes{operation="write"} 11600
160+
# HELP smb_smb2_request_duration_microseconds_sum Execution time in microseconds of SMB2 requests
161+
# TYPE smb_smb2_request_duration_microseconds_sum gauge
162+
smb_smb2_request_duration_microseconds_sum{operation="break"} 0
163+
smb_smb2_request_duration_microseconds_sum{operation="cancel"} 0
164+
smb_smb2_request_duration_microseconds_sum{operation="close"} 431570
165+
smb_smb2_request_duration_microseconds_sum{operation="create"} 7.244576e+06
166+
smb_smb2_request_duration_microseconds_sum{operation="find"} 310193
167+
smb_smb2_request_duration_microseconds_sum{operation="flush"} 149128
168+
smb_smb2_request_duration_microseconds_sum{operation="getinfo"} 59480
169+
smb_smb2_request_duration_microseconds_sum{operation="ioctl"} 14357
170+
smb_smb2_request_duration_microseconds_sum{operation="keepalive"} 4
171+
smb_smb2_request_duration_microseconds_sum{operation="lock"} 0
172+
smb_smb2_request_duration_microseconds_sum{operation="logoff"} 0
173+
smb_smb2_request_duration_microseconds_sum{operation="negprot"} 3.737457e+06
174+
smb_smb2_request_duration_microseconds_sum{operation="notify"} 0
175+
smb_smb2_request_duration_microseconds_sum{operation="read"} 30674
176+
smb_smb2_request_duration_microseconds_sum{operation="sesssetup"} 16994
177+
smb_smb2_request_duration_microseconds_sum{operation="setinfo"} 327027
178+
smb_smb2_request_duration_microseconds_sum{operation="tcon"} 192715
179+
smb_smb2_request_duration_microseconds_sum{operation="tdis"} 0
180+
smb_smb2_request_duration_microseconds_sum{operation="write"} 73739
181+
# HELP smb_vfs_io_bytes Number of bytes transferred via underlying VFS I/O layer
182+
# TYPE smb_vfs_io_bytes gauge
183+
smb_vfs_io_bytes{operation="asys_fsync"} 0
184+
smb_vfs_io_bytes{operation="asys_pread"} 1.6126933e+07
185+
smb_vfs_io_bytes{operation="asys_pwrite"} 8.256718e+06
186+
smb_vfs_io_bytes{operation="pread"} 0
187+
smb_vfs_io_bytes{operation="pwrite"} 0
188+
# HELP smb_vfs_io_duration_microseconds_sum Execution time in microseconds of VFS I/O requests
189+
# TYPE smb_vfs_io_duration_microseconds_sum gauge
190+
smb_vfs_io_duration_microseconds_sum{operation="asys_fsync"} 148760
191+
smb_vfs_io_duration_microseconds_sum{operation="asys_pread"} 26798
192+
smb_vfs_io_duration_microseconds_sum{operation="asys_pwrite"} 68615
193+
smb_vfs_io_duration_microseconds_sum{operation="pread"} 0
194+
smb_vfs_io_duration_microseconds_sum{operation="pwrite"} 0
195+
# HELP smb_vfs_io_total Total number of I/O calls to underlying VFS layer
196+
# TYPE smb_vfs_io_total gauge
197+
smb_vfs_io_total{operation="asys_fsync"} 15
198+
smb_vfs_io_total{operation="asys_pread"} 228
199+
smb_vfs_io_total{operation="asys_pwrite"} 145
200+
smb_vfs_io_total{operation="pread"} 0
201+
smb_vfs_io_total{operation="pwrite"} 0
202+
# HELP smb_vfs_total Total number of calls to underlying VFS layer
203+
# TYPE smb_vfs_total gauge
204+
smb_vfs_total{operation="chdir"} 810
205+
smb_vfs_total{operation="chmod"} 0
206+
smb_vfs_total{operation="close"} 23138
207+
smb_vfs_total{operation="closedir"} 2403
208+
smb_vfs_total{operation="createfile"} 0
209+
smb_vfs_total{operation="fallocate"} 0
210+
smb_vfs_total{operation="fchmod"} 79
211+
smb_vfs_total{operation="fchown"} 0
212+
smb_vfs_total{operation="fdopendir"} 2403
213+
smb_vfs_total{operation="fntimes"} 107
214+
smb_vfs_total{operation="fstat"} 18204
215+
smb_vfs_total{operation="fstatat"} 0
216+
smb_vfs_total{operation="ftruncate"} 12
217+
smb_vfs_total{operation="getwd"} 2
218+
smb_vfs_total{operation="lchown"} 0
219+
smb_vfs_total{operation="linkat"} 16
220+
smb_vfs_total{operation="lseek"} 0
221+
smb_vfs_total{operation="lstat"} 29
222+
smb_vfs_total{operation="mkdirat"} 58
223+
smb_vfs_total{operation="mknodat"} 0
224+
smb_vfs_total{operation="open"} 0
225+
smb_vfs_total{operation="openat"} 27689
226+
smb_vfs_total{operation="opendir"} 0
227+
smb_vfs_total{operation="readdir"} 24129
228+
smb_vfs_total{operation="readlinkat"} 0
229+
smb_vfs_total{operation="realpath"} 4
230+
smb_vfs_total{operation="renameat"} 76
231+
smb_vfs_total{operation="rewinddir"} 0
232+
smb_vfs_total{operation="stat"} 2049
233+
smb_vfs_total{operation="symlinkat"} 0
234+
smb_vfs_total{operation="unlinkat"} 110
235+
# HELP smb_vfs_duration_microseconds_sum Execution time in microseconds of VFS requests
236+
# TYPE smb_vfs_duration_microseconds_sum gauge
237+
smb_vfs_duration_microseconds_sum{operation="chdir"} 12524
238+
smb_vfs_duration_microseconds_sum{operation="chmod"} 0
239+
smb_vfs_duration_microseconds_sum{operation="close"} 55989
240+
smb_vfs_duration_microseconds_sum{operation="closedir"} 63982
241+
smb_vfs_duration_microseconds_sum{operation="createfile"} 0
242+
smb_vfs_duration_microseconds_sum{operation="fallocate"} 0
243+
smb_vfs_duration_microseconds_sum{operation="fchmod"} 2447
244+
smb_vfs_duration_microseconds_sum{operation="fchown"} 0
245+
smb_vfs_duration_microseconds_sum{operation="fdopendir"} 39712
246+
smb_vfs_duration_microseconds_sum{operation="fntimes"} 16961
247+
smb_vfs_duration_microseconds_sum{operation="fstat"} 157620
248+
smb_vfs_duration_microseconds_sum{operation="fstatat"} 0
249+
smb_vfs_duration_microseconds_sum{operation="ftruncate"} 180999
250+
smb_vfs_duration_microseconds_sum{operation="getwd"} 6
251+
smb_vfs_duration_microseconds_sum{operation="lchown"} 0
252+
smb_vfs_duration_microseconds_sum{operation="linkat"} 11593
253+
smb_vfs_duration_microseconds_sum{operation="lseek"} 0
254+
smb_vfs_duration_microseconds_sum{operation="lstat"} 828
255+
smb_vfs_duration_microseconds_sum{operation="mkdirat"} 40445
256+
smb_vfs_duration_microseconds_sum{operation="mknodat"} 0
257+
smb_vfs_duration_microseconds_sum{operation="open"} 0
258+
smb_vfs_duration_microseconds_sum{operation="openat"} 790532
259+
smb_vfs_duration_microseconds_sum{operation="opendir"} 0
260+
smb_vfs_duration_microseconds_sum{operation="readdir"} 5.27503e+06
261+
smb_vfs_duration_microseconds_sum{operation="readlinkat"} 0
262+
smb_vfs_duration_microseconds_sum{operation="realpath"} 20
263+
smb_vfs_duration_microseconds_sum{operation="renameat"} 253650
264+
smb_vfs_duration_microseconds_sum{operation="rewinddir"} 0
265+
smb_vfs_duration_microseconds_sum{operation="stat"} 131346
266+
smb_vfs_duration_microseconds_sum{operation="symlinkat"} 0
267+
smb_vfs_duration_microseconds_sum{operation="unlinkat"} 106974
153268
```

0 commit comments

Comments
 (0)