7.6.2.60. QueryBrowser


A component that renders a graph of the results from a Prometheus PromQL query along with controls for interacting with the graph.

Example

<QueryBrowser
  defaultTimespan={15 * 60 * 1000}
  namespace={namespace}
  pollInterval={30 * 1000}
  queries={[
    'process_resident_memory_bytes{job="console"}',
    'sum(irate(container_network_receive_bytes_total[6h:5m])) by (pod)',
  ]}
/>

Expand
Parameter NameDescription

customDataSource

(optional) Base URL of an API endpoint that handles PromQL queries. If provided, this is used instead of the default API for fetching data.

defaultSamples

(optional) The default number of data samples plotted for each data series. If there are many data series, QueryBrowser might automatically pick a lower number of data samples than specified here.

defaultTimespan

(optional) The default timespan for the graph in milliseconds - defaults to 1,800,000 (30 minutes).

disabledSeries

(optional) Disable (do not display) data series with these exact label / value pairs.

disableZoom

(optional) Flag to disable the graph zoom controls.

filterLabels

(optional) Optionally filter the returned data series to only those that match these label / value pairs.

fixedEndTime

(optional) Set the end time for the displayed time range rather than showing data up to the current time.

formatSeriesTitle

(optional) Function that returns a string to use as the title for a single data series.

GraphLink

(optional) Component for rendering a link to another page (for example getting more information about this query).

hideControls

(optional) Flag to hide the graph controls for changing the graph timespan, and so on.

isStack

(optional) Flag to display a stacked graph instead of a line graph. If showStackedControl is set, it is still possible for the user to switch to a line graph.

namespace

(optional) If provided, data is only returned for this namespace (only series that have this namespace label).

onZoom

(optional) Callback called when the graph is zoomed.

pollInterval

(optional) If set, determines how often the graph is updated to show the latest data (in milliseconds).

queries

Array of PromQL queries to run and display the results in the graph.

showLegend

(optional) Flag to enable displaying a legend below the graph.

showStackedControl

Flag to enable displaying a graph control for switching between stacked graph mode and line graph mode.

timespan

(optional) The timespan that should be covered by the graph in milliseconds.

units

(optional) Units to display on the Y-axis and in the tooltip.

Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 문서 정보

Legal Notice

Theme

© 2026 Red Hat
맨 위로 이동