从另一个测量值混合的流入二级田间值

发布于 2025-02-06 05:53:53 字数 447 浏览 3 评论 0原文

我将数据发送到 infux-db 1.8 OSS 中,该>具有2个测量值。在该测量中,从另一个测量值获得了混合的场值。

例如:

测量1

字段:苹果,香蕉,葡萄,橙色

测量2

字段:土豆,黄瓜,洋葱,胡萝卜,胡萝卜

当我检查测量1 ,我得到了结果:

苹果香蕉马铃薯洋葱橙。

为什么会发生这种情况?我正在使用 python 将数据推向流入。对于测量1 测量2 我使用的是单独的功能。并使用多处理同时推动涌入。

请建议为什么会发生这种情况。

I'm sending data into influx-DB 1.8 OSS, which has 2 measurements. In that one measurement got mixed field values from another measurement.

Eg:

measurement 1

field: Apple, Banana, Grapes, Orange

Measurement 2

field: Potato, Cucumber, Onion, Carrot

When I checked measurement 1, I got the result:

Apple Banana Potato Grapes Onion Orange.

Why did this happen? I'm using Python to push data to InfluxDB. For measurement 1 and measurement 2 I'm using separate function. And using Multiprocessing to Push at the same time to InfluxDB.

Please suggest why this is happening.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

多情癖 2025-02-13 05:53:53

我现在无权添加评论,因此请在此处发布建议。

您可以尝试为Python客户分享您的JSON主体,以便我们可以钉住根本原因吗?我可能只会仔细检查JSON主体中的测量部分。有一个很棒的示例您可以尝试。就您而言,身体可能是:

>>> json_body = 
    [
        {
            "measurement": "measurement 1",
            "time": "2018-03-28T8:01:00Z",
            "fields": {
                "Apple": 11,
                "Banana": 12,
                "Grapes": 13,
                "Orange": 14
            }
        },
        {
            "measurement": "measurement 2",
            "time": "2018-03-28T8:02:00Z",
            "fields": {
                "Potato": 21,
                "Cucumber": 22,
                "Onion": 23,
                "Carrot": 24
            }
        }
    ]

I have no right to add comment right now so post suggestions here.

Could you try share your JSON body for your Python client so that we could nail down the root cause? I might just double check the measurement section in the JSON body. There is a great example you could try on. In your case, the body could be:

>>> json_body = 
    [
        {
            "measurement": "measurement 1",
            "time": "2018-03-28T8:01:00Z",
            "fields": {
                "Apple": 11,
                "Banana": 12,
                "Grapes": 13,
                "Orange": 14
            }
        },
        {
            "measurement": "measurement 2",
            "time": "2018-03-28T8:02:00Z",
            "fields": {
                "Potato": 21,
                "Cucumber": 22,
                "Onion": 23,
                "Carrot": 24
            }
        }
    ]
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文