1IO::Async::Metrics(3) User Contributed Perl DocumentationIO::Async::Metrics(3)
2
3
4
6 "IO::Async::Metrics" - report metrics about "IO::Async" to
7 "Metrics::Any"
8
10 This module contains the implementation of metrics-reporting code from
11 "IO::Async" to provide information about its operation into
12 Metrics::Any.
13
15 The following metrics are reported:
16
17 io_async_forks
18 A counter giving the number of times that fork(2) has been called by
19 the IO::Async::Loop.
20
21 io_async_notifiers
22 A gauge giving the number of IO::Async::Notifiers currently registered
23 with the Loop.
24
25 io_async_processing
26 A time distribution giving the amount of time spent processing IO
27 events. This time does not include the time spent blocking on the
28 underlying kernel system call to wait for IO events, but only the time
29 spent in userland afterwards to handle them.
30
31 io_async_resolver_lookups
32 A labelled counter giving the number of attempted lookups by the
33 IO::Async::Resolver.
34
35 This metric has one label, "type", containing the type of lookup; e.g.
36 "getaddrinfo".
37
38 io_async_resolver_failures
39 A labelled counter giving the number of Resolver lookups that failed.
40 This is labelled as for "io_async_resolver_lookups".
41
42 io_async_stream_read
43 A counter giving the number of bytes read by IO::Async::Stream
44 instances. Note that for SSL connections, this will only be able to
45 count bytes of plaintext, not ciphertext, and thus will be a slight
46 under-estimate in this case.
47
48 io_async_stream_written
49 A counter giving the number of bytes written by Stream instances. Note
50 again for SSL connections this will only be able to count bytes of
51 plaintext.
52
54 Paul Evans <leonerd@leonerd.org.uk>
55
56
57
58perl v5.34.0 2022-01-21 IO::Async::Metrics(3)