trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jpe...@apache.org
Subject git commit: TS-2620: make the stats_over_http plugin publish node and plugin stats
Date Fri, 07 Mar 2014 18:15:22 GMT
Repository: trafficserver
Updated Branches:
  refs/heads/4.2.x 351cf8af4 -> 37b33476e


TS-2620: make the stats_over_http plugin publish node and plugin stats


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

Branch: refs/heads/4.2.x
Commit: 37b33476ea71004e39b653cb067a623e01a6bea4
Parents: 351cf8a
Author: James Peach <jpeach@apache.org>
Authored: Fri Mar 7 10:15:05 2014 -0800
Committer: James Peach <jpeach@apache.org>
Committed: Fri Mar 7 10:15:05 2014 -0800

----------------------------------------------------------------------
 CHANGES                                   | 2 ++
 plugins/stats_over_http/stats_over_http.c | 3 +++
 2 files changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/37b33476/CHANGES
----------------------------------------------------------------------
diff --git a/CHANGES b/CHANGES
index 2d6b42b..91ced1f 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,8 @@
                                                          -*- coding: utf-8 -*-
 Changes with Apache Traffic Server 4.2.0
 
+  *) [TS-2620] Make the stats_over_http plugin publish node and plugin stats.
+
   *) [TS-2607] Fix TS_USE_HWLOC #define in build process
 
   *) [TS-2019] Fix the "vector inconsistency" errors.

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/37b33476/plugins/stats_over_http/stats_over_http.c
----------------------------------------------------------------------
diff --git a/plugins/stats_over_http/stats_over_http.c b/plugins/stats_over_http/stats_over_http.c
index d1f0af7..0a77cf1 100644
--- a/plugins/stats_over_http/stats_over_http.c
+++ b/plugins/stats_over_http/stats_over_http.c
@@ -154,6 +154,9 @@ json_out_stats(stats_state * my_state)
   APPEND("{ \"global\": {\n");
 
   TSRecordDump(TS_RECORDTYPE_PROCESS, json_out_stat, my_state);
+  TSRecordDump(TS_RECORDTYPE_NODE, json_out_stat, my_state);
+  TSRecordDump(TS_RECORDTYPE_PLUGIN, json_out_stat, my_state);
+
   version = TSTrafficServerVersionGet();
   APPEND("\"server\": \"");
   APPEND(version);


Mime
View raw message