mirror of
https://github.com/yavook/kiwi-simple-metrics.git
synced 2024-11-24 16:33:01 +00:00
19 lines
296 B
Python
19 lines
296 B
Python
from .metrics import cpu_metric, disk_metric
|
|
from .settings import SETTINGS
|
|
|
|
|
|
def main() -> None:
|
|
# env parameters
|
|
print(SETTINGS.model_dump())
|
|
|
|
# CPU metric
|
|
print(cpu_metric())
|
|
|
|
# MEM metric
|
|
|
|
# DISK metric
|
|
print(disk_metric())
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|