Skip to content

Commit 151b19a

Browse files
authored
Merge pull request #2834 from Kavinjsir/feat/enhance-dashboard
✨: Add workqueue panels to dashboard
2 parents ed698a3 + 775d004 commit 151b19a

File tree

4 files changed

+1334
-64
lines changed

4 files changed

+1334
-64
lines changed

docs/book/src/plugins/grafana-v1-alpha.md

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ See an example of how to use the plugin in your project:
7979
- Per-second rate of reconciliation errors as measured over the last 5 minutes
8080
- Sample: <img width="1430" src="https://user-images.githubusercontent.com/18136486/176122555-f3493658-6c99-4ad6-a9b7-63d85620d370.png">
8181

82-
#### CPU & Memory Usage
82+
#### Controller CPU & Memory Usage
8383

8484
- Metrics:
8585
- process_cpu_seconds_total
@@ -92,6 +92,46 @@ See an example of how to use the plugin in your project:
9292
- Allocated Memory for the running controller
9393
- Sample: <img width="1381" src="https://user-images.githubusercontent.com/18136486/177239808-7d94b17d-692c-4166-8875-6d9332e05bcb.png">
9494

95+
#### Seconds of P50/90/99 Items Stay in Work Queue
96+
97+
- Metrics
98+
- workqueue_queue_duration_seconds_bucket
99+
- Query:
100+
- histogram_quantile(0.50, sum(rate(workqueue_queue_duration_seconds_bucket{job="$job", namespace="$namespace"}[5m])) by (instance, name, le))
101+
- Description
102+
- Seconds an item stays in workqueue before being requested.
103+
- Sample: <img width="920" src="https://user-images.githubusercontent.com/18136486/180359126-452b2a0f-a511-4ae3-844f-231d13cd27f8.png">
104+
105+
#### Seconds of P50/90/99 Items Processed in Work Queue
106+
107+
- Metrics
108+
- workqueue_work_duration_seconds_bucket
109+
- Query:
110+
- histogram_quantile(0.50, sum(rate(workqueue_work_duration_seconds_bucket{job="$job", namespace="$namespace"}[5m])) by (instance, name, le))
111+
- Description
112+
- Seconds of processing an item from workqueue takes.
113+
- Sample: <img width="912" src="https://user-images.githubusercontent.com/18136486/180359617-b7a59552-1e40-44f9-999f-4feb2584b2dd.png">
114+
115+
#### Add Rate in Work Queue
116+
117+
- Metrics
118+
- workqueue_adds_total
119+
- Query:
120+
- sum(rate(workqueue_adds_total{job="$job", namespace="$namespace"}[5m])) by (instance, name)
121+
- Description
122+
- Per-second rate of items added to work queue
123+
- Sample: <img width="913" src="https://user-images.githubusercontent.com/18136486/180360073-698b6f77-a2c4-4a95-8313-fd8745ad472f.png">
124+
125+
#### Retries Rate in Work Queue
126+
127+
- Metrics
128+
- workqueue_retries_total
129+
- Query:
130+
- sum(rate(workqueue_retries_total{job="$job", namespace="$namespace"}[5m])) by (instance, name)
131+
- Description
132+
- Per-second rate of retries handled by workqueue
133+
- Sample: <img width="914" src="https://user-images.githubusercontent.com/18136486/180360101-411c81e9-d54e-4b21-bbb0-e3f94fcf48cb.png">
134+
95135
## Subcommands
96136

97137
The Grafana plugin implements the following subcommands:

0 commit comments

Comments
 (0)