|
45 | 45 | "steppedLine": false,
|
46 | 46 | "targets": [
|
47 | 47 | {
|
48 |
| - "expr": "rate(go_gc_duration_seconds_count{cluster=~\"$cluster\", namespace=~\"$namespace\", job=~\"$job\"}[5m])", |
| 48 | + "expr": "rate(go_gc_duration_seconds_count{cluster=~\"$cluster\", namespace=~\"$namespace\", container=~\"$container\", pod=~\"$pod\"}[5m])", |
49 | 49 | "format": "time_series",
|
50 | 50 | "intervalFactor": 2,
|
51 |
| - "legendFormat": "{{job}}", |
| 51 | + "legendFormat": "{{pod}}", |
52 | 52 | "legendLink": null,
|
53 | 53 | "step": 10
|
54 | 54 | }
|
|
121 | 121 | "steppedLine": false,
|
122 | 122 | "targets": [
|
123 | 123 | {
|
124 |
| - "expr": "go_memstats_heap_inuse_bytes{cluster=~\"$cluster\", namespace=~\"$namespace\", job=~\"$job\"}", |
| 124 | + "expr": "go_memstats_heap_inuse_bytes{cluster=~\"$cluster\", namespace=~\"$namespace\", container=~\"$container\", pod=~\"$pod\"}", |
125 | 125 | "format": "time_series",
|
126 | 126 | "intervalFactor": 2,
|
127 |
| - "legendFormat": "{{job}}", |
| 127 | + "legendFormat": "{{pod}}", |
128 | 128 | "legendLink": null,
|
129 | 129 | "step": 10
|
130 | 130 | }
|
|
197 | 197 | "steppedLine": false,
|
198 | 198 | "targets": [
|
199 | 199 | {
|
200 |
| - "expr": "go_goroutines{cluster=~\"$cluster\", namespace=~\"$namespace\", job=~\"$job\"}", |
| 200 | + "expr": "go_goroutines{cluster=~\"$cluster\", namespace=~\"$namespace\", container=~\"$container\", pod=~\"$pod\"}", |
201 | 201 | "format": "time_series",
|
202 | 202 | "intervalFactor": 2,
|
203 |
| - "legendFormat": "{{job}}", |
| 203 | + "legendFormat": "{{pod}}", |
204 | 204 | "legendLink": null,
|
205 | 205 | "step": 10
|
206 | 206 | }
|
|
273 | 273 | "steppedLine": false,
|
274 | 274 | "targets": [
|
275 | 275 | {
|
276 |
| - "expr": "rate(container_cpu_usage_seconds_total{cluster=~\"$cluster\", pod_name=~\".*grafana-agent.*\"}[5m])", |
| 276 | + "expr": "rate(container_cpu_usage_seconds_total{cluster=~\"$cluster\", container=~\"$container\", pod=~\"$pod\"}[5m])", |
277 | 277 | "format": "time_series",
|
278 | 278 | "intervalFactor": 2,
|
279 |
| - "legendFormat": "{{job}}", |
| 279 | + "legendFormat": "{{pod}}", |
280 | 280 | "legendLink": null,
|
281 | 281 | "step": 10
|
282 | 282 | }
|
|
349 | 349 | "steppedLine": false,
|
350 | 350 | "targets": [
|
351 | 351 | {
|
352 |
| - "expr": "container_memory_working_set_bytes{cluster=~\"$cluster\", pod_name=~\".*grafana-agent.*\"}", |
| 352 | + "expr": "container_memory_working_set_bytes{cluster=~\"$cluster\", container=~\"$container\", pod=~\"$pod\"}", |
353 | 353 | "format": "time_series",
|
354 | 354 | "intervalFactor": 2,
|
355 |
| - "legendFormat": "{{job}}", |
| 355 | + "legendFormat": "{{pod}}", |
356 | 356 | "legendLink": null,
|
357 | 357 | "step": 10
|
358 | 358 | }
|
|
513 | 513 | "steppedLine": false,
|
514 | 514 | "targets": [
|
515 | 515 | {
|
516 |
| - "expr": "rate(container_network_receive_bytes_total{cluster=~\"$cluster\", namespace=~\"$namespace\", pod_name=~\".*grafana-agent.*\"}[5m])", |
| 516 | + "expr": "sum by (pod) (rate(container_network_receive_bytes_total{cluster=~\"$cluster\", namespace=~\"$namespace\", pod=~\"$pod\"}[5m]))", |
517 | 517 | "format": "time_series",
|
518 | 518 | "intervalFactor": 2,
|
519 |
| - "legendFormat": "{{job}}", |
| 519 | + "legendFormat": "{{pod}}", |
520 | 520 | "legendLink": null,
|
521 | 521 | "step": 10
|
522 | 522 | }
|
523 | 523 | ],
|
524 | 524 | "thresholds": [ ],
|
525 | 525 | "timeFrom": null,
|
526 | 526 | "timeShift": null,
|
527 |
| - "title": "RX", |
| 527 | + "title": "RX by Pod", |
528 | 528 | "tooltip": {
|
529 | 529 | "shared": true,
|
530 | 530 | "sort": 0,
|
|
589 | 589 | "steppedLine": false,
|
590 | 590 | "targets": [
|
591 | 591 | {
|
592 |
| - "expr": "rate(container_network_transmit_bytes_total{cluster=~\"$cluster\", namespace=~\"$namespace\", pod_name=~\".*grafana-agent.*\"}[5m])", |
| 592 | + "expr": "sum by (pod) (rate(container_network_transmit_bytes_total{cluster=~\"$cluster\", namespace=~\"$namespace\", pod=~\"$pod\"}[5m]))", |
593 | 593 | "format": "time_series",
|
594 | 594 | "intervalFactor": 2,
|
595 |
| - "legendFormat": "{{job}}", |
| 595 | + "legendFormat": "{{pod}}", |
596 | 596 | "legendLink": null,
|
597 | 597 | "step": 10
|
598 | 598 | }
|
599 | 599 | ],
|
600 | 600 | "thresholds": [ ],
|
601 | 601 | "timeFrom": null,
|
602 | 602 | "timeShift": null,
|
603 |
| - "title": "TX", |
| 603 | + "title": "TX by Pod", |
604 | 604 | "tooltip": {
|
605 | 605 | "shared": true,
|
606 | 606 | "sort": 0,
|
|
677 | 677 | "steppedLine": false,
|
678 | 678 | "targets": [
|
679 | 679 | {
|
680 |
| - "expr": "(sum by (job, instance) (avg_over_time(go_memstats_heap_inuse_bytes{cluster=~\"$cluster\", job=~\"$job\", instance=~\"$instance\"}[1m])))\n/\n(sum by (job, instance) (agent_wal_storage_active_series{cluster=~\"$cluster\", job=~\"$job\", instance=~\"$instance\"}))\n", |
| 680 | + "expr": "(sum by (pod) (avg_over_time(go_memstats_heap_inuse_bytes{cluster=~\"$cluster\", namespace=~\"$namespace\", container=~\"$container\", pod=~\"$pod\"}[1m])))\n/\n(sum by (pod) (agent_wal_storage_active_series{cluster=~\"$cluster\", namespace=~\"$namespace\", container=~\"$container\", pod=~\"$pod\"}))\n", |
681 | 681 | "format": "time_series",
|
682 | 682 | "intervalFactor": 2,
|
683 |
| - "legendFormat": "{{instance}}", |
| 683 | + "legendFormat": "{{pod}}", |
684 | 684 | "legendLink": null,
|
685 | 685 | "step": 10
|
686 | 686 | }
|
687 | 687 | ],
|
688 | 688 | "thresholds": [ ],
|
689 | 689 | "timeFrom": null,
|
690 | 690 | "timeShift": null,
|
691 |
| - "title": "Bytes/Series/Instance", |
| 691 | + "title": "Bytes/Series/Pod", |
692 | 692 | "tooltip": {
|
693 | 693 | "shared": true,
|
694 | 694 | "sort": 0,
|
|
753 | 753 | "steppedLine": false,
|
754 | 754 | "targets": [
|
755 | 755 | {
|
756 |
| - "expr": "(sum by (job) (avg_over_time(go_memstats_heap_inuse_bytes{cluster=~\"$cluster\", job=~\"$job\", instance=~\"$instance\"}[1m])))\n/\n(sum by (job) (agent_wal_storage_active_series{cluster=~\"$cluster\", job=~\"$job\", instance=~\"$instance\"}))\n", |
| 756 | + "expr": "(sum by (container) (avg_over_time(go_memstats_heap_inuse_bytes{cluster=~\"$cluster\", namespace=~\"$namespace\", container=~\"$container\", pod=~\"$pod\"}[1m])))\n/\n(sum by (container) (agent_wal_storage_active_series{cluster=~\"$cluster\", namespace=~\"$namespace\", container=~\"$container\", pod=~\"$pod\"}))\n", |
757 | 757 | "format": "time_series",
|
758 | 758 | "intervalFactor": 2,
|
759 |
| - "legendFormat": "{{job}}", |
| 759 | + "legendFormat": "{{container}}", |
760 | 760 | "legendLink": null,
|
761 | 761 | "step": 10
|
762 | 762 | }
|
|
829 | 829 | "steppedLine": false,
|
830 | 830 | "targets": [
|
831 | 831 | {
|
832 |
| - "expr": "sum by (instance) (agent_wal_storage_active_series{cluster=~\"$cluster\", job=~\"$job\", instance=~\"$instance\"})", |
| 832 | + "expr": "sum by (pod) (agent_wal_storage_active_series{cluster=~\"$cluster\", namespace=~\"$namespace\", container=~\"$container\", pod=~\"$pod\"})", |
833 | 833 | "format": "time_series",
|
834 | 834 | "intervalFactor": 2,
|
835 |
| - "legendFormat": "{{instance}}", |
| 835 | + "legendFormat": "{{pod}}", |
836 | 836 | "legendLink": null,
|
837 | 837 | "step": 10
|
838 | 838 | }
|
839 | 839 | ],
|
840 | 840 | "thresholds": [ ],
|
841 | 841 | "timeFrom": null,
|
842 | 842 | "timeShift": null,
|
843 |
| - "title": "Series/Instance", |
| 843 | + "title": "Series/Pod", |
844 | 844 | "tooltip": {
|
845 | 845 | "shared": true,
|
846 | 846 | "sort": 0,
|
|
905 | 905 | "steppedLine": false,
|
906 | 906 | "targets": [
|
907 | 907 | {
|
908 |
| - "expr": "sum by (instance_name) (agent_wal_storage_active_series{cluster=~\"$cluster\", job=~\"$job\", instance=~\"$instance\"})", |
| 908 | + "expr": "sum by (instance_group_name) (agent_wal_storage_active_series{cluster=~\"$cluster\", namespace=~\"$namespace\", container=~\"$container\", pod=~\"$pod\"})", |
909 | 909 | "format": "time_series",
|
910 | 910 | "intervalFactor": 2,
|
911 |
| - "legendFormat": "{{instance_name}}", |
| 911 | + "legendFormat": "{{instance_group_name}}", |
912 | 912 | "legendLink": null,
|
913 | 913 | "step": 10
|
914 | 914 | }
|
|
981 | 981 | "steppedLine": false,
|
982 | 982 | "targets": [
|
983 | 983 | {
|
984 |
| - "expr": "sum by (job) (agent_wal_storage_active_series{cluster=~\"$cluster\", job=~\"$job\", instance=~\"$instance\"})", |
| 984 | + "expr": "sum by (container) (agent_wal_storage_active_series{cluster=~\"$cluster\", namespace=~\"$namespace\", container=~\"$container\", pod=~\"$pod\"})", |
985 | 985 | "format": "time_series",
|
986 | 986 | "intervalFactor": 2,
|
987 |
| - "legendFormat": "{{job}}", |
| 987 | + "legendFormat": "{{container}}", |
988 | 988 | "legendLink": null,
|
989 | 989 | "step": 10
|
990 | 990 | }
|
|
1111 | 1111 | "datasource": "$datasource",
|
1112 | 1112 | "hide": 0,
|
1113 | 1113 | "includeAll": true,
|
1114 |
| - "label": "job", |
| 1114 | + "label": "container", |
1115 | 1115 | "multi": true,
|
1116 |
| - "name": "job", |
| 1116 | + "name": "container", |
1117 | 1117 | "options": [ ],
|
1118 |
| - "query": "label_values(agent_build_info, job)", |
| 1118 | + "query": "label_values(agent_build_info, container)", |
1119 | 1119 | "refresh": 1,
|
1120 | 1120 | "regex": "",
|
1121 | 1121 | "sort": 2,
|
|
1126 | 1126 | "useTags": false
|
1127 | 1127 | },
|
1128 | 1128 | {
|
1129 |
| - "allValue": null, |
| 1129 | + "allValue": "grafana-agent-.*", |
1130 | 1130 | "current": {
|
1131 | 1131 | "selected": true,
|
1132 | 1132 | "text": "All",
|
|
1135 | 1135 | "datasource": "$datasource",
|
1136 | 1136 | "hide": 0,
|
1137 | 1137 | "includeAll": true,
|
1138 |
| - "label": "instance", |
| 1138 | + "label": "pod", |
1139 | 1139 | "multi": true,
|
1140 |
| - "name": "instance", |
| 1140 | + "name": "pod", |
1141 | 1141 | "options": [ ],
|
1142 |
| - "query": "label_values(agent_build_info, instance)", |
| 1142 | + "query": "label_values(agent_build_info{container=~\"$container\"}, pod)", |
1143 | 1143 | "refresh": 1,
|
1144 | 1144 | "regex": "",
|
1145 | 1145 | "sort": 2,
|
|
0 commit comments