Expand description

Service for monitoring KubOS Linux processes, memory, and CPU usage

GraphQL Schema

schema {
    query: Query
}

type Query {
    ping: String!
    memInfo: MemInfo!
    ps(pids: [Int!] = null): [ProcInfo!]!
}

type LoadAvg {
    load_1m: Float
    load_5m: Float
    load_15m: Float
    processes_active: Float
    processes_total: Float
    last_pid: Float
}

type MemInfo {
    total: Int
    free: Int
    available: Int
    lowFree: Int
}

type ProcInfo {
    pid: Int!
    uid: Int
    gid: Int
    usr: String
    grp: String
    state: String
    ppid: Int
    mem: Int
    rss: Int
    threads: Int
    cmd: String
}

Modules

loadavg 🔒
meminfo 🔒
objects 🔒
process 🔒
schema 🔒
userinfo 🔒

Macros

Generates a path from parts starting at /

Functions

main 🔒