准备JSON发布到elasticsearch

时间:2018-05-24 13:59:25

标签: python elasticsearch

我正在努力从CloudLinux获取在xenserver池中运行的性能指标。

因为目前我将数据发布到Influxdb,这里是每个Influxdb记录的字典

{
    "fields": {
        "lNETI": 0,
        "lNETO": 0,
        "lEP": 20,
        "lMEM": 262144,
        "lCPUW": 100,
        "CPU": 0,
        "lCPU": 10000,
        "lNPROC": 100,
        "lIO": 1024,
        "lIOPS": 1024,
        "nCPU": 1,
        "NPROC": 0,
        "NETO": 0,
        "fMEMPHY": 0,
        "NETI": 0,
        "fMEM": 0,
        "IOPS": 0,
        "IO": 0,
        "fNPROC": 0,
        "EP": 0,
        "MEM": 0,
        "MEMPHY": 0,
        "fEP": 0,
        "lMEMPHY": 262144
    },
    "time": "2018-05-24T20:38:33Z",
    "tags": {
        "vm": "myvmid",
        "host": "cpanel.bino.net",
        "user": "johndoe",
        "xpool": "mypool"
    },
    "measurement": "lve"
}

我的问题:弹性搜索的正确json如何基于以上数据?

0 个答案:

没有答案