We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
参考https://cwiki.yunify.com/pages/viewpage.action?pageId=197085143 方案二实现
orgId的表示
orgId
X-Scope-OrgID
org_id
system-org
org-ingester(接收外部数据)
org-<orgId>
cluster-ingester(接收内部数据)
--labels
org_id="system-org"
org-router(路由外部数据到org-ingester)
org-
gateway:
/{cluster}/api/v1/receive
/api/v1/receive
/{cluster}/api/v1/query
org_id=~"system-org|"
/api/v1/query
org_id="<orgId>"
whizard-telemetry-apiserver:
X-Scope-OrgID: system-org
whizard-alerting:
kse-system
org_id: <orgId>
X-Scope-OrgID: <orgId>
The text was updated successfully, but these errors were encountered:
junotx
No branches or pull requests
参考https://cwiki.yunify.com/pages/viewpage.action?pageId=197085143 方案二实现
orgId
的表示orgId
(命名上受K8S CR名称的约束)X-Scope-OrgID
header来标记orgId
org_id
标签来标记orgId
system-org
,默认创建org-ingester(接收外部数据)
org-<orgId>
前缀命名,与clusters对应的ingesters(称作cluster-ingester)进行区分cluster-ingester(接收内部数据)
--labels
中加上org_id="system-org"
以标记数据所属的Orgorg-router(路由外部数据到org-ingester)
org-
前缀命名,以与旧的Router CR(称作cluster-router)进行区分gateway:
/{cluster}/api/v1/receive
接收cluster的数据,属于系统Org,代理到cluster-router/api/v1/receive
,通过X-Scope-OrgID
header识别Orgsystem-org
的数据代理到cluster-router/{cluster}/api/v1/query
等api查询cluster的数据,属于系统Org,在promql或matchers条件中注入org_id=~"system-org|"
(这里包含org_id为空的情况以兼容旧数据)/api/v1/query
等api查询所有数据,通过X-Scope-OrgID
header识别Org,在promql或matchers条件中注入org_id="<orgId>"
whizard-telemetry-apiserver:
X-Scope-OrgID: system-org
,或promql/matchers中包含org_id="system-org"
whizard-alerting:
org_id="system-org"
kse-system
时,支持按模板配置规则,支持自定义规则时选择集群等org_id="<orgId>"
org_id: <orgId>
标签org_id: <orgId>
标签转换到加上headerX-Scope-OrgID: <orgId>
上The text was updated successfully, but these errors were encountered: