2023-08-31 11:17:19 +00:00
|
|
|
from . import metrics
|
2023-08-30 22:01:31 +00:00
|
|
|
from .settings import SETTINGS
|
|
|
|
|
2023-08-30 21:08:16 +00:00
|
|
|
|
|
|
|
def main() -> None:
|
2023-08-30 23:49:07 +00:00
|
|
|
# env parameters
|
2023-08-30 22:01:31 +00:00
|
|
|
print(SETTINGS.model_dump())
|
2023-08-30 21:08:16 +00:00
|
|
|
|
2023-08-30 23:49:07 +00:00
|
|
|
# CPU metric
|
2023-08-31 11:17:19 +00:00
|
|
|
print(metrics.cpu())
|
2023-08-30 23:49:07 +00:00
|
|
|
|
|
|
|
# MEM metric
|
2023-08-31 12:26:50 +00:00
|
|
|
print(metrics.memory())
|
2023-08-30 23:49:07 +00:00
|
|
|
|
|
|
|
# DISK metric
|
2023-08-31 11:17:19 +00:00
|
|
|
print(metrics.disk())
|
2023-08-30 23:49:07 +00:00
|
|
|
|
2023-08-30 21:08:16 +00:00
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
main()
|