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

Commit b846443

Browse files
committed
Add heatmap to visualize samples & spans per req
Signed-off-by: Arunprasad Rajkumar <[email protected]>
1 parent f78b2de commit b846443

File tree

2 files changed

+176
-15
lines changed

2 files changed

+176
-15
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ We use the following categories for changes:
2323
configuration. Supersedes `startup.dataset.config` which accepts a string
2424
instead of a mapping [#1737]
2525
- Add alert to notify about duplicate sample/metric ingestion. [#1688]
26+
- Add histogram to track number samples/metadata/span sent per request [#1767]
2627

2728
### Changed
2829
- Reduced the verbosity of the logs emitted by the vacuum engine [#1715]

docs/mixin/dashboards/promscale.json

Lines changed: 175 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@
440440
},
441441
"gridPos": {
442442
"h": 9,
443-
"w": 8,
443+
"w": 12,
444444
"x": 0,
445445
"y": 10
446446
},
@@ -475,6 +475,86 @@
475475
"title": "Requests",
476476
"type": "timeseries"
477477
},
478+
{
479+
"datasource": {
480+
"type": "prometheus",
481+
"uid": "${datasource}"
482+
},
483+
"fieldConfig": {
484+
"defaults": {
485+
"custom": {
486+
"hideFrom": {
487+
"legend": false,
488+
"tooltip": false,
489+
"viz": false
490+
},
491+
"scaleDistribution": {
492+
"type": "linear"
493+
}
494+
}
495+
},
496+
"overrides": []
497+
},
498+
"gridPos": {
499+
"h": 9,
500+
"w": 12,
501+
"x": 12,
502+
"y": 10
503+
},
504+
"id": 71,
505+
"options": {
506+
"calculate": false,
507+
"cellGap": 1,
508+
"color": {
509+
"exponent": 0.5,
510+
"fill": "dark-orange",
511+
"mode": "scheme",
512+
"reverse": false,
513+
"scale": "exponential",
514+
"scheme": "Oranges",
515+
"steps": 64
516+
},
517+
"exemplars": {
518+
"color": "rgba(255,0,255,0.7)"
519+
},
520+
"filterValues": {
521+
"le": 1e-9
522+
},
523+
"legend": {
524+
"show": true
525+
},
526+
"rowsFrame": {
527+
"layout": "auto"
528+
},
529+
"tooltip": {
530+
"show": true,
531+
"yHistogram": false
532+
},
533+
"yAxis": {
534+
"axisPlacement": "left",
535+
"reverse": false,
536+
"unit": "none"
537+
}
538+
},
539+
"pluginVersion": "9.2.3",
540+
"targets": [
541+
{
542+
"datasource": {
543+
"type": "prometheus",
544+
"uid": "${datasource}"
545+
},
546+
"editorMode": "code",
547+
"expr": "sum(rate(promscale_ingest_items_received_bucket{kind=\"sample\", namespace=~\"$namespace\"}[$__rate_interval])) by (le)",
548+
"format": "heatmap",
549+
"hide": false,
550+
"legendFormat": "__auto",
551+
"range": true,
552+
"refId": "D"
553+
}
554+
],
555+
"title": "Samples per request",
556+
"type": "heatmap"
557+
},
478558
{
479559
"datasource": {
480560
"type": "prometheus",
@@ -535,9 +615,9 @@
535615
},
536616
"gridPos": {
537617
"h": 9,
538-
"w": 8,
539-
"x": 8,
540-
"y": 10
618+
"w": 12,
619+
"x": 0,
620+
"y": 19
541621
},
542622
"id": 10,
543623
"interval": "2m",
@@ -632,9 +712,9 @@
632712
},
633713
"gridPos": {
634714
"h": 9,
635-
"w": 8,
636-
"x": 16,
637-
"y": 10
715+
"w": 12,
716+
"x": 12,
717+
"y": 19
638718
},
639719
"id": 8,
640720
"interval": "2m",
@@ -768,9 +848,9 @@
768848
},
769849
"gridPos": {
770850
"h": 9,
771-
"w": 8,
851+
"w": 12,
772852
"x": 0,
773-
"y": 11
853+
"y": 29
774854
},
775855
"id": 9,
776856
"interval": "2m",
@@ -804,6 +884,86 @@
804884
"title": "Requests",
805885
"type": "timeseries"
806886
},
887+
{
888+
"datasource": {
889+
"type": "prometheus",
890+
"uid": "${datasource}"
891+
},
892+
"fieldConfig": {
893+
"defaults": {
894+
"custom": {
895+
"hideFrom": {
896+
"legend": false,
897+
"tooltip": false,
898+
"viz": false
899+
},
900+
"scaleDistribution": {
901+
"type": "linear"
902+
}
903+
}
904+
},
905+
"overrides": []
906+
},
907+
"gridPos": {
908+
"h": 9,
909+
"w": 12,
910+
"x": 12,
911+
"y": 29
912+
},
913+
"id": 73,
914+
"options": {
915+
"calculate": false,
916+
"cellGap": 1,
917+
"color": {
918+
"exponent": 0.5,
919+
"fill": "dark-orange",
920+
"mode": "scheme",
921+
"reverse": false,
922+
"scale": "exponential",
923+
"scheme": "Oranges",
924+
"steps": 64
925+
},
926+
"exemplars": {
927+
"color": "rgba(255,0,255,0.7)"
928+
},
929+
"filterValues": {
930+
"le": 1e-9
931+
},
932+
"legend": {
933+
"show": true
934+
},
935+
"rowsFrame": {
936+
"layout": "auto"
937+
},
938+
"tooltip": {
939+
"show": true,
940+
"yHistogram": false
941+
},
942+
"yAxis": {
943+
"axisPlacement": "left",
944+
"reverse": false,
945+
"unit": "none"
946+
}
947+
},
948+
"pluginVersion": "9.2.3",
949+
"targets": [
950+
{
951+
"datasource": {
952+
"type": "prometheus",
953+
"uid": "${datasource}"
954+
},
955+
"editorMode": "code",
956+
"expr": "sum(rate(promscale_ingest_items_received_bucket{kind=\"span\", namespace=~\"$namespace\"}[$__rate_interval])) by (le)",
957+
"format": "heatmap",
958+
"hide": false,
959+
"legendFormat": "__auto",
960+
"range": true,
961+
"refId": "D"
962+
}
963+
],
964+
"title": "Spans per request",
965+
"type": "heatmap"
966+
},
807967
{
808968
"datasource": {
809969
"type": "prometheus",
@@ -865,9 +1025,9 @@
8651025
},
8661026
"gridPos": {
8671027
"h": 9,
868-
"w": 8,
869-
"x": 8,
870-
"y": 11
1028+
"w": 12,
1029+
"x": 0,
1030+
"y": 38
8711031
},
8721032
"id": 7,
8731033
"interval": "2m",
@@ -961,9 +1121,9 @@
9611121
},
9621122
"gridPos": {
9631123
"h": 9,
964-
"w": 8,
965-
"x": 16,
966-
"y": 11
1124+
"w": 12,
1125+
"x": 12,
1126+
"y": 38
9671127
},
9681128
"id": 11,
9691129
"interval": "2m",

0 commit comments

Comments
 (0)