4.05L Create heatmap panel - MartinWong06/grafana GitHub Wiki

  1. Click on the "Add" button in the Grafana dashboard, then select "Visualization" from the dropdown menu.
  2. Choose "Heatmap" as the visualization type.
  3. Click on the "Panel Title" to open the panel settings and choose the data source.
  4. In the "Query" tab, enter your query. Here is an example:
    rate(prometheus_http_requests_total{code="200",handler="/api/v1/query_range",instance="localhost:9090",job="prometheus"}[5m])
    This query visualize the Prometheus HTTP requests by their status code over 5 min durations.

Example

sum by (time, status) (go_memstats_heap_inuse_bytes)

image

  1. In the "Options" tab, you can customize the heatmap settings, such as the color scale and legend display.
  2. Click "Apply" to save your changes and view the heatmap.
⚠️ **GitHub.com Fallback** ⚠️