mirror of
https://github.com/yavook/kiwi-simple-metrics.git
synced 2024-11-21 23:32:59 +00:00
20 lines
303 B
Python
20 lines
303 B
Python
from . import metrics
|
|
from .settings import SETTINGS
|
|
|
|
|
|
def main() -> None:
|
|
# env parameters
|
|
print(SETTINGS.model_dump())
|
|
|
|
# CPU metric
|
|
print(metrics.cpu())
|
|
|
|
# MEM metric
|
|
print(metrics.memory())
|
|
|
|
# DISK metric
|
|
print(metrics.disk())
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|