Rework accounting scripts - #288
Conversation
gmatthews20
left a comment
There was a problem hiding this comment.
I haven't yet reviewed any of the tests. Will take a look once we're happy with the functionality
93a8215 to
817a236
Compare
817a236 to
b289baa
Compare
b289baa to
d134d00
Compare
move jobs into subdirectory - parsers, rename to match use python influxdb client library instead of requests - required us to setup https connection for influxdb remove --interval in favor of hardcoding - for simplicity simplify parsing --start-time and --end-time to accept only yyyy-mm-dd not iso timestamps - and default to starting at midnight current day update readme to match changes ensure tests pass, and linting fixes
provides additional security and prevents passwords from accidentally being leaked
|
Changes made since last review: using influxdb client library for talking to influxdb
|
so that logging works - doesn't seem to register the logger if not
eb6f588 to
c095237
Compare
DavidFair
left a comment
There was a problem hiding this comment.
Partial re-review
Some minor bits just as I'm going through....
DavidFair
left a comment
There was a problem hiding this comment.
Full review - some security bits to validate and tighten up
Some doc / usability improvements where I noticed the version is mismatched in the README already and would need updating every time someone bumped this
set default --start-date as yesterday so that parsing is done immediately so we don't have to wait 24hours before we find out something's broken modify the docker build script to do pip install as monitoring user rather than root for added security use verison.txt to set the version of docker container
214cc56 to
bb400eb
Compare
|
changes since last review
|
make accounting scripts run as a docker container
requirements:
the docker container must run continuously - to get accounting data every interval
also, the container can be used to collect past accounting data by providing timestamps from the past.
there should be good logs so it can run on kayobe and be debugged easily
there should be a dry-run feature - so we can test improvements in the future without sending data anywhere
there should be good testing and linting to keep up with our coding standards
it should work on a supported python version and the dependencies should be up-to-date
Still TODO:
so that we can auto-build and version the docker container