Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[FEATURE]: 希望 Loki Flusher 支持结构化元数据 #1810

Open
callmerichman opened this issue Oct 17, 2024 · 0 comments
Open

[FEATURE]: 希望 Loki Flusher 支持结构化元数据 #1810

callmerichman opened this issue Oct 17, 2024 · 0 comments
Labels
feature request New feature request

Comments

@callmerichman
Copy link

callmerichman commented Oct 17, 2024

背景
在不索引高基数标签的情况下,在查询时可以使用高基数标签

示例
POST /loki/api/v1/push

{
  "streams": [
    {
      "stream": {
        "label": "value"
      },
      "values": [
          [ "<unix epoch in nanoseconds>", "<log line>", {"trace_id": "0242ac120002", "user_id": "superUser123"}]
      ]
    }
  ]
}

参考
https://grafana.com/docs/loki/latest/get-started/labels/structured-metadata/
https://grafana.com/docs/loki/latest/reference/loki-http-api/#ingest-logs

@callmerichman callmerichman added the feature request New feature request label Oct 17, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
feature request New feature request
Projects
None yet
Development

No branches or pull requests

1 participant