在grafana仪表板上看不到特定“ metric_name”的“ SUM”。

时间:2018-12-03 10:02:23

标签: elasticsearch grafana

在我的本地系统上,我正在运行ElasticSearch和Kibana。

使用elasticpython,我为批量插入编写了几行代码。这是批量插入的代码:

es = Elasticsearch()
j = 10002
actions = []
while (j <= 210000):
    body = {"number_of_connections": j + 88, "authenticate": "true",
            "failed": "false", "cpu_usage": random.randint(27, 88)}
    action = {
        "_index": "patchus-index",
        "_type": "patchus-index",
        "_id": j,
        "number_of_connections": random.randint(88, 103),
        "authenticate": True,
        "failed": False,
        "cpu_usage": random.randint(27, 88),
        "timestamp": datetime.now()
    }
    actions.append(action)
    j += 1

helpers.bulk(es, actions)

即使我将数据源定义为_patchus-index时,问题仍然存在,我无法看到仪表板的任何可视化。任何帮助,将不胜感激。 我正在这样查询:

enter image description here

TIA

0 个答案:

没有答案