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

Commit cacfd90

Browse files
authored
Add grafana memory usage graphs (#14)
Adds graphs that show memory used by NSM sidecars.
1 parent 3b29af2 commit cacfd90

File tree

3 files changed

+188
-0
lines changed

3 files changed

+188
-0
lines changed

examples/grafana/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ NGINX Mesh Top dashboard includes the following stats and graphs:
4545
- Pod Success: this graph shows the percentage of requests that are
4646
successful per Pod (`nginxplus_upstream_server_responses` with response codes of
4747
`1xx` or `2xx`).
48+
- Sidecar Memory Usage (RSS): this graph shows the Resident Set Size (RSS) of the NSM sidecars.
49+
- Sidecar Memory Usage (Private): this graph shows the Private memory used by the NSM sidecars.
4850

4951

5052
## Customizing your own Dashboard

examples/grafana/dashboard.png

-424 KB
Loading

examples/grafana/nginx-mesh-top.json

Lines changed: 186 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,192 @@
504504
"align": false,
505505
"alignLevel": null
506506
}
507+
},
508+
{
509+
"aliasColors": {},
510+
"bars": false,
511+
"dashLength": 10,
512+
"dashes": false,
513+
"datasource": null,
514+
"description": "RSS used by NGINX Service Mesh sidecars",
515+
"fieldConfig": {
516+
"defaults": {
517+
"custom": {}
518+
},
519+
"overrides": []
520+
},
521+
"fill": 1,
522+
"fillGradient": 0,
523+
"gridPos": {
524+
"h": 8,
525+
"w": 12,
526+
"x": 0,
527+
"y": 15
528+
},
529+
"hiddenSeries": false,
530+
"id": 123126,
531+
"legend": {
532+
"avg": false,
533+
"current": false,
534+
"max": false,
535+
"min": false,
536+
"show": true,
537+
"total": false,
538+
"values": false
539+
},
540+
"lines": true,
541+
"linewidth": 1,
542+
"nullPointMode": "null",
543+
"percentage": false,
544+
"pluginVersion": "7.1.5",
545+
"pointradius": 2,
546+
"points": false,
547+
"renderer": "flot",
548+
"seriesOverrides": [],
549+
"spaceLength": 10,
550+
"stack": false,
551+
"steppedLine": false,
552+
"targets": [
553+
{
554+
"expr": "nginxplus_workers_mem_rss",
555+
"interval": "",
556+
"legendFormat": "",
557+
"refId": "A"
558+
}
559+
],
560+
"thresholds": [],
561+
"timeFrom": null,
562+
"timeRegions": [],
563+
"timeShift": null,
564+
"title": "Sidecar Memory Usage (RSS)",
565+
"tooltip": {
566+
"shared": true,
567+
"sort": 0,
568+
"value_type": "individual"
569+
},
570+
"type": "graph",
571+
"xaxis": {
572+
"buckets": null,
573+
"mode": "time",
574+
"name": null,
575+
"show": true,
576+
"values": []
577+
},
578+
"yaxes": [
579+
{
580+
"format": "decbytes",
581+
"label": null,
582+
"logBase": 1,
583+
"max": null,
584+
"min": null,
585+
"show": true
586+
},
587+
{
588+
"format": "short",
589+
"label": null,
590+
"logBase": 1,
591+
"max": null,
592+
"min": null,
593+
"show": true
594+
}
595+
],
596+
"yaxis": {
597+
"align": false,
598+
"alignLevel": null
599+
}
600+
},
601+
{
602+
"aliasColors": {},
603+
"bars": false,
604+
"dashLength": 10,
605+
"dashes": false,
606+
"datasource": null,
607+
"description": "Private memory used by NGINX Service Mesh sidecars",
608+
"fieldConfig": {
609+
"defaults": {
610+
"custom": {}
611+
},
612+
"overrides": []
613+
},
614+
"fill": 1,
615+
"fillGradient": 0,
616+
"gridPos": {
617+
"h": 8,
618+
"w": 12,
619+
"x": 12,
620+
"y": 15
621+
},
622+
"hiddenSeries": false,
623+
"id": 123128,
624+
"legend": {
625+
"avg": false,
626+
"current": false,
627+
"max": false,
628+
"min": false,
629+
"show": true,
630+
"total": false,
631+
"values": false
632+
},
633+
"lines": true,
634+
"linewidth": 1,
635+
"nullPointMode": "null",
636+
"percentage": false,
637+
"pluginVersion": "7.1.5",
638+
"pointradius": 2,
639+
"points": false,
640+
"renderer": "flot",
641+
"seriesOverrides": [],
642+
"spaceLength": 10,
643+
"stack": false,
644+
"steppedLine": false,
645+
"targets": [
646+
{
647+
"expr": "nginxplus_workers_mem_private",
648+
"interval": "",
649+
"legendFormat": "",
650+
"refId": "A"
651+
}
652+
],
653+
"thresholds": [],
654+
"timeFrom": null,
655+
"timeRegions": [],
656+
"timeShift": null,
657+
"title": "Sidecar Memory Usage (Private)",
658+
"tooltip": {
659+
"shared": true,
660+
"sort": 0,
661+
"value_type": "individual"
662+
},
663+
"type": "graph",
664+
"xaxis": {
665+
"buckets": null,
666+
"mode": "time",
667+
"name": null,
668+
"show": true,
669+
"values": []
670+
},
671+
"yaxes": [
672+
{
673+
"format": "short",
674+
"label": null,
675+
"logBase": 1,
676+
"max": null,
677+
"min": null,
678+
"show": true
679+
},
680+
{
681+
"format": "short",
682+
"label": null,
683+
"logBase": 1,
684+
"max": null,
685+
"min": null,
686+
"show": true
687+
}
688+
],
689+
"yaxis": {
690+
"align": false,
691+
"alignLevel": null
692+
}
507693
}
508694
],
509695
"refresh": "5s",

0 commit comments

Comments
 (0)