美文网首页
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 吧。

相关文章

  • 聊聊cortex的tenant

    序 本文主要研究一下cortex的tenant tenant cortex/pkg/tenant/tenant.g...

  • Saas数据库租户隔离动态数据源写法

    一、前言 Saas租户隔离常用的有两种方法: 表字段增加tenant,查询时通过where语句进行隔离直接数据库级...

  • 08.JavaScript对象

    定义 查询属性 删除属性

  • Hybris Administration console功能一

    Platform的tenant视图,点击View按钮查看tenant明细: 比如数据库DB url,以及该tena...

  • sequlize

    插入数据 查询数据 findAll()查询部分属性a. 查询属性(字段)可以通过传入一个嵌套数据进行重命名 ...

  • api

    目录 1. 查询指定项目属性接口 *** **1. 查询指定项目属性** ###### 接口功能 > 获取制定项目...

  • Easy password management

    Easy password management is a simple and practical accoun...

  • Courage 勇气

    If courage goes first and risks are not taken into accoun...

  • 通过句子背单词91

    1,The tenant is discontented with the content of the agre...

  • 接口文档

    查询指定项目属性接口 1. 查询指定项目属性 接口属性 功能: 获取制定项目的分类信息 主码: 303 子码: 1...

网友评论

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

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