b142cc8add29c8c97f6134d35873d23db666027c |
|
31-Mar-2018 |
Yangster-mac <yanglu@google.com> |
Statsd config TTL Roughly check the config every hour to see whether the ttl expired. If so, read the config from disk and recreate the metric manager. Test: statsd test BUG: b/77274363 Change-Id: I16838afe5bbe966c3a0f638869751f9b59a5a259
/frameworks/base/cmds/statsd/src/anomaly/DurationAnomalyTracker.cpp
|
be10ddfe46ba6371bcd02cb57a06782e6b18d371 |
|
13-Mar-2018 |
Yangster-mac <yanglu@google.com> |
Flush the past buckets in anomaly tracker when time jumps forward E2e test for count/duration anomaly trackers. Test: new statsd tests. BUG: b/74446029 Change-Id: Ia9be0240ba5021d44c1e1f096d67563e9138bb59
/frameworks/base/cmds/statsd/src/anomaly/DurationAnomalyTracker.cpp
|
1aa00024fa28dd9772acc8ce22f1f6db12fd9622 |
|
22-Mar-2018 |
Yao Chen <yaochen@google.com> |
Fix the heap-after-use in DurationAnomalyTracker Bug: 74531081 Test: cts Change-Id: I21a50944a119b7576c76fd25fae23b9c2d8d96ab
/frameworks/base/cmds/statsd/src/anomaly/DurationAnomalyTracker.cpp
|
6a1d3af7f5167be234cf8b77b927c6b366660bfa |
|
16-Mar-2018 |
Bookatz <bookatz@google.com> |
Statsd: remove DurationAnomalyTracker.resetStorage The explicit resetStorage function in the subclass isn't needed. It does exactly what its superclass does. The previous check for !mAlarms.empty() was actually not needed, since there can be legit cases where !mAlarms.empty() (namely, when the mMostRecentBucket is moved forward initially - we may call reset, but we still want the old alarms to remain). Test: still pass Change-Id: I3ffb6e97c02b75170c246f57d55ccf59cd368b9c Fixes: 74607818
/frameworks/base/cmds/statsd/src/anomaly/DurationAnomalyTracker.cpp
|
3e8cd35b551827234aa115700e50abb6c4721597 |
|
16-Mar-2018 |
Bookatz <bookatz@google.com> |
Statsd AnomalyDetection stopAlarm also checks old Every time stopAlarm() is called, it should also, right then, check to see if the alarm should actually have already fired (but didn't due to AlarmManager lag). Right now, the client needs to do this check separately, but they always go together. Indeed, MaxDurationTracker forgot to do the check, which is a bug. It would make much more sense if the stopAlarm takes care of it for them, to prevent such mistakes. Bug: 75273733 Test: make statsd_test && adb sync data && adb shell data/nativetest64/statsd_test/statsd_test Test: cts-tradefed run cts-dev -m CtsStatsdHostTestCases -t android.cts.statsd.alert Change-Id: I689df13690df822090ac34b1171e948be1ad0d9f
/frameworks/base/cmds/statsd/src/anomaly/DurationAnomalyTracker.cpp
|
6bf9825b1575bfc3c62ef0a5129f94b6a776ef66 |
|
14-Mar-2018 |
Bookatz <bookatz@google.com> |
Statsd AnomalyDetection improvements Various fixes and improvements to statsd's anomaly detection. Bug: 74607818 Test: make statsd_test && adb sync data && adb shell data/nativetest64/statsd_test/statsd_test Change-Id: Ia67a8eb6da0ea9293f698949e1565f7f024a7cb9
/frameworks/base/cmds/statsd/src/anomaly/DurationAnomalyTracker.cpp
|
932ececa1674c59a8da9f3e32d2651e781b86fc4 |
|
01-Feb-2018 |
Yangster-mac <yanglu@google.com> |
Alarm: wakes up statsd and notifies the subscribers. Test: manually tested it. Change-Id: Id796a68976aeb1611183023ba4e9c6a8b8c44bb8
/frameworks/base/cmds/statsd/src/anomaly/DurationAnomalyTracker.cpp
|
66fe06183f3074554c524f6e2ee47ce6fd727941 |
|
08-Feb-2018 |
Bookatz <bookatz@google.com> |
Statsd Anomaly Detection fixes Minor fixes and notes regarding the setting of refractory periods and anomaly alarms. Also changes the anomaly alarms from inexact to exact. Test: run cts-dev -m CtsStatsdHostTestCases -t android.cts.statsd.alert.AnomalyDetectionTests Change-Id: Ia4f4c84dd647ebbbad4bab66164cd7709f8628e8
/frameworks/base/cmds/statsd/src/anomaly/DurationAnomalyTracker.cpp
|
484524a246ffe453f8cd89b698a279c23b0bde1f |
|
02-Feb-2018 |
Tej Singh <singhtejinder@google.com> |
Turn off debug logging in statsd Sets DEBUG to false everywhere and replaces all ALOGD with VLOG so they do not print with DEBUG false. Leaves all ALOGI, ALOGW and ALOGE as is. Test: ran all CTS tests and checked "adb logcat -s statsd" to make sure it wasn't spammy Change-Id: Iaa8eb3a0a63723ffe40f94f2815f94df877fd432
/frameworks/base/cmds/statsd/src/anomaly/DurationAnomalyTracker.cpp
|
afb36062d5e6d36700147226b5776b4ca8abf922 |
|
01-Feb-2018 |
Yi Jin <jinyithu@google.com> |
Allow statsd_config be able to set destination value AUTO/EXPLICIT. Also move incidentd integration to its own files. clang-format -style=file -i src/anomaly/* and src/subscribers/Incidentd* Bug: 70239380 Test: manual Change-Id: I7bfe14d704d9e86d925365a8a21ffed726723e60
/frameworks/base/cmds/statsd/src/anomaly/DurationAnomalyTracker.cpp
|
9369446f0b04945d6674550728ae81196d6fb5c2 |
|
23-Jan-2018 |
Yangster-mac <yanglu@google.com> |
Support dimension in condition in metric producers. Test: added e2e tests for count/duration metrics sliced by fields in condition and with/without links. Change-Id: Ie34deba68e6780abdde458be3f0ce5284e76a1a2
/frameworks/base/cmds/statsd/src/anomaly/DurationAnomalyTracker.cpp
|
1bf94382d036fa8d61258205c5f4e18cd53cb61d |
|
04-Jan-2018 |
Bookatz <bookatz@google.com> |
Anomaly detection is per dimension Anomalies are now detected and declared per dimension. This means that declareAnomaly now gets access to the key that is responsible for the anomaly. Moreover, the refractory period is per dimension, not overall. So a second anomaly for the same metric but a different dimension can fire within the first dimension's refractory period. Thus, if app A misbehaves and app B misbehaves shortly thereafter, they will both be detected. Eventually this key will be passed to the subscribers, although this cl doesn't do anything with it. Test: adb shell data/nativetest64/statsd_test/statsd_test Change-Id: Id76856dc44fe9ecf91ac81a423e84f97c81d30ab
/frameworks/base/cmds/statsd/src/anomaly/DurationAnomalyTracker.cpp
|
857aaa520804d846a050e1eeb85d82977c983666 |
|
20-Dec-2017 |
Bookatz <bookatz@google.com> |
Splits AnomalyTracker into two files Splits out DurationAnomalyTracker-specific functions into their own subclass. Test: the unit tests and CTS tests Change-Id: Id6eb74d232b4a9c3a932d805d1ba3f0ba43a88b1
/frameworks/base/cmds/statsd/src/anomaly/DurationAnomalyTracker.cpp
|