Unit of measurement of a CPU in DOCKERS?

0

I am analyzing a JSON in dockers.stats, of which the CPU structure is the following:

"cpu_stats":{
        "cpu_usage":{
            "total_usage":1523207123477,
            "percpu_usage":[1523207123477],
            "usage_in_kernelmode":629340000000,
            "usage_in_usermode":799260000000},
            "system_cpu_usage":11960316930000000,
            "online_cpus":1,
            "throttling_data":{
                "periods":0,"throttled_periods":0,"throttled_time":0
            }
        },
            "precpu_stats":{
                "cpu_usage":{
                    "total_usage":1523206502893,"percpu_usage":[1523206502893],
                    "usage_in_kernelmode":629340000000,"usage_in_usermode":799260000000
                },
                "system_cpu_usage":11960315940000000,
                "online_cpus":1,
                "throttling_data":{
                    "periods":0,"throttled_periods":0,"throttled_time":0
                    }
                },

I need to know how much CPU usage (byte is not the case), in order to convert to a more accurate data, and display it in a graph.

Thank you very much.

    
asked by crmiguez 06.07.2018 в 10:34
source

0 answers