【发布时间】:2021-12-16 23:20:56
【问题描述】:
我根据these instructions在docker本地运行loki、pomtrail、grafana
当我尝试运行以下测试以直接向 loki 发送数据时:
curl -i -H "Content-type: application/json" -X POST --data '{ "streams": [ { "labels": { "job": "randomjob" }, "entries": [{ "ts": "2021-10-12T16:13:06.801064Z", "line": "TEST!" }] } ] }' http://localhost:3100/loki/api/v1/push
我得到错误:
HTTP/1.1 400 Bad Request
Content-Type: text/plain; charset=utf-8
X-Content-Type-Options: nosniff
Date: Tue, 02 Nov 2021 12:09:26 GMT
Content-Length: 53
error at least one label pair is required per stream
为什么找不到标签? 谢谢。
【问题讨论】:
标签: logging grafana-loki loki