美文网首页
VictoriaLogs tenant 查询属性之 Accoun

VictoriaLogs tenant 查询属性之 Accoun

作者: 偷油考拉 | 来源:发表于2024-03-04 14:24 被阅读0次

    多租户 - Multitenancy

    VictoriaLogs 支持多租户。租户通过 (AccountID, ProjectID) 对标识,AccountID and ProjectID 是任意32位无符号整数。AccountID and ProjectID fields 在 data ingestion 阶段注入,querying 通过设置 AccountID and ProjectID 请求Header 查询。

    如果 AccountID and/or ProjectID 请求Header 没有被设置,则默认 0

    默认,使用 (AccountID=0, ProjectID=0) 租户 查询。如果要查询其他租户,需要设置 request header 指定AccountID & ProjectID,如下范例 (AccountID=12, ProjectID=34)租户:

    curl http://localhost:9428/select/logsql/query -H 'AccountID: 12' -H 'ProjectID: 34' -d 'query=error'
    

    WEB UI 存在如下限制

    这是第一个版本,仅提供最小功能。有如下限制:

    • 查询结果限制 1000 行。参考 filters 进行更多设置。
    • 针对租户0进行查询

    未来的版本会移除这些限制。

    使用 command line interface 可以规避这些限制。

    当前版本,在 data ingestion 阶段还是设置 AccountID=0, ProjectID=0 吧。

    相关文章

      网友评论

          本文标题:VictoriaLogs tenant 查询属性之 Accoun

          本文链接:https://www.haomeiwen.com/subject/nexrzdtx.html