trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bc...@apache.org
Subject git commit: Added DNS stats
Date Sat, 13 Oct 2012 21:24:49 GMT
Updated Branches:
  refs/heads/master 1e80f531c -> 891b286a1


Added DNS stats


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/891b286a
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/891b286a
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/891b286a

Branch: refs/heads/master
Commit: 891b286a14779868a48e6439de0dc573e61b2372
Parents: 1e80f53
Author: Bryan Call <bcall@apache.org>
Authored: Sat Oct 13 14:24:07 2012 -0700
Committer: Bryan Call <bcall@apache.org>
Committed: Sat Oct 13 14:24:07 2012 -0700

----------------------------------------------------------------------
 contrib/tstop/stats.h  |    4 ++++
 contrib/tstop/tstop.cc |    4 ++++
 2 files changed, 8 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/891b286a/contrib/tstop/stats.h
----------------------------------------------------------------------
diff --git a/contrib/tstop/stats.h b/contrib/tstop/stats.h
index c5f1211..8e535bc 100644
--- a/contrib/tstop/stats.h
+++ b/contrib/tstop/stats.h
@@ -76,6 +76,9 @@ public:
     lookup_table.insert(make_pair("entries", LookupItem("Entries", "proxy.process.cache.direntries.used",
1)));
     lookup_table.insert(make_pair("avg_size", LookupItem("Avg Size", "disk_used", "entries",
3)));
 
+    lookup_table.insert(make_pair("dns_time", LookupItem("DNS Time", "proxy.node.dns.lookup_avg_time_ms",
2)));
+    lookup_table.insert(make_pair("dns_hits", LookupItem("DNS hits", "proxy.node.hostdb.total_hits",
2)));
+    lookup_table.insert(make_pair("dns_lookups", LookupItem("DNS lookups", "proxy.node.hostdb.total_lookups",
2)));
     lookup_table.insert(make_pair("client_req", LookupItem("Requests", "proxy.process.http.incoming_requests",
2)));
     lookup_table.insert(make_pair("client_conn", LookupItem("New Conn", "proxy.process.http.total_client_connections",
2)));
     lookup_table.insert(make_pair("client_req_conn", LookupItem("Req/Conn", "client_req",
"client_conn", 3)));
@@ -106,6 +109,7 @@ public:
     lookup_table.insert(make_pair("other_err", LookupItem("Other Err", "proxy.process.http.transaction_counts.errors.other",
2)));
     // percentage
     lookup_table.insert(make_pair("ram_ratio", LookupItem("Ram Hit", "ram_hit", "ram_hit_miss",
4)));
+    lookup_table.insert(make_pair("dns_ratio", LookupItem("DNS Hit", "dns_hits", "dns_lookups",
4)));
 
     // percetage of requests
     lookup_table.insert(make_pair("fresh", LookupItem("Fresh", "proxy.process.http.transaction_counts.hit_fresh",
5)));

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/891b286a/contrib/tstop/tstop.cc
----------------------------------------------------------------------
diff --git a/contrib/tstop/tstop.cc b/contrib/tstop/tstop.cc
index 6d3869d..d368530 100644
--- a/contrib/tstop/tstop.cc
+++ b/contrib/tstop/tstop.cc
@@ -269,6 +269,8 @@ int main(int argc, char **argv)
     cache1.push_back("update_active");
     cache1.push_back("entries");
     cache1.push_back("avg_size");
+    cache1.push_back("dns_lookups");
+    cache1.push_back("dns_hits");
     makeTable(0, 1, cache1, stats);
 
 
@@ -286,6 +288,8 @@ int main(int argc, char **argv)
     cache2.push_back("changed_time");
     cache2.push_back("not_time");
     cache2.push_back("no_time");
+    cache2.push_back("dns_ratio");
+    cache2.push_back("dns_time");
     makeTable(21, 1, cache2, stats);
 
     list<string> response1;


Mime
View raw message