Commit f235c71d by Bach Dániel Committed by cloud

fix scalability and clean up code

 * nested loop sent each metric n times per tick
 * logging framework + terser output
 * fix frequency handling
 * remove boilerplate
 * improve code style
 * closes #109
parent 82348f5a
[Client]
Debug = True
Debug = False
[Metrics]
cpuUsage = 5
......
import logging
import sys
from src import cnfparse
from src import client
......@@ -5,6 +6,11 @@ from src.collectables import collectables
def main():
# define a Handler which writes INFO messages or higher to the sys.stderr
logging.basicConfig(
level=logging.INFO,
format='[%(asctime)s: %(levelname)s/%(name)s] %(message)s')
if len(sys.argv) < 2:
print("usage: manage.py run")
if len(sys.argv) is not 2 and sys.argv[1] is not "run":
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment