Commit ad98777
committed
feat: implement maddy_queue_length metric
The maddy_queue_length was already registered but never used.
The gauge is updated when actions on disks are performed:
- Incremented when a message is written to disk or when the queue
is read from disk.
- Decremented when a message is removed from disk.
Signed-off-by: spiarh <ludo@spiarh.fr>1 parent 7cfee98 commit ad98777
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
93 | 92 | | |
94 | 93 | | |
95 | 94 | | |
| |||
129 | 128 | | |
130 | 129 | | |
131 | 130 | | |
132 | | - | |
133 | 131 | | |
134 | 132 | | |
135 | 133 | | |
| |||
635 | 633 | | |
636 | 634 | | |
637 | 635 | | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
638 | 639 | | |
639 | 640 | | |
640 | 641 | | |
| |||
704 | 705 | | |
705 | 706 | | |
706 | 707 | | |
| 708 | + | |
| 709 | + | |
707 | 710 | | |
708 | 711 | | |
709 | 712 | | |
| |||
762 | 765 | | |
763 | 766 | | |
764 | 767 | | |
| 768 | + | |
| 769 | + | |
765 | 770 | | |
766 | 771 | | |
767 | 772 | | |
| |||
0 commit comments