Simon Zolin
40763c903b
Merge: * stats: handle "invalid argument" error from "bbolt"
...
Close #1188
Squashed commit of the following:
commit 70355154bb49ae7df57e79ed1405754682f5d57f
Merge: 331650e6 d1c47c0d
Author: Simon Zolin <s.zolin@adguard.com>
Date: Mon Dec 9 14:09:59 2019 +0300
Merge remote-tracking branch 'origin/master' into 1188-bolt-err
commit 331650e60d5869b7c706b539f04c1a856cd9f254
Author: Simon Zolin <s.zolin@adguard.com>
Date: Mon Dec 9 13:57:14 2019 +0300
minor
commit 07130a0f1f2e88cab30a88d899e8d817096ac35f
Author: Simon Zolin <s.zolin@adguard.com>
Date: Wed Dec 4 13:50:29 2019 +0300
* stats: handle "invalid argument" error from "bbolt"
2019-12-09 14:13:39 +03:00
Simon Zolin
f64868472a
- stats: fix read-write race
...
* periodicFlush() operation doesn't result in an inconsistent state at any time
* stats readers use the last unit ID properly, excluding the possibility
when unit ID could be changed, but this unit isn't yet created
2019-11-11 16:18:20 +03:00
Simon Zolin
0ede2b13c9
* minor
2019-10-23 18:43:39 +03:00
Simon Zolin
9ff39a362f
- stats: fix crash
2019-10-09 19:27:19 +03:00
Simon Zolin
418baa608f
+ stats: GetTopData()
2019-10-09 18:03:22 +03:00
Simon Zolin
4165688f25
* stats: refactor
2019-10-09 18:02:09 +03:00
Simon Zolin
bbb5413331
* stats: refactor: move HTTP handlers to stats/
...
DNS module passes additional parameters to Stats module.
This allows Stats to handle HTTP requests by itself - completely removing
all stats-related code from outside.
2019-09-26 16:52:28 +03:00
Simon Zolin
d7f256ba7f
- fix crash after stats module is closed
...
Close DNS forward module BEFORE stats.
2019-09-19 12:47:55 +03:00
Simon Zolin
b8a98c1a77
* stats: pass configuration object via stats.New()
2019-09-16 16:17:39 +03:00
Simon Zolin
8b7d08ebfc
- stats: fix crash on load
2019-09-13 12:58:57 +03:00
Simon Zolin
ce614ab8bf
- stats: fix incorrect loading of counters from file
2019-09-12 17:53:27 +03:00
Simon Zolin
04e2566e9e
* stats: use uint32 or uint64 integer values, not int
2019-09-12 17:53:27 +03:00
Simon Zolin
97684368b9
- stats: use --workdir
2019-09-12 14:48:13 +03:00
Simon Zolin
4a58266ba3
+ statistics: store in separate file
...
+ GET /control/stats handler
2019-09-04 10:12:02 +03:00