diff options
author | Justin Clark-Casey (justincc) | 2014-07-26 01:41:03 +0100 |
---|---|---|
committer | Justin Clark-Casey | 2014-08-02 00:58:12 +0100 |
commit | 3410b36d76dcfea79e666d64447c8512c5a946eb (patch) | |
tree | db3b16b95b1e63aaae87e3b7abb120ec06296ac1 /OpenSim/Framework/Servers/HttpServer/BaseRequestHandler.cs | |
parent | Add stats for service endpoints using existing data. (diff) | |
download | opensim-SC_OLD-3410b36d76dcfea79e666d64447c8512c5a946eb.zip opensim-SC_OLD-3410b36d76dcfea79e666d64447c8512c5a946eb.tar.gz opensim-SC_OLD-3410b36d76dcfea79e666d64447c8512c5a946eb.tar.bz2 opensim-SC_OLD-3410b36d76dcfea79e666d64447c8512c5a946eb.tar.xz |
Temporary stop CAPS service points from being added to stats as this can be a huge number.
A stop gap solution - a better one may be to improve stats display on simulator-side.
Caps information is still accessible via the "show caps stats by user" and "show caps stats by cap" commands
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/Servers/HttpServer/BaseRequestHandler.cs | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/OpenSim/Framework/Servers/HttpServer/BaseRequestHandler.cs b/OpenSim/Framework/Servers/HttpServer/BaseRequestHandler.cs index 72ffb0e..d4a1ec3 100644 --- a/OpenSim/Framework/Servers/HttpServer/BaseRequestHandler.cs +++ b/OpenSim/Framework/Servers/HttpServer/BaseRequestHandler.cs | |||
@@ -63,18 +63,23 @@ namespace OpenSim.Framework.Servers.HttpServer | |||
63 | m_httpMethod = httpMethod; | 63 | m_httpMethod = httpMethod; |
64 | m_path = path; | 64 | m_path = path; |
65 | 65 | ||
66 | StatsManager.RegisterStat( | 66 | // FIXME: A very temporary measure to stop the simulator stats being overwhelmed with user CAPS info. |
67 | new Stat( | 67 | // Needs to be fixed properly in stats display |
68 | "requests", | 68 | if (!path.StartsWith("/CAPS/")) |
69 | "requests", | 69 | { |
70 | "Number of requests received by this service endpoint", | 70 | StatsManager.RegisterStat( |
71 | "requests", | 71 | new Stat( |
72 | "service", | 72 | "requests", |
73 | string.Format("{0}:{1}", httpMethod, path), | 73 | "requests", |
74 | StatType.Pull, | 74 | "Number of requests received by this service endpoint", |
75 | MeasuresOfInterest.AverageChangeOverTime, | 75 | "requests", |
76 | s => s.Value = RequestsReceived, | 76 | "service", |
77 | StatVerbosity.Debug)); | 77 | string.Format("{0}:{1}", httpMethod, path), |
78 | StatType.Pull, | ||
79 | MeasuresOfInterest.AverageChangeOverTime, | ||
80 | s => s.Value = RequestsReceived, | ||
81 | StatVerbosity.Debug)); | ||
82 | } | ||
78 | } | 83 | } |
79 | 84 | ||
80 | public virtual string Path | 85 | public virtual string Path |