Fixed profile event name and description #9632

This commit is contained in:
Alexey Milovidov 2020-03-13 22:00:00 +03:00
parent b4315e24f6
commit 482915fa46
2 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@
namespace ProfileEvents
{
extern Event NetworkErrors;
extern Event DNSError;
}
@ -189,7 +189,7 @@ bool DNSResolver::updateCache()
}
catch (const Poco::Net::NetException &)
{
ProfileEvents::increment(ProfileEvents::NetworkErrors);
ProfileEvents::increment(ProfileEvents::DNSError);
if (!lost_hosts.empty())
lost_hosts += ", ";

View File

@ -160,7 +160,7 @@
M(RWLockAcquiredWriteLocks, "") \
M(RWLockReadersWaitMilliseconds, "") \
M(RWLockWritersWaitMilliseconds, "") \
M(NetworkErrors, "Total count of errors in Network communication, currently only errors in DNS cache host resolve") \
M(DNSError, "Total count of errors in DNS resolution") \
\
M(RealTimeMicroseconds, "Total (wall clock) time spent in processing (queries and other tasks) threads (not that this is a sum).") \
M(UserTimeMicroseconds, "Total time spent in processing (queries and other tasks) threads executing CPU instructions in user space. This include time CPU pipeline was stalled due to cache misses, branch mispredictions, hyper-threading, etc.") \