Terracotta-OSS / terracotta-newrelic-plugin

NewRelic plugin for Terracotta monitoring
Other
2 stars 2 forks source link

Server State codes confusing #18

Closed lanimall closed 8 years ago

lanimall commented 8 years ago

Currently, the plugin is set to report (in a single statistic buckets) a code that corresponds to the state of a TC node (0 for active, 2 for passive, 4 for un-init, 8 for error) The problem comes with the rollup stats, where the summed value does not clearly show the total number of nodes and if there's an error or not in 1 of the nodes.

The solution would be to track each states in its own statistical bucket with either a 0 or 1. Eg. we’d get 3 different graphs (cumulative into a single chart) where active = (0, 1), passive = (0, 1), uninit = (0, 1) and error = (0, 1). Then the rollup would show the cumulative 3 graphs (in 1 chart) and we could clearly see the total always being the number of nodes…and the state values as well.

lanimall commented 8 years ago

issue fixed in 2.0.4. closing.