Commit Graph

586 Commits

Author SHA1 Message Date
Sergey Ponomarev
2c07cab59c logging: skip timer events e.g. /timer/1s
Each second we receive the timer event which makes little sense but log is bloated with the event.
To make logs more readable we can disable logging of this event
2020-11-18 23:04:29 +02:00
bradley
fd06992236
Merge pull request #230 from stokito/skip_timer_logging
logging: skip timer events e.g. /timer/1s
2020-11-18 09:40:33 -05:00
Sergey Ponomarev
e64edbdc36 logging: skip timer events e.g. /timer/1s
Each second we receive the timer event which makes little sense but log is bloated with the event.
To make logs more readable we can disable logging of this event
2020-11-18 11:25:20 +02:00
Sergey Ponomarev
4c280cee56 Improve docker events handling: separate channel for status updates
Instead of calling a heavy inspect api call we can easily changing status just by knowing an action.
Let's do this in a separate channel decouple UI update from basic event loop.
2020-11-17 22:00:03 +02:00
Sergey Ponomarev
b65e970a83 Improve docker events handling
Firstly check health updates because it will be a lot of them especially when a container is unstable.
Clearly handle create event to create a container even if it wasn't started.
Instead of die event handle more precise events like oom, kill and only then trigger refresh.
Lookup the state from a map.
2020-11-17 21:50:25 +02:00
Sergey Ponomarev
957cabba2d docker.go: watchEvents() optimize actionName extraction
Split(e.Action, ":") creates and array but we can avoid this.
2020-11-17 12:06:34 +02:00
Sergey Ponomarev
5aacdc3772 docker.go: logging of events
Add log.IsEnabledFor(logging.DEBUG) guard to avoid unnecessary memory allocations. Debug level is usually disabled.
Inline "destroy"
2020-11-17 11:42:45 +02:00
Bradley Cicenas
99d9aeec98
set running = false when mock,runc collectors stopped 2020-11-13 21:43:11 +00:00
bradley
44600fca45
Merge pull request #201 from vcmkrtchyan/master
Fix freeze when container is started/stopped multiple times
2020-11-13 16:42:16 -05:00
bradley
9aaba5dfca
Merge pull request #223 from stokito/trim
file.go: remove duplicated trim
2020-11-13 15:40:01 -05:00
Bradley Cicenas
0bd8efe800
fix makefile release 2020-11-13 20:35:40 +00:00
Sergey Ponomarev
3a29c94833 Use percent() function to calc CPU usage 2020-11-13 11:02:14 +02:00
Sergey Ponomarev
a22d99fefb file.go: remove duplicated trim
The s var was already trimmed on line 67
2020-11-12 21:23:18 +02:00
Bradley Cicenas
c971d26d42
v0.7.5 2020-11-06 16:59:24 +00:00
Bradley Cicenas
de380ff810
add arch section to readme 2020-11-06 16:56:17 +00:00
bradley
e7e2478468
Merge pull request #222 from azlux/master
Readme : fix link
2020-11-05 13:44:35 -05:00
azlux
42c80c2395
fix link 2020-11-05 19:24:50 +01:00
bradley
d22bbc3420
Merge pull request #221 from azlux/master
Add apt azlux's repository
2020-11-05 13:16:22 -05:00
azlux
bdfb98265d
Add apt azlux's repository 2020-11-05 10:54:10 +01:00
Bradley Cicenas
af1908fb27 update make release to use ghub cli 2020-11-03 07:55:39 -05:00
bradley
73a976c6fe
Merge pull request #220 from stokito/single_view_trunc_id
Single Container View: truncate ID
2020-11-03 07:55:00 -05:00
Sergey Ponomarev
2bcfc365f7 Single Container View: truncate ID
Truncation Id inside of NewSingle() doesn't work.
It even doesn't have any effect.
Instead truncate the ID inside of NewMeta() call
2020-11-03 14:11:58 +02:00
bradley
ecc7bf4081
Merge pull request #219 from bcicen/text-col-setter
add textcol setter, static CID column width
2020-10-31 10:53:42 -04:00
Bradley Cicenas
68e4c32c1b
add textcol setter, static CID column width 2020-10-31 14:52:30 +00:00
bradley
a63f05b430
Merge pull request #211 from stokito/truncate_column
text.go: to do not manually truncate id and name columns
2020-10-31 10:40:52 -04:00
Bradley Cicenas
426dd2c985
update dockerclient -> v1.6.6 2020-10-26 19:30:33 +00:00
bradley
0fb627a529
Merge pull request #214 from whalehub/static-binaries
Makefile: Add CGO_ENABLED=0 to generate statically linked binaries
2020-10-26 15:11:02 -04:00
Aaron
c8f74a47a1
Makefile: Add CGO_ENABLED=0 to generate statically linked binaries
Signed-off-by: Aaron <admin@datahoarder.dev>
2020-10-26 16:14:57 +01:00
Sergey Ponomarev
c984b270db #135 Add uptime column 2020-10-26 16:32:51 +02:00
Sergey Ponomarev
41c04fefa2 text.go: to do not manually truncate id and name columns
This truncation is already handled by termui
2020-10-26 15:43:55 +02:00
bradley
5b2d180f60
Merge pull request #210 from bcicen/fix-config-encoding
Fix config encoding
2020-10-26 09:04:07 -04:00
Bradley Cicenas
2fdbb91f87
ensure existing config file is removed prior to writing 2020-10-26 13:04:00 +00:00
Bradley Cicenas
c0703db094
add health check to mock connector 2020-10-26 12:02:31 +00:00
Bradley Cicenas
53ec5c911a
return static error on unimplemented manager actions 2020-10-26 11:38:17 +00:00
Bradley Cicenas
c5038e2edd
aggregate io r/w across all reported stats volumes 2020-10-25 17:42:20 +00:00
Bradley Cicenas
e1a52a314d
v0.7.4, update docs 2020-10-25 16:55:44 +00:00
Bradley Cicenas
bbecbc66b9
fix byte format for compact view (short) 2020-10-25 16:02:31 +00:00
Bradley Cicenas
192d3eaa7a Merge branch '0.7.4-dev' into master 2020-10-25 11:41:49 -04:00
Bradley Cicenas
d34de844e0 add column config key to help menu 2020-10-25 10:31:51 -04:00
Bradley Cicenas
a8e235beca commit missing compact column, row files 2020-10-25 10:31:51 -04:00
Bradley Cicenas
ed194e8c04 update to go 1.13 2020-10-25 10:31:51 -04:00
Bradley Cicenas
09566a4043 add optional tooltip to menu widget 2020-10-25 10:31:51 -04:00
Bradley Cicenas
f11a705b8b add padding to column menu 2020-10-25 10:31:51 -04:00
Bradley Cicenas
6fe6e7c316 truncate id in compact widget 2020-10-25 10:31:51 -04:00
Bradley Cicenas
9aa104fbc6 handle single kv pair given to NewMeta 2020-10-25 10:31:51 -04:00
Bradley Cicenas
7c6b5c54dc init column config menu 2020-10-25 10:31:51 -04:00
Bradley Cicenas
ffb96f4e90 handle empty entries in column config 2020-10-25 10:31:51 -04:00
Bradley Cicenas
fc9bd9e5ca refactor column config 2020-10-25 10:31:51 -04:00
Bradley Cicenas
c7a8bfa26f integrate widget order, toggling into global config and compact grid 2020-10-25 10:31:51 -04:00
Bradley Cicenas
6b79e5a370 remove unused static col width 2020-10-25 10:31:51 -04:00