4.05L Create heatmap panel - MartinWong06/grafana GitHub Wiki
- Click on the "Add" button in the Grafana dashboard, then select "Visualization" from the dropdown menu.
- Choose "Heatmap" as the visualization type.
- Click on the "Panel Title" to open the panel settings and choose the data source.
- In the "Query" tab, enter your query. Here is an example:
This query visualize the Prometheus HTTP requests by their status code over 5 min durations.
rate(prometheus_http_requests_total{code="200",handler="/api/v1/query_range",instance="localhost:9090",job="prometheus"}[5m])
Example
sum by (time, status) (go_memstats_heap_inuse_bytes)
- In the "Options" tab, you can customize the heatmap settings, such as the color scale and legend display.
- Click "Apply" to save your changes and view the heatmap.