Package com.netflix.zuul.stats
Class StatsManager
java.lang.Object
com.netflix.zuul.stats.StatsManager
High level statistics counter manager to count stats on various aspects of requests
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Collects counts statistics about the request: client ip address from the x-forwarded-for header; ipv4 or ipv6 and host name from the host header;void
collectRouteStats
(String route, int statusCode) collects and increments counts of status code, route/status code and statuc_code bucket, eg 2xx 3xx 4xx 5xxstatic StatsManager
getRouteStatusCodeMonitor
(String route, int statusCode) protected void
helper method to create new monitor, place into map, and register with Epic, if necessary
-
Field Details
-
HEX_PATTERN
-
INSTANCE
-
-
Constructor Details
-
StatsManager
public StatsManager()
-
-
Method Details
-
getManager
-
getRouteStatusCodeMonitor
- Parameters:
route
-statusCode
-- Returns:
- the RouteStatusCodeMonitor for the given route and status code
-
collectRequestStats
Collects counts statistics about the request: client ip address from the x-forwarded-for header; ipv4 or ipv6 and host name from the host header;- Parameters:
req
-
-
incrementNamedCountingMonitor
protected void incrementNamedCountingMonitor(String name, ConcurrentMap<String, NamedCountingMonitor> map) helper method to create new monitor, place into map, and register with Epic, if necessary -
collectRouteStats
collects and increments counts of status code, route/status code and statuc_code bucket, eg 2xx 3xx 4xx 5xx- Parameters:
route
-statusCode
-
-