selfprivacy-rest-api/selfprivacy_api/graphql/queries/monitoring.py
2024-07-08 18:18:07 +03:00

19 lines
393 B
Python

import strawberry
from selfprivacy_api.utils.prometheus import PrometheusQueries
@strawberry.type
class Monitoring:
@strawberry.field
def disk_usage():
return PrometheusQueries.disk_usage()
@strawberry.field
def memory_usage():
return PrometheusQueries.memory_usage()
@strawberry.field
def cpu_usage():
return PrometheusQueries.cpu_usage()