Adding a Panel
6 min
panels are the individual widgets on a dashboard each panel visualizes a specific metric or query result adding panels lets you build up a complete view of the metrics you care about in one place from your dashboard, click add panel a dialog appears with two options create from scratch build a new panel with a custom query and visualization import from library reuse a panel from a saved template or an existing dashboard to avoid rebuilding common visualizations create from scratch step 1 select create from scratch step 2 configure your query in the query editor at the bottom queries define what data the panel displays select a data source, opentelemetry or aws/dev (available if an aws account is connected) for opentelemetry, select the dataset ( traces , metrics , logs , etc ) and configure the metric , aggregation , group by , filters , and legend format using the query builder tab switch to the promql tab to write https //prometheus io/docs/prometheus/latest/querying/basics/ directly add multiple queries using add query when you want to compare or combine multiple metrics in the same panel add expressions using add expression to apply math, reduce, or condition logic across query results for more information on setting up queries, see docid\ t qrgpbasmxzvp 1udlcp for expressions, see docid 6ugpkxobmned8soegnba3 step 3 click run query to execute the query and preview the result in the visualization area running the query lets you verify the data looks correct before saving the panel step 4 select a panel type from the dropdown on the right to control how the data is visualized choosing the right type makes data easier to interpret, for example, use timeseries for trends over time or stats for a single current value available types are timeseries , stats , table , pie chart , bar chart , histogram , logs list , spans list , alarms list , issues list , and text step 5 in the right side settings panel under general > panel , enter a name and description so the panel is easy to identify on the dashboard you can also add links using add link to connect the panel to related resources step 6 customize the panel appearance using the general and overrides tabs on the right general configure panel name, axes, legend, graph options, tooltip, standard options, threshold, data links & actions, and time range overrides click add field override to apply custom display settings to specific fields, useful when different data series need different formatting step 7 toggle table view at the top of the panel editor to switch between the visual chart and a raw data table showing timestamps and values this is helpful for inspecting exact data points step 8 use the time range picker at the top to set the time window for this panel step 9 click save & close to save the panel and return to the dashboard, or save to save without exiting the editor import from library select import from library to add a pre built panel to your dashboard without building it from scratch the import panel dialog offers two options import from templates select a template from the dropdown to import a panel from a pre built kloudmate template import from my dashboards select an existing dashboard from the dropdown to reuse a panel you have already built this saves time when the same metric needs to appear across multiple dashboards once imported, you can edit , delete , or duplicate the panel using the panel’s more options menu