我按照这些说明在 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
为什么找不到标签?谢谢。