aiomisc 17.7.5__py3-none-any.whl → 17.7.7__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- aiomisc/service/carbon.py +2 -1
- aiomisc/service/profiler.py +10 -8
- aiomisc/service/sdwatchdog.py +4 -1
- aiomisc/service/tracer.py +2 -1
- aiomisc/version.py +2 -2
- {aiomisc-17.7.5.dist-info → aiomisc-17.7.7.dist-info}/METADATA +1 -1
- {aiomisc-17.7.5.dist-info → aiomisc-17.7.7.dist-info}/RECORD +10 -10
- {aiomisc-17.7.5.dist-info → aiomisc-17.7.7.dist-info}/COPYING +0 -0
- {aiomisc-17.7.5.dist-info → aiomisc-17.7.7.dist-info}/WHEEL +0 -0
- {aiomisc-17.7.5.dist-info → aiomisc-17.7.7.dist-info}/entry_points.txt +0 -0
aiomisc/service/carbon.py
CHANGED
@@ -34,6 +34,7 @@ class CarbonSender(Service):
|
|
34
34
|
protocol: str = "udp"
|
35
35
|
namespace: Iterable[str] = ("",)
|
36
36
|
storage = TotalStorage
|
37
|
+
name: str = "carbon-sender"
|
37
38
|
_handle: PeriodicCallback
|
38
39
|
|
39
40
|
async def start(self) -> None:
|
@@ -50,7 +51,7 @@ class CarbonSender(Service):
|
|
50
51
|
|
51
52
|
set_client(client)
|
52
53
|
|
53
|
-
self._handle = PeriodicCallback(client.send)
|
54
|
+
self._handle = PeriodicCallback(client.send, name=self.name)
|
54
55
|
self._handle.start(self.send_interval, loop=self.loop)
|
55
56
|
log.info(
|
56
57
|
"Periodic carbon metrics sender started. Send to %s://%s:%d with "
|
aiomisc/service/profiler.py
CHANGED
@@ -9,17 +9,19 @@ from .base import Service
|
|
9
9
|
|
10
10
|
|
11
11
|
class Profiler(Service):
|
12
|
-
profiler
|
13
|
-
periodic
|
12
|
+
profiler: cProfile.Profile
|
13
|
+
periodic: PeriodicCallback
|
14
14
|
|
15
|
-
order = "cumulative"
|
15
|
+
order: str = "cumulative"
|
16
16
|
|
17
|
-
path = None
|
18
|
-
logger
|
17
|
+
path: Optional[str] = None
|
18
|
+
logger: logging.Logger
|
19
19
|
|
20
|
-
interval = 10
|
21
|
-
top_results = 10
|
22
|
-
log = logging.getLogger(__name__)
|
20
|
+
interval: int = 10
|
21
|
+
top_results: int = 10
|
22
|
+
log: logging.Logger = logging.getLogger(__name__)
|
23
|
+
|
24
|
+
name: str = "profiler"
|
23
25
|
|
24
26
|
async def start(self) -> None:
|
25
27
|
self.logger = self.log.getChild(str(id(self)))
|
aiomisc/service/sdwatchdog.py
CHANGED
@@ -37,6 +37,7 @@ class SDWatchdogService(Service):
|
|
37
37
|
socket_addr: Optional[str]
|
38
38
|
watchdog_interval: Optional[TimeoutType] = None
|
39
39
|
watchdog_timer: PeriodicCallback
|
40
|
+
name: str = "systemd-watchdog"
|
40
41
|
|
41
42
|
def __init__(
|
42
43
|
self,
|
@@ -86,7 +87,9 @@ class SDWatchdogService(Service):
|
|
86
87
|
sock.close()
|
87
88
|
|
88
89
|
async def start(self) -> None:
|
89
|
-
self.watchdog_timer = PeriodicCallback(
|
90
|
+
self.watchdog_timer = PeriodicCallback(
|
91
|
+
self.send, "WATCHDOG=1", name=self.name,
|
92
|
+
)
|
90
93
|
|
91
94
|
if self.is_connected and self.watchdog_interval is not None:
|
92
95
|
if self.watchdog_interval != WATCHDOG_INTERVAL:
|
aiomisc/service/tracer.py
CHANGED
@@ -28,6 +28,7 @@ class MemoryTracer(Service):
|
|
28
28
|
top_results: int = 20
|
29
29
|
|
30
30
|
group_by: GroupBy = GroupBy.lineno
|
31
|
+
name: str = "memory-tracer"
|
31
32
|
|
32
33
|
STAT_FORMAT: str = (
|
33
34
|
"%(count)8s | "
|
@@ -41,7 +42,7 @@ class MemoryTracer(Service):
|
|
41
42
|
log.warning("Start memory tracer")
|
42
43
|
tracemalloc.start()
|
43
44
|
|
44
|
-
self._tracer = PeriodicCallback(self.show_stats)
|
45
|
+
self._tracer = PeriodicCallback(self.show_stats, name=self.name)
|
45
46
|
self._log = log.getChild(str(id(self)))
|
46
47
|
|
47
48
|
self._snapshot_on_start = self.take_snapshot()
|
aiomisc/version.py
CHANGED
@@ -22,7 +22,7 @@ aiomisc/service/__init__.py,sha256=_JSkI4Q78UljG4CvhK6He2UGLxJaQS6cVwZ9QT0cSWo,6
|
|
22
22
|
aiomisc/service/aiohttp.py,sha256=Lfw1dm77zscBZP0H4sKYlVye7RfE0EPWeSSX5V-mvD0,4091
|
23
23
|
aiomisc/service/asgi.py,sha256=S6ejgg7GpHfUzuj46g8QuLXTHn0YWwqI_pAGbXfoNjE,1583
|
24
24
|
aiomisc/service/base.py,sha256=6xvD27Sh2jy-4JWer6n31FuSq798DZhLI730YYGQbYc,4322
|
25
|
-
aiomisc/service/carbon.py,sha256=
|
25
|
+
aiomisc/service/carbon.py,sha256=V60dFfjZqYXdSVsFFy5hyelVUKchpzTj4uvOosCJNmA,1791
|
26
26
|
aiomisc/service/cron.py,sha256=VM-FjdAhy_zFkU-YTdpBSxF79upvrsCo-3kdI9cZTOo,1975
|
27
27
|
aiomisc/service/dns/__init__.py,sha256=RT8_0H8LrQe8sz2xvA2BvLi6CiJVZeVFltNRAx9MN7o,254
|
28
28
|
aiomisc/service/dns/records.py,sha256=VE65kDSJ3Fg3-V60-AQQY2OxR89_ggaAc38k7vKUatM,8771
|
@@ -33,19 +33,19 @@ aiomisc/service/dns/zone.py,sha256=6Xmrl_leLalSiRQWWNuwGtZVw31Y93i9K2j0JU1vt-4,2
|
|
33
33
|
aiomisc/service/grpc_server.py,sha256=G1iRGX3jAfv3fpzNnw_n6UuhORmIZK4cz6aAi7t7qcU,4553
|
34
34
|
aiomisc/service/periodic.py,sha256=Q871Kw6L_L4EDKVl_0pJI2eLWpAjwYs9FnLKeCc9lBY,1283
|
35
35
|
aiomisc/service/process.py,sha256=mZf8muZJNWQo95pUmzchMk08MJMhLifFK8m4CnNX49k,4477
|
36
|
-
aiomisc/service/profiler.py,sha256=
|
36
|
+
aiomisc/service/profiler.py,sha256=cqLCImHD2w1QZsu8cjliqeENsYd9p9tNzQa0KvdJCQ4,1406
|
37
37
|
aiomisc/service/raven.py,sha256=VHqnXWx-_r71_pjFniIB_E4CgT2reuRD1EB4yEC0hzE,12214
|
38
|
-
aiomisc/service/sdwatchdog.py,sha256=
|
38
|
+
aiomisc/service/sdwatchdog.py,sha256=LSzSYYyGJy7PxOMTpAIDJ95sbFilm9N9wGWdxqIPyf4,4547
|
39
39
|
aiomisc/service/tcp.py,sha256=gIdm4wXT191TMpL3Yzm_I7y--1kVxBLioN5lBP8mlhs,5507
|
40
40
|
aiomisc/service/tls.py,sha256=EyWADLNV4P0BSXE8sALXwZUTHo6zjstMS7ecka-bBmU,9337
|
41
|
-
aiomisc/service/tracer.py,sha256=
|
41
|
+
aiomisc/service/tracer.py,sha256=S8HXRsUEEuCHbP8zlx409rUZJ0fEC6enCP3a0LXyeHk,2874
|
42
42
|
aiomisc/service/udp.py,sha256=_uHzMAkpd7y-yt3tE9jN2llEETG7r47g2DF1SO7xyig,3616
|
43
43
|
aiomisc/service/uvicorn.py,sha256=I2KYQL9ysFFqQHPYK00G4EoceA7J9p9Or6v1ATpLGw8,4324
|
44
44
|
aiomisc/signal.py,sha256=_iiC2jukXg7-LLirIl1YATlKIIsKLbmTNFr1Ezheu7g,1728
|
45
45
|
aiomisc/thread_pool.py,sha256=591u5HV1aBmBRcaVm4kAtMLPZOb6veqhT9wkts_knqE,14017
|
46
46
|
aiomisc/timeout.py,sha256=5jNDooLW4MAe6ZUIKhkiX29CoyI0zlXd-dZoZwQPxak,920
|
47
47
|
aiomisc/utils.py,sha256=6yTfTpeRCVzfZp-MJCmB1oayOHUBVwQwzC3U5PBAjn8,11919
|
48
|
-
aiomisc/version.py,sha256=
|
48
|
+
aiomisc/version.py,sha256=s0OGgHOIMHrEON6vN-paBHIiLD43o32aTQ1MhgHvMUo,154
|
49
49
|
aiomisc/worker_pool.py,sha256=GA91KdOrBlqHthbVSTxu_d6BsBIbl-uKqW2NxqSafG0,11107
|
50
50
|
aiomisc_log/__init__.py,sha256=N3g8Ea1YE2dWPDd-MwohuAn3Y0pBxSyL4l4Jsxqkv0Q,4854
|
51
51
|
aiomisc_log/enum.py,sha256=_zfCZPYCGyI9KL6TqHiYVlOfA5U5MCbsuCuDKxDHdxg,1549
|
@@ -63,8 +63,8 @@ aiomisc_worker/process_inner.py,sha256=8ZtjCSLrgySW57OIbuGrpEWxfysRLYKx1or1YaAqx
|
|
63
63
|
aiomisc_worker/protocol.py,sha256=1smmlBbdreSmnrxuhHaUMUC10FO9xMIEcedhweQJX_A,2705
|
64
64
|
aiomisc_worker/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
65
65
|
aiomisc_worker/worker.py,sha256=f8nCFhlKh84UUBUaEgCllwMRvVZiD8_UUXaeit6g3T8,3236
|
66
|
-
aiomisc-17.7.
|
67
|
-
aiomisc-17.7.
|
68
|
-
aiomisc-17.7.
|
69
|
-
aiomisc-17.7.
|
70
|
-
aiomisc-17.7.
|
66
|
+
aiomisc-17.7.7.dist-info/COPYING,sha256=Ky_8CQMaIixfyOreUBsl0hKN6A5fLnPF8KPQ9molMYA,1125
|
67
|
+
aiomisc-17.7.7.dist-info/METADATA,sha256=jUwmbr5ctiWOcH-QZses2_BPjXgTwhCcAdf7H5QuWhQ,15685
|
68
|
+
aiomisc-17.7.7.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
|
69
|
+
aiomisc-17.7.7.dist-info/entry_points.txt,sha256=KRsSPCwKJyGTWrvzpwbS0yIDwzsgDA2X6f0CBWYmNao,55
|
70
|
+
aiomisc-17.7.7.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|