diff options
author | Calle Pettersson <carlpett@users.noreply.github.com> | 2017-09-28 15:06:26 +0200 |
---|---|---|
committer | Johannes 'fish' Ziemke <github@freigeist.org> | 2017-09-28 15:06:26 +0200 |
commit | 859a825bb84bf4fb911fcba445d410965945f088 (patch) | |
tree | 0726b08cf03c790bff3a34a085cecc01e3b927e2 /collector/mountstats_linux.go | |
parent | 3762191e66e309106e930ab11f9c080fb4428001 (diff) | |
download | prometheus_node_collector-859a825bb84bf4fb911fcba445d410965945f088.tar.bz2 prometheus_node_collector-859a825bb84bf4fb911fcba445d410965945f088.tar.xz prometheus_node_collector-859a825bb84bf4fb911fcba445d410965945f088.zip |
Replace --collectors.enabled with per-collector flags (#640)
* Move NodeCollector into package collector
* Refactor collector enabling
* Update README with new collector enabled flags
* Fix out-of-date inline flag reference syntax
* Use new flags in end-to-end tests
* Add flag to disable all default collectors
* Track if a flag has been set explicitly
* Add --collectors.disable-defaults to README
* Revert disable-defaults flag
* Shorten flags
* Fixup timex collector registration
* Fix end-to-end tests
* Change procfs and sysfs path flags
* Fix review comments
Diffstat (limited to 'collector/mountstats_linux.go')
-rw-r--r-- | collector/mountstats_linux.go | 108 |
1 files changed, 54 insertions, 54 deletions
diff --git a/collector/mountstats_linux.go b/collector/mountstats_linux.go index f90543f..62e715d 100644 --- a/collector/mountstats_linux.go +++ b/collector/mountstats_linux.go | |||
@@ -90,7 +90,7 @@ type mountStatsCollector struct { | |||
90 | } | 90 | } |
91 | 91 | ||
92 | func init() { | 92 | func init() { |
93 | Factories["mountstats"] = NewMountStatsCollector | 93 | registerCollector("mountstats", defaultDisabled, NewMountStatsCollector) |
94 | } | 94 | } |
95 | 95 | ||
96 | // NewMountStatsCollector returns a new Collector exposing NFS statistics. | 96 | // NewMountStatsCollector returns a new Collector exposing NFS statistics. |
@@ -117,371 +117,371 @@ func NewMountStatsCollector() (Collector, error) { | |||
117 | 117 | ||
118 | return &mountStatsCollector{ | 118 | return &mountStatsCollector{ |
119 | NFSAgeSecondsTotal: prometheus.NewDesc( | 119 | NFSAgeSecondsTotal: prometheus.NewDesc( |
120 | prometheus.BuildFQName(Namespace, subsystem, "age_seconds_total"), | 120 | prometheus.BuildFQName(namespace, subsystem, "age_seconds_total"), |
121 | "The age of the NFS mount in seconds.", | 121 | "The age of the NFS mount in seconds.", |
122 | labels, | 122 | labels, |
123 | nil, | 123 | nil, |
124 | ), | 124 | ), |
125 | 125 | ||
126 | NFSReadBytesTotal: prometheus.NewDesc( | 126 | NFSReadBytesTotal: prometheus.NewDesc( |
127 | prometheus.BuildFQName(Namespace, subsystem, "read_bytes_total"), | 127 | prometheus.BuildFQName(namespace, subsystem, "read_bytes_total"), |
128 | "Number of bytes read using the read() syscall.", | 128 | "Number of bytes read using the read() syscall.", |
129 | labels, | 129 | labels, |
130 | nil, | 130 | nil, |
131 | ), | 131 | ), |
132 | 132 | ||
133 | NFSWriteBytesTotal: prometheus.NewDesc( | 133 | NFSWriteBytesTotal: prometheus.NewDesc( |
134 | prometheus.BuildFQName(Namespace, subsystem, "write_bytes_total"), | 134 | prometheus.BuildFQName(namespace, subsystem, "write_bytes_total"), |
135 | "Number of bytes written using the write() syscall.", | 135 | "Number of bytes written using the write() syscall.", |
136 | labels, | 136 | labels, |
137 | nil, | 137 | nil, |
138 | ), | 138 | ), |
139 | 139 | ||
140 | NFSDirectReadBytesTotal: prometheus.NewDesc( | 140 | NFSDirectReadBytesTotal: prometheus.NewDesc( |
141 | prometheus.BuildFQName(Namespace, subsystem, "direct_read_bytes_total"), | 141 | prometheus.BuildFQName(namespace, subsystem, "direct_read_bytes_total"), |
142 | "Number of bytes read using the read() syscall in O_DIRECT mode.", | 142 | "Number of bytes read using the read() syscall in O_DIRECT mode.", |
143 | labels, | 143 | labels, |
144 | nil, | 144 | nil, |
145 | ), | 145 | ), |
146 | 146 | ||
147 | NFSDirectWriteBytesTotal: prometheus.NewDesc( | 147 | NFSDirectWriteBytesTotal: prometheus.NewDesc( |
148 | prometheus.BuildFQName(Namespace, subsystem, "direct_write_bytes_total"), | 148 | prometheus.BuildFQName(namespace, subsystem, "direct_write_bytes_total"), |
149 | "Number of bytes written using the write() syscall in O_DIRECT mode.", | 149 | "Number of bytes written using the write() syscall in O_DIRECT mode.", |
150 | labels, | 150 | labels, |
151 | nil, | 151 | nil, |
152 | ), | 152 | ), |
153 | 153 | ||
154 | NFSTotalReadBytesTotal: prometheus.NewDesc( | 154 | NFSTotalReadBytesTotal: prometheus.NewDesc( |
155 | prometheus.BuildFQName(Namespace, subsystem, "total_read_bytes_total"), | 155 | prometheus.BuildFQName(namespace, subsystem, "total_read_bytes_total"), |
156 | "Number of bytes read from the NFS server, in total.", | 156 | "Number of bytes read from the NFS server, in total.", |
157 | labels, | 157 | labels, |
158 | nil, | 158 | nil, |
159 | ), | 159 | ), |
160 | 160 | ||
161 | NFSTotalWriteBytesTotal: prometheus.NewDesc( | 161 | NFSTotalWriteBytesTotal: prometheus.NewDesc( |
162 | prometheus.BuildFQName(Namespace, subsystem, "total_write_bytes_total"), | 162 | prometheus.BuildFQName(namespace, subsystem, "total_write_bytes_total"), |
163 | "Number of bytes written to the NFS server, in total.", | 163 | "Number of bytes written to the NFS server, in total.", |
164 | labels, | 164 | labels, |
165 | nil, | 165 | nil, |
166 | ), | 166 | ), |
167 | 167 | ||
168 | NFSReadPagesTotal: prometheus.NewDesc( | 168 | NFSReadPagesTotal: prometheus.NewDesc( |
169 | prometheus.BuildFQName(Namespace, subsystem, "read_pages_total"), | 169 | prometheus.BuildFQName(namespace, subsystem, "read_pages_total"), |
170 | "Number of pages read directly via mmap()'d files.", | 170 | "Number of pages read directly via mmap()'d files.", |
171 | labels, | 171 | labels, |
172 | nil, | 172 | nil, |
173 | ), | 173 | ), |
174 | 174 | ||
175 | NFSWritePagesTotal: prometheus.NewDesc( | 175 | NFSWritePagesTotal: prometheus.NewDesc( |
176 | prometheus.BuildFQName(Namespace, subsystem, "write_pages_total"), | 176 | prometheus.BuildFQName(namespace, subsystem, "write_pages_total"), |
177 | "Number of pages written directly via mmap()'d files.", | 177 | "Number of pages written directly via mmap()'d files.", |
178 | labels, | 178 | labels, |
179 | nil, | 179 | nil, |
180 | ), | 180 | ), |
181 | 181 | ||
182 | NFSTransportBindTotal: prometheus.NewDesc( | 182 | NFSTransportBindTotal: prometheus.NewDesc( |
183 | prometheus.BuildFQName(Namespace, subsystem, "transport_bind_total"), | 183 | prometheus.BuildFQName(namespace, subsystem, "transport_bind_total"), |
184 | "Number of times the client has had to establish a connection from scratch to the NFS server.", | 184 | "Number of times the client has had to establish a connection from scratch to the NFS server.", |
185 | labels, | 185 | labels, |
186 | nil, | 186 | nil, |
187 | ), | 187 | ), |
188 | 188 | ||
189 | NFSTransportConnectTotal: prometheus.NewDesc( | 189 | NFSTransportConnectTotal: prometheus.NewDesc( |
190 | prometheus.BuildFQName(Namespace, subsystem, "transport_connect_total"), | 190 | prometheus.BuildFQName(namespace, subsystem, "transport_connect_total"), |
191 | "Number of times the client has made a TCP connection to the NFS server.", | 191 | "Number of times the client has made a TCP connection to the NFS server.", |
192 | labels, | 192 | labels, |
193 | nil, | 193 | nil, |
194 | ), | 194 | ), |
195 | 195 | ||
196 | NFSTransportIdleTimeSeconds: prometheus.NewDesc( | 196 | NFSTransportIdleTimeSeconds: prometheus.NewDesc( |
197 | prometheus.BuildFQName(Namespace, subsystem, "transport_idle_time_seconds"), | 197 | prometheus.BuildFQName(namespace, subsystem, "transport_idle_time_seconds"), |
198 | "Duration since the NFS mount last saw any RPC traffic, in seconds.", | 198 | "Duration since the NFS mount last saw any RPC traffic, in seconds.", |
199 | labels, | 199 | labels, |
200 | nil, | 200 | nil, |
201 | ), | 201 | ), |
202 | 202 | ||
203 | NFSTransportSendsTotal: prometheus.NewDesc( | 203 | NFSTransportSendsTotal: prometheus.NewDesc( |
204 | prometheus.BuildFQName(Namespace, subsystem, "transport_sends_total"), | 204 | prometheus.BuildFQName(namespace, subsystem, "transport_sends_total"), |
205 | "Number of RPC requests for this mount sent to the NFS server.", | 205 | "Number of RPC requests for this mount sent to the NFS server.", |
206 | labels, | 206 | labels, |
207 | nil, | 207 | nil, |
208 | ), | 208 | ), |
209 | 209 | ||
210 | NFSTransportReceivesTotal: prometheus.NewDesc( | 210 | NFSTransportReceivesTotal: prometheus.NewDesc( |
211 | prometheus.BuildFQName(Namespace, subsystem, "transport_receives_total"), | 211 | prometheus.BuildFQName(namespace, subsystem, "transport_receives_total"), |
212 | "Number of RPC responses for this mount received from the NFS server.", | 212 | "Number of RPC responses for this mount received from the NFS server.", |
213 | labels, | 213 | labels, |
214 | nil, | 214 | nil, |
215 | ), | 215 | ), |
216 | 216 | ||
217 | NFSTransportBadTransactionIDsTotal: prometheus.NewDesc( | 217 | NFSTransportBadTransactionIDsTotal: prometheus.NewDesc( |
218 | prometheus.BuildFQName(Namespace, subsystem, "transport_bad_transaction_ids_total"), | 218 | prometheus.BuildFQName(namespace, subsystem, "transport_bad_transaction_ids_total"), |
219 | "Number of times the NFS server sent a response with a transaction ID unknown to this client.", | 219 | "Number of times the NFS server sent a response with a transaction ID unknown to this client.", |
220 | labels, | 220 | labels, |
221 | nil, | 221 | nil, |
222 | ), | 222 | ), |
223 | 223 | ||
224 | NFSTransportBacklogQueueTotal: prometheus.NewDesc( | 224 | NFSTransportBacklogQueueTotal: prometheus.NewDesc( |
225 | prometheus.BuildFQName(Namespace, subsystem, "transport_backlog_queue_total"), | 225 | prometheus.BuildFQName(namespace, subsystem, "transport_backlog_queue_total"), |
226 | "Total number of items added to the RPC backlog queue.", | 226 | "Total number of items added to the RPC backlog queue.", |
227 | labels, | 227 | labels, |
228 | nil, | 228 | nil, |
229 | ), | 229 | ), |
230 | 230 | ||
231 | NFSTransportMaximumRPCSlots: prometheus.NewDesc( | 231 | NFSTransportMaximumRPCSlots: prometheus.NewDesc( |
232 | prometheus.BuildFQName(Namespace, subsystem, "transport_maximum_rpc_slots"), | 232 | prometheus.BuildFQName(namespace, subsystem, "transport_maximum_rpc_slots"), |
233 | "Maximum number of simultaneously active RPC requests ever used.", | 233 | "Maximum number of simultaneously active RPC requests ever used.", |
234 | labels, | 234 | labels, |
235 | nil, | 235 | nil, |
236 | ), | 236 | ), |
237 | 237 | ||
238 | NFSTransportSendingQueueTotal: prometheus.NewDesc( | 238 | NFSTransportSendingQueueTotal: prometheus.NewDesc( |
239 | prometheus.BuildFQName(Namespace, subsystem, "transport_sending_queue_total"), | 239 | prometheus.BuildFQName(namespace, subsystem, "transport_sending_queue_total"), |
240 | "Total number of items added to the RPC transmission sending queue.", | 240 | "Total number of items added to the RPC transmission sending queue.", |
241 | labels, | 241 | labels, |
242 | nil, | 242 | nil, |
243 | ), | 243 | ), |
244 | 244 | ||
245 | NFSTransportPendingQueueTotal: prometheus.NewDesc( | 245 | NFSTransportPendingQueueTotal: prometheus.NewDesc( |
246 | prometheus.BuildFQName(Namespace, subsystem, "transport_pending_queue_total"), | 246 | prometheus.BuildFQName(namespace, subsystem, "transport_pending_queue_total"), |
247 | "Total number of items added to the RPC transmission pending queue.", | 247 | "Total number of items added to the RPC transmission pending queue.", |
248 | labels, | 248 | labels, |
249 | nil, | 249 | nil, |
250 | ), | 250 | ), |
251 | 251 | ||
252 | NFSOperationsRequestsTotal: prometheus.NewDesc( | 252 | NFSOperationsRequestsTotal: prometheus.NewDesc( |
253 | prometheus.BuildFQName(Namespace, subsystem, "operations_requests_total"), | 253 | prometheus.BuildFQName(namespace, subsystem, "operations_requests_total"), |
254 | "Number of requests performed for a given operation.", | 254 | "Number of requests performed for a given operation.", |
255 | opLabels, | 255 | opLabels, |
256 | nil, | 256 | nil, |
257 | ), | 257 | ), |
258 | 258 | ||
259 | NFSOperationsTransmissionsTotal: prometheus.NewDesc( | 259 | NFSOperationsTransmissionsTotal: prometheus.NewDesc( |
260 | prometheus.BuildFQName(Namespace, subsystem, "operations_transmissions_total"), | 260 | prometheus.BuildFQName(namespace, subsystem, "operations_transmissions_total"), |
261 | "Number of times an actual RPC request has been transmitted for a given operation.", | 261 | "Number of times an actual RPC request has been transmitted for a given operation.", |
262 | opLabels, | 262 | opLabels, |
263 | nil, | 263 | nil, |
264 | ), | 264 | ), |
265 | 265 | ||
266 | NFSOperationsMajorTimeoutsTotal: prometheus.NewDesc( | 266 | NFSOperationsMajorTimeoutsTotal: prometheus.NewDesc( |
267 | prometheus.BuildFQName(Namespace, subsystem, "operations_major_timeouts_total"), | 267 | prometheus.BuildFQName(namespace, subsystem, "operations_major_timeouts_total"), |
268 | "Number of times a request has had a major timeout for a given operation.", | 268 | "Number of times a request has had a major timeout for a given operation.", |
269 | opLabels, | 269 | opLabels, |
270 | nil, | 270 | nil, |
271 | ), | 271 | ), |
272 | 272 | ||
273 | NFSOperationsSentBytesTotal: prometheus.NewDesc( | 273 | NFSOperationsSentBytesTotal: prometheus.NewDesc( |
274 | prometheus.BuildFQName(Namespace, subsystem, "operations_sent_bytes_total"), | 274 | prometheus.BuildFQName(namespace, subsystem, "operations_sent_bytes_total"), |
275 | "Number of bytes sent for a given operation, including RPC headers and payload.", | 275 | "Number of bytes sent for a given operation, including RPC headers and payload.", |
276 | opLabels, | 276 | opLabels, |
277 | nil, | 277 | nil, |
278 | ), | 278 | ), |
279 | 279 | ||
280 | NFSOperationsReceivedBytesTotal: prometheus.NewDesc( | 280 | NFSOperationsReceivedBytesTotal: prometheus.NewDesc( |
281 | prometheus.BuildFQName(Namespace, subsystem, "operations_received_bytes_total"), | 281 | prometheus.BuildFQName(namespace, subsystem, "operations_received_bytes_total"), |
282 | "Number of bytes received for a given operation, including RPC headers and payload.", | 282 | "Number of bytes received for a given operation, including RPC headers and payload.", |
283 | opLabels, | 283 | opLabels, |
284 | nil, | 284 | nil, |
285 | ), | 285 | ), |
286 | 286 | ||
287 | NFSOperationsQueueTimeSecondsTotal: prometheus.NewDesc( | 287 | NFSOperationsQueueTimeSecondsTotal: prometheus.NewDesc( |
288 | prometheus.BuildFQName(Namespace, subsystem, "operations_queue_time_seconds_total"), | 288 | prometheus.BuildFQName(namespace, subsystem, "operations_queue_time_seconds_total"), |
289 | "Duration all requests spent queued for transmission for a given operation before they were sent, in seconds.", | 289 | "Duration all requests spent queued for transmission for a given operation before they were sent, in seconds.", |
290 | opLabels, | 290 | opLabels, |
291 | nil, | 291 | nil, |
292 | ), | 292 | ), |
293 | 293 | ||
294 | NFSOperationsResponseTimeSecondsTotal: prometheus.NewDesc( | 294 | NFSOperationsResponseTimeSecondsTotal: prometheus.NewDesc( |
295 | prometheus.BuildFQName(Namespace, subsystem, "operations_response_time_seconds_total"), | 295 | prometheus.BuildFQName(namespace, subsystem, "operations_response_time_seconds_total"), |
296 | "Duration all requests took to get a reply back after a request for a given operation was transmitted, in seconds.", | 296 | "Duration all requests took to get a reply back after a request for a given operation was transmitted, in seconds.", |
297 | opLabels, | 297 | opLabels, |
298 | nil, | 298 | nil, |
299 | ), | 299 | ), |
300 | 300 | ||
301 | NFSOperationsRequestTimeSecondsTotal: prometheus.NewDesc( | 301 | NFSOperationsRequestTimeSecondsTotal: prometheus.NewDesc( |
302 | prometheus.BuildFQName(Namespace, subsystem, "operations_request_time_seconds_total"), | 302 | prometheus.BuildFQName(namespace, subsystem, "operations_request_time_seconds_total"), |
303 | "Duration all requests took from when a request was enqueued to when it was completely handled for a given operation, in seconds.", | 303 | "Duration all requests took from when a request was enqueued to when it was completely handled for a given operation, in seconds.", |
304 | opLabels, | 304 | opLabels, |
305 | nil, | 305 | nil, |
306 | ), | 306 | ), |
307 | 307 | ||
308 | NFSEventInodeRevalidateTotal: prometheus.NewDesc( | 308 | NFSEventInodeRevalidateTotal: prometheus.NewDesc( |
309 | prometheus.BuildFQName(Namespace, subsystem, "event_inode_revalidate_total"), | 309 | prometheus.BuildFQName(namespace, subsystem, "event_inode_revalidate_total"), |
310 | "Number of times cached inode attributes are re-validated from the server.", | 310 | "Number of times cached inode attributes are re-validated from the server.", |
311 | labels, | 311 | labels, |
312 | nil, | 312 | nil, |
313 | ), | 313 | ), |
314 | 314 | ||
315 | NFSEventDnodeRevalidateTotal: prometheus.NewDesc( | 315 | NFSEventDnodeRevalidateTotal: prometheus.NewDesc( |
316 | prometheus.BuildFQName(Namespace, subsystem, "event_dnode_revalidate_total"), | 316 | prometheus.BuildFQName(namespace, subsystem, "event_dnode_revalidate_total"), |
317 | "Number of times cached dentry nodes are re-validated from the server.", | 317 | "Number of times cached dentry nodes are re-validated from the server.", |
318 | labels, | 318 | labels, |
319 | nil, | 319 | nil, |
320 | ), | 320 | ), |
321 | 321 | ||
322 | NFSEventDataInvalidateTotal: prometheus.NewDesc( | 322 | NFSEventDataInvalidateTotal: prometheus.NewDesc( |
323 | prometheus.BuildFQName(Namespace, subsystem, "event_data_invalidate_total"), | 323 | prometheus.BuildFQName(namespace, subsystem, "event_data_invalidate_total"), |
324 | "Number of times an inode cache is cleared.", | 324 | "Number of times an inode cache is cleared.", |
325 | labels, | 325 | labels, |
326 | nil, | 326 | nil, |
327 | ), | 327 | ), |
328 | 328 | ||
329 | NFSEventAttributeInvalidateTotal: prometheus.NewDesc( | 329 | NFSEventAttributeInvalidateTotal: prometheus.NewDesc( |
330 | prometheus.BuildFQName(Namespace, subsystem, "event_attribute_invalidate_total"), | 330 | prometheus.BuildFQName(namespace, subsystem, "event_attribute_invalidate_total"), |
331 | "Number of times cached inode attributes are invalidated.", | 331 | "Number of times cached inode attributes are invalidated.", |
332 | labels, | 332 | labels, |
333 | nil, | 333 | nil, |
334 | ), | 334 | ), |
335 | 335 | ||
336 | NFSEventVFSOpenTotal: prometheus.NewDesc( | 336 | NFSEventVFSOpenTotal: prometheus.NewDesc( |
337 | prometheus.BuildFQName(Namespace, subsystem, "event_vfs_open_total"), | 337 | prometheus.BuildFQName(namespace, subsystem, "event_vfs_open_total"), |
338 | "Number of times cached inode attributes are invalidated.", | 338 | "Number of times cached inode attributes are invalidated.", |
339 | labels, | 339 | labels, |
340 | nil, | 340 | nil, |
341 | ), | 341 | ), |
342 | 342 | ||
343 | NFSEventVFSLookupTotal: prometheus.NewDesc( | 343 | NFSEventVFSLookupTotal: prometheus.NewDesc( |
344 | prometheus.BuildFQName(Namespace, subsystem, "event_vfs_lookup_total"), | 344 | prometheus.BuildFQName(namespace, subsystem, "event_vfs_lookup_total"), |
345 | "Number of times a directory lookup has occurred.", | 345 | "Number of times a directory lookup has occurred.", |
346 | labels, | 346 | labels, |
347 | nil, | 347 | nil, |
348 | ), | 348 | ), |
349 | 349 | ||
350 | NFSEventVFSAccessTotal: prometheus.NewDesc( | 350 | NFSEventVFSAccessTotal: prometheus.NewDesc( |
351 | prometheus.BuildFQName(Namespace, subsystem, "event_vfs_access_total"), | 351 | prometheus.BuildFQName(namespace, subsystem, "event_vfs_access_total"), |
352 | "Number of times permissions have been checked.", | 352 | "Number of times permissions have been checked.", |
353 | labels, | 353 | labels, |
354 | nil, | 354 | nil, |
355 | ), | 355 | ), |
356 | 356 | ||
357 | NFSEventVFSUpdatePageTotal: prometheus.NewDesc( | 357 | NFSEventVFSUpdatePageTotal: prometheus.NewDesc( |
358 | prometheus.BuildFQName(Namespace, subsystem, "event_vfs_update_page_total"), | 358 | prometheus.BuildFQName(namespace, subsystem, "event_vfs_update_page_total"), |
359 | "Number of updates (and potential writes) to pages.", | 359 | "Number of updates (and potential writes) to pages.", |
360 | labels, | 360 | labels, |
361 | nil, | 361 | nil, |
362 | ), | 362 | ), |
363 | 363 | ||
364 | NFSEventVFSReadPageTotal: prometheus.NewDesc( | 364 | NFSEventVFSReadPageTotal: prometheus.NewDesc( |
365 | prometheus.BuildFQName(Namespace, subsystem, "event_vfs_read_page_total"), | 365 | prometheus.BuildFQName(namespace, subsystem, "event_vfs_read_page_total"), |
366 | "Number of pages read directly via mmap()'d files.", | 366 | "Number of pages read directly via mmap()'d files.", |
367 | labels, | 367 | labels, |
368 | nil, | 368 | nil, |
369 | ), | 369 | ), |
370 | 370 | ||
371 | NFSEventVFSReadPagesTotal: prometheus.NewDesc( | 371 | NFSEventVFSReadPagesTotal: prometheus.NewDesc( |
372 | prometheus.BuildFQName(Namespace, subsystem, "event_vfs_read_pages_total"), | 372 | prometheus.BuildFQName(namespace, subsystem, "event_vfs_read_pages_total"), |
373 | "Number of times a group of pages have been read.", | 373 | "Number of times a group of pages have been read.", |
374 | labels, | 374 | labels, |
375 | nil, | 375 | nil, |
376 | ), | 376 | ), |
377 | 377 | ||
378 | NFSEventVFSWritePageTotal: prometheus.NewDesc( | 378 | NFSEventVFSWritePageTotal: prometheus.NewDesc( |
379 | prometheus.BuildFQName(Namespace, subsystem, "event_vfs_write_page_total"), | 379 | prometheus.BuildFQName(namespace, subsystem, "event_vfs_write_page_total"), |
380 | "Number of pages written directly via mmap()'d files.", | 380 | "Number of pages written directly via mmap()'d files.", |
381 | labels, | 381 | labels, |
382 | nil, | 382 | nil, |
383 | ), | 383 | ), |
384 | 384 | ||
385 | NFSEventVFSWritePagesTotal: prometheus.NewDesc( | 385 | NFSEventVFSWritePagesTotal: prometheus.NewDesc( |
386 | prometheus.BuildFQName(Namespace, subsystem, "event_vfs_write_pages_total"), | 386 | prometheus.BuildFQName(namespace, subsystem, "event_vfs_write_pages_total"), |
387 | "Number of times a group of pages have been written.", | 387 | "Number of times a group of pages have been written.", |
388 | labels, | 388 | labels, |
389 | nil, | 389 | nil, |
390 | ), | 390 | ), |
391 | 391 | ||
392 | NFSEventVFSGetdentsTotal: prometheus.NewDesc( | 392 | NFSEventVFSGetdentsTotal: prometheus.NewDesc( |
393 | prometheus.BuildFQName(Namespace, subsystem, "event_vfs_getdents_total"), | 393 | prometheus.BuildFQName(namespace, subsystem, "event_vfs_getdents_total"), |
394 | "Number of times directory entries have been read with getdents().", | 394 | "Number of times directory entries have been read with getdents().", |
395 | labels, | 395 | labels, |
396 | nil, | 396 | nil, |
397 | ), | 397 | ), |
398 | 398 | ||
399 | NFSEventVFSSetattrTotal: prometheus.NewDesc( | 399 | NFSEventVFSSetattrTotal: prometheus.NewDesc( |
400 | prometheus.BuildFQName(Namespace, subsystem, "event_vfs_setattr_total"), | 400 | prometheus.BuildFQName(namespace, subsystem, "event_vfs_setattr_total"), |
401 | "Number of times directory entries have been read with getdents().", | 401 | "Number of times directory entries have been read with getdents().", |
402 | labels, | 402 | labels, |
403 | nil, | 403 | nil, |
404 | ), | 404 | ), |
405 | 405 | ||
406 | NFSEventVFSFlushTotal: prometheus.NewDesc( | 406 | NFSEventVFSFlushTotal: prometheus.NewDesc( |
407 | prometheus.BuildFQName(Namespace, subsystem, "event_vfs_flush_total"), | 407 | prometheus.BuildFQName(namespace, subsystem, "event_vfs_flush_total"), |
408 | "Number of pending writes that have been forcefully flushed to the server.", | 408 | "Number of pending writes that have been forcefully flushed to the server.", |
409 | labels, | 409 | labels, |
410 | nil, | 410 | nil, |
411 | ), | 411 | ), |
412 | 412 | ||
413 | NFSEventVFSFsyncTotal: prometheus.NewDesc( | 413 | NFSEventVFSFsyncTotal: prometheus.NewDesc( |
414 | prometheus.BuildFQName(Namespace, subsystem, "event_vfs_fsync_total"), | 414 | prometheus.BuildFQName(namespace, subsystem, "event_vfs_fsync_total"), |
415 | "Number of times fsync() has been called on directories and files.", | 415 | "Number of times fsync() has been called on directories and files.", |
416 | labels, | 416 | labels, |
417 | nil, | 417 | nil, |
418 | ), | 418 | ), |
419 | 419 | ||
420 | NFSEventVFSLockTotal: prometheus.NewDesc( | 420 | NFSEventVFSLockTotal: prometheus.NewDesc( |
421 | prometheus.BuildFQName(Namespace, subsystem, "event_vfs_lock_total"), | 421 | prometheus.BuildFQName(namespace, subsystem, "event_vfs_lock_total"), |
422 | "Number of times locking has been attempted on a file.", | 422 | "Number of times locking has been attempted on a file.", |
423 | labels, | 423 | labels, |
424 | nil, | 424 | nil, |
425 | ), | 425 | ), |
426 | 426 | ||
427 | NFSEventVFSFileReleaseTotal: prometheus.NewDesc( | 427 | NFSEventVFSFileReleaseTotal: prometheus.NewDesc( |
428 | prometheus.BuildFQName(Namespace, subsystem, "event_vfs_file_release_total"), | 428 | prometheus.BuildFQName(namespace, subsystem, "event_vfs_file_release_total"), |
429 | "Number of times files have been closed and released.", | 429 | "Number of times files have been closed and released.", |
430 | labels, | 430 | labels, |
431 | nil, | 431 | nil, |
432 | ), | 432 | ), |
433 | 433 | ||
434 | NFSEventTruncationTotal: prometheus.NewDesc( | 434 | NFSEventTruncationTotal: prometheus.NewDesc( |
435 | prometheus.BuildFQName(Namespace, subsystem, "event_truncation_total"), | 435 | prometheus.BuildFQName(namespace, subsystem, "event_truncation_total"), |
436 | "Number of times files have been truncated.", | 436 | "Number of times files have been truncated.", |
437 | labels, | 437 | labels, |
438 | nil, | 438 | nil, |
439 | ), | 439 | ), |
440 | 440 | ||
441 | NFSEventWriteExtensionTotal: prometheus.NewDesc( | 441 | NFSEventWriteExtensionTotal: prometheus.NewDesc( |
442 | prometheus.BuildFQName(Namespace, subsystem, "event_write_extension_total"), | 442 | prometheus.BuildFQName(namespace, subsystem, "event_write_extension_total"), |
443 | "Number of times a file has been grown due to writes beyond its existing end.", | 443 | "Number of times a file has been grown due to writes beyond its existing end.", |
444 | labels, | 444 | labels, |
445 | nil, | 445 | nil, |
446 | ), | 446 | ), |
447 | 447 | ||
448 | NFSEventSillyRenameTotal: prometheus.NewDesc( | 448 | NFSEventSillyRenameTotal: prometheus.NewDesc( |
449 | prometheus.BuildFQName(Namespace, subsystem, "event_silly_rename_total"), | 449 | prometheus.BuildFQName(namespace, subsystem, "event_silly_rename_total"), |
450 | "Number of times a file was removed while still open by another process.", | 450 | "Number of times a file was removed while still open by another process.", |
451 | labels, | 451 | labels, |
452 | nil, | 452 | nil, |
453 | ), | 453 | ), |
454 | 454 | ||
455 | NFSEventShortReadTotal: prometheus.NewDesc( | 455 | NFSEventShortReadTotal: prometheus.NewDesc( |
456 | prometheus.BuildFQName(Namespace, subsystem, "event_short_read_total"), | 456 | prometheus.BuildFQName(namespace, subsystem, "event_short_read_total"), |
457 | "Number of times the NFS server gave less data than expected while reading.", | 457 | "Number of times the NFS server gave less data than expected while reading.", |
458 | labels, | 458 | labels, |
459 | nil, | 459 | nil, |
460 | ), | 460 | ), |
461 | 461 | ||
462 | NFSEventShortWriteTotal: prometheus.NewDesc( | 462 | NFSEventShortWriteTotal: prometheus.NewDesc( |
463 | prometheus.BuildFQName(Namespace, subsystem, "event_short_write_total"), | 463 | prometheus.BuildFQName(namespace, subsystem, "event_short_write_total"), |
464 | "Number of times the NFS server wrote less data than expected while writing.", | 464 | "Number of times the NFS server wrote less data than expected while writing.", |
465 | labels, | 465 | labels, |
466 | nil, | 466 | nil, |
467 | ), | 467 | ), |
468 | 468 | ||
469 | NFSEventJukeboxDelayTotal: prometheus.NewDesc( | 469 | NFSEventJukeboxDelayTotal: prometheus.NewDesc( |
470 | prometheus.BuildFQName(Namespace, subsystem, "event_jukebox_delay_total"), | 470 | prometheus.BuildFQName(namespace, subsystem, "event_jukebox_delay_total"), |
471 | "Number of times the NFS server indicated EJUKEBOX; retrieving data from offline storage.", | 471 | "Number of times the NFS server indicated EJUKEBOX; retrieving data from offline storage.", |
472 | labels, | 472 | labels, |
473 | nil, | 473 | nil, |
474 | ), | 474 | ), |
475 | 475 | ||
476 | NFSEventPNFSReadTotal: prometheus.NewDesc( | 476 | NFSEventPNFSReadTotal: prometheus.NewDesc( |
477 | prometheus.BuildFQName(Namespace, subsystem, "event_pnfs_read_total"), | 477 | prometheus.BuildFQName(namespace, subsystem, "event_pnfs_read_total"), |
478 | "Number of NFS v4.1+ pNFS reads.", | 478 | "Number of NFS v4.1+ pNFS reads.", |
479 | labels, | 479 | labels, |
480 | nil, | 480 | nil, |
481 | ), | 481 | ), |
482 | 482 | ||
483 | NFSEventPNFSWriteTotal: prometheus.NewDesc( | 483 | NFSEventPNFSWriteTotal: prometheus.NewDesc( |
484 | prometheus.BuildFQName(Namespace, subsystem, "event_pnfs_write_total"), | 484 | prometheus.BuildFQName(namespace, subsystem, "event_pnfs_write_total"), |
485 | "Number of NFS v4.1+ pNFS writes.", | 485 | "Number of NFS v4.1+ pNFS writes.", |
486 | labels, | 486 | labels, |
487 | nil, | 487 | nil, |