Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
Add heatmap to visualize samples & spans per req
Browse files Browse the repository at this point in the history
Signed-off-by: Arunprasad Rajkumar <ar.arunprasad@gmail.com>
  • Loading branch information
arajkumar committed Dec 21, 2022
1 parent f78b2de commit b846443
Show file tree
Hide file tree
Showing 2 changed files with 176 additions and 15 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ We use the following categories for changes:
configuration. Supersedes `startup.dataset.config` which accepts a string
instead of a mapping [#1737]
- Add alert to notify about duplicate sample/metric ingestion. [#1688]
- Add histogram to track number samples/metadata/span sent per request [#1767]

### Changed
- Reduced the verbosity of the logs emitted by the vacuum engine [#1715]
Expand Down
190 changes: 175 additions & 15 deletions docs/mixin/dashboards/promscale.json
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@
},
"gridPos": {
"h": 9,
"w": 8,
"w": 12,
"x": 0,
"y": 10
},
Expand Down Expand Up @@ -475,6 +475,86 @@
"title": "Requests",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"fieldConfig": {
"defaults": {
"custom": {
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"scaleDistribution": {
"type": "linear"
}
}
},
"overrides": []
},
"gridPos": {
"h": 9,
"w": 12,
"x": 12,
"y": 10
},
"id": 71,
"options": {
"calculate": false,
"cellGap": 1,
"color": {
"exponent": 0.5,
"fill": "dark-orange",
"mode": "scheme",
"reverse": false,
"scale": "exponential",
"scheme": "Oranges",
"steps": 64
},
"exemplars": {
"color": "rgba(255,0,255,0.7)"
},
"filterValues": {
"le": 1e-9
},
"legend": {
"show": true
},
"rowsFrame": {
"layout": "auto"
},
"tooltip": {
"show": true,
"yHistogram": false
},
"yAxis": {
"axisPlacement": "left",
"reverse": false,
"unit": "none"
}
},
"pluginVersion": "9.2.3",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"editorMode": "code",
"expr": "sum(rate(promscale_ingest_items_received_bucket{kind=\"sample\", namespace=~\"$namespace\"}[$__rate_interval])) by (le)",
"format": "heatmap",
"hide": false,
"legendFormat": "__auto",
"range": true,
"refId": "D"
}
],
"title": "Samples per request",
"type": "heatmap"
},
{
"datasource": {
"type": "prometheus",
Expand Down Expand Up @@ -535,9 +615,9 @@
},
"gridPos": {
"h": 9,
"w": 8,
"x": 8,
"y": 10
"w": 12,
"x": 0,
"y": 19
},
"id": 10,
"interval": "2m",
Expand Down Expand Up @@ -632,9 +712,9 @@
},
"gridPos": {
"h": 9,
"w": 8,
"x": 16,
"y": 10
"w": 12,
"x": 12,
"y": 19
},
"id": 8,
"interval": "2m",
Expand Down Expand Up @@ -768,9 +848,9 @@
},
"gridPos": {
"h": 9,
"w": 8,
"w": 12,
"x": 0,
"y": 11
"y": 29
},
"id": 9,
"interval": "2m",
Expand Down Expand Up @@ -804,6 +884,86 @@
"title": "Requests",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"fieldConfig": {
"defaults": {
"custom": {
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"scaleDistribution": {
"type": "linear"
}
}
},
"overrides": []
},
"gridPos": {
"h": 9,
"w": 12,
"x": 12,
"y": 29
},
"id": 73,
"options": {
"calculate": false,
"cellGap": 1,
"color": {
"exponent": 0.5,
"fill": "dark-orange",
"mode": "scheme",
"reverse": false,
"scale": "exponential",
"scheme": "Oranges",
"steps": 64
},
"exemplars": {
"color": "rgba(255,0,255,0.7)"
},
"filterValues": {
"le": 1e-9
},
"legend": {
"show": true
},
"rowsFrame": {
"layout": "auto"
},
"tooltip": {
"show": true,
"yHistogram": false
},
"yAxis": {
"axisPlacement": "left",
"reverse": false,
"unit": "none"
}
},
"pluginVersion": "9.2.3",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"editorMode": "code",
"expr": "sum(rate(promscale_ingest_items_received_bucket{kind=\"span\", namespace=~\"$namespace\"}[$__rate_interval])) by (le)",
"format": "heatmap",
"hide": false,
"legendFormat": "__auto",
"range": true,
"refId": "D"
}
],
"title": "Spans per request",
"type": "heatmap"
},
{
"datasource": {
"type": "prometheus",
Expand Down Expand Up @@ -865,9 +1025,9 @@
},
"gridPos": {
"h": 9,
"w": 8,
"x": 8,
"y": 11
"w": 12,
"x": 0,
"y": 38
},
"id": 7,
"interval": "2m",
Expand Down Expand Up @@ -961,9 +1121,9 @@
},
"gridPos": {
"h": 9,
"w": 8,
"x": 16,
"y": 11
"w": 12,
"x": 12,
"y": 38
},
"id": 11,
"interval": "2m",
Expand Down

0 comments on commit b846443

Please sign in to comment.