cockroachdb / cockroachdb/cockroach

metric: `can_view_all_metrics` capability enables host metrics in prometheus endpoint

Open
#143,435 0 comments 0 reactions 0 assignees View on GitHub
C-enhancement T-supportability
Dominant language
Go
Stars
32.5k
Forks
4.1k
PR merge metrics
PR metrics pending

Description

When the `can_view_all_metrics` capability is enabled for a virtual cluster, the `/_status/vars` endpoint should include host metrics as well (such as `sys_rss`, `sys_cpu_combined_percent_normalized`, etc.

Today, when accessing `/_status/vars` for a virtual cluster, we can only see host metrics when we use the `tenant=system` cookie. We should enable this for arbitrary virtual clusters when the capability is enabled.

Jira issue: CRDB-48832

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.