Skip to main content
In this lesson we’ll walk through the Prometheus expression browser — the built-in web UI for running PromQL queries directly against your Prometheus server. You’ll learn how to run ad-hoc queries, inspect raw time series, visualize results, and explore useful server pages for configuration, targets, rules, and alerts. To open the expression browser, point your web browser to the IP or hostname of your Prometheus server and the Prometheus port (default: 9090). For a local install, use: http://localhost:9090 Key UI elements:
  • Expression input: type PromQL queries here.
  • Execute button: run the query at the chosen evaluation time.
  • Graph / Console tabs: visualize results or view raw series.
  • Autocomplete / Highlighting / History: help craft and re-run queries.
Below is the expression browser with metric autocomplete suggesting metrics related to “up”.
The image shows the Prometheus time series database interface on a web browser, with a search bar suggesting metric names related to "up".
Basic queries Start with a simple built-in metric, up, which returns one time series per monitored target with labels that identify that target. Example Console output:
  • In Prometheus, a value of 1 means the target is reachable (UP).
  • A value of 0 means the target is unreachable (DOWN).
  • Press Execute and switch to the Console tab to see the raw series and their current values.
Drilling into metrics More detailed metrics produce many series — for example, CPU metrics are split by CPU/core, mode, instance, and job. Example:
Time-travel evaluation The expression browser supports historical evaluation. Use the calendar/time selector to set a past evaluation time and re-run the query to see values at that timestamp.
The image shows a Prometheus web interface on Firefox running on Ubuntu, displaying a data query with a calendar and time selection tool. The interface includes options like "Enable autocomplete" and displays CPU seconds for different nodes.
Graphing queries Switch to the Graph tab to visualize query results over a time range. You can:
  • Adjust the time window (e.g., 1h, 30m, custom range).
  • Choose chart styles and display options.
  • Filter or aggregate series if a metric returns many lines (otherwise all series will be plotted).
The image shows a Prometheus graph displaying CPU usage metrics over time with various data series, while running on a Linux operating system within a Firefox web browser.
Query authoring helpers The expression input includes autocomplete, syntax highlighting, and a query history — toggle these features via the checkboxes in the UI. Use autocomplete to discover metric names and label keys quickly. Useful server pages The expression browser exposes several server pages under the Status and main navigation menus. These pages are essential for debugging Prometheus itself. Example (truncated) of a running prometheus.yml shown on the Configuration page:
The Targets page helps you spot unreachable endpoints and scrape errors. The example below shows some endpoints marked DOWN with scrape errors and others UP:
The image shows a Prometheus web interface displaying the status of various endpoints, with some marked as "DOWN" and others as "UP". It highlights scrape errors for two "ec2" endpoints and a proper connection for "node" and "prometheus".
Best practices and next steps
Use the expression browser for exploratory, ad-hoc queries and troubleshooting. For long-term dashboards and richer visualizations, connect Prometheus to Grafana and build persistent dashboards there.
Do not expose the Prometheus expression browser directly to the public internet. Use network controls, authentication proxies, or restricted access to avoid leaking metrics and configuration.
Links and references Summary This covers the core usage of the Prometheus expression browser:
  • Run PromQL queries and use autocomplete to author queries faster.
  • View raw time series in the Console and plot metrics in the Graph tab.
  • Use time-travel evaluation to inspect historical metric values.
  • Inspect Prometheus configuration, targets, rules, and alerts via the server pages for effective troubleshooting and monitoring.

Watch Video